42#ifndef MYGUI_DONT_USE_OBSOLETE
50 return static_cast<const Button*
>(
this)->getStateSelected();
58 return static_cast<const Button*
>(
this)->getStateSelected();
62 return static_cast<const Button*
>(
this)->_getImageBox();
66 if (
static_cast<Button*
>(
this)->_getImageBox())
71 if (
static_cast<const Button*
>(
this)->_getImageBox())
88 return static_cast<const ComboBox*
>(
this)->getIndexSelected();
96 static_cast<ComboBox*
>(
this)->clearIndexSelected();
117 static_cast<ComboBox*
>(
this)->removeAllItems();
121 return static_cast<const ComboBox*
>(
this)->getIndexSelected();
125 static_cast<ComboBox*
>(
this)->clearIndexSelected();
138 return static_cast<const ComboBox*
>(
this)->getMaxListLength();
148 return static_cast<EditBox*
>(
this)->isVisibleVScroll();
156 return static_cast<EditBox*
>(
this)->isVisibleHScroll();
165 _start =
static_cast<const EditBox*
>(
this)->getTextSelectionStart();
166 _end =
static_cast<const EditBox*
>(
this)->getTextSelectionEnd();
178 static_cast<EditBox*
>(
this)->deleteTextSelection();
182 return static_cast<const EditBox*
>(
this)->getTextSelection();
186 return static_cast<EditBox*
>(
this)->isTextSelection();
196 return static_cast<const ItemBox*
>(
this)->getIndexSelected();
204 static_cast<ItemBox*
>(
this)->clearIndexSelected();
221 static_cast<ItemBox*
>(
this)->removeAllItems();
225 return static_cast<const ItemBox*
>(
this)->getIndexSelected();
229 static_cast<ItemBox*
>(
this)->clearIndexSelected();
238 return static_cast<const ItemBox*
>(
this)->getWidgetDrag();
242 static_cast<ItemBox*
>(
this)->resetDrag();
251 return static_cast<const ItemBox*
>(
this)->getVerticalAlignment();
257 return static_cast<const ListBox*
>(
this)->getIndexSelected();
265 static_cast<ListBox*
>(
this)->clearIndexSelected();
278 return static_cast<const ListBox*
>(
this)->getItemNameAt(
_index);
286 static_cast<ListBox*
>(
this)->removeAllItems();
290 return static_cast<ListBox*
>(
this)->findItemIndexWith(
_item);
294 return static_cast<const ListBox*
>(
this)->getIndexSelected();
298 static_cast<ListBox*
>(
this)->clearIndexSelected();
310 static_cast<ListBox*
>(
this)->beginToItemFirst();
314 static_cast<ListBox*
>(
this)->beginToItemLast();
318 static_cast<ListBox*
>(
this)->beginToItemSelected();
326 return static_cast<ListBox*
>(
this)->isItemSelectedVisible(
_fill);
336 static_cast<MenuControl*
>(
this)->setVisible(
false);
340 return static_cast<MenuControl*
>(
this)->getVisible();
366 return static_cast<const MenuControl*
>(
this)->getVerticalAlignment();
371 static_cast<MenuItem*
>(
this)->setItemChildVisible(
true);
375 static_cast<MenuItem*
>(
this)->setItemChildVisible(
false);
381 return static_cast<const MultiListBox*
>(
this)->getIndexSelected();
438 return static_cast<const MultiListBox*
>(
this)->getIndexSelected();
501 return static_cast<ScrollView*
>(
this)->isVisibleVScroll();
509 return static_cast<ScrollView*
>(
this)->isVisibleHScroll();
535 static_cast<TabControl*
>(
this)->beginToItemSelected();
539 return static_cast<const TabControl*
>(
this)->getItemCount();
587 return static_cast<const TabControl*
>(
this)->getIndexSelected();
592 return static_cast<const TabControl*
>(
this)->getIndexSelected();
602 return static_cast<Widget*
>(
this)->getEnabled();
606 return static_cast<Widget*
>(
this)->getInheritsAlpha();
610 return static_cast<Widget*
>(
this)->getNeedKeyFocus();
614 return static_cast<Widget*
>(
this)->getNeedMouseFocus();
618 return static_cast<Widget*
>(
this)->getInheritsPick();
622 return static_cast<Widget*
>(
this)->getVisible();
628 static_cast<Window*
>(
this)->setVisibleSmooth(
true);
632 static_cast<Window*
>(
this)->setVisibleSmooth(
false);
647 static_cast<const Window*
>(
this)->getMinSize().width,
648 static_cast<const Window*
>(
this)->getMinSize().height,
649 static_cast<const Window*
>(
this)->getMaxSize().width,
650 static_cast<const Window*
>(
this)->getMaxSize().height);
666 if (!
_node->findAttribute(
"name", name))
672 if (
_node->findAttribute(
"resolution").empty())
673 type =
"ResourceManualFont";
675 type =
"ResourceTrueTypeFont";
681 node->addAttribute(
"type", type);
682 node->addAttribute(
"name", name);
685 if (
_node->findAttribute(
"source",
tmp))
688 prop->addAttribute(
"key",
"Source");
689 prop->addAttribute(
"value",
tmp);
692 if (
_node->findAttribute(
"size",
tmp))
695 prop->addAttribute(
"key",
"Size");
696 prop->addAttribute(
"value",
tmp);
699 if (
_node->findAttribute(
"resolution",
tmp))
702 prop->addAttribute(
"key",
"Resolution");
703 prop->addAttribute(
"value",
tmp);
706 if (
_node->findAttribute(
"antialias_colour",
tmp))
709 prop->addAttribute(
"key",
"Antialias");
710 prop->addAttribute(
"value",
tmp);
713 if (
_node->findAttribute(
"space_width",
tmp))
716 prop->addAttribute(
"key",
"SpaceWidth");
717 prop->addAttribute(
"value",
tmp);
720 if (
_node->findAttribute(
"tab_width",
tmp))
723 prop->addAttribute(
"key",
"TabWidth");
724 prop->addAttribute(
"value",
tmp);
727 if (
_node->findAttribute(
"cursor_width",
tmp))
730 prop->addAttribute(
"key",
"CursorWidth");
731 prop->addAttribute(
"value",
tmp);
734 if (
_node->findAttribute(
"distance",
tmp))
737 prop->addAttribute(
"key",
"Distance");
738 prop->addAttribute(
"value",
tmp);
741 if (
_node->findAttribute(
"offset_height",
tmp))
744 prop->addAttribute(
"key",
"OffsetHeight");
745 prop->addAttribute(
"value",
tmp);
748 if (
_node->findAttribute(
"default_height",
tmp))
751 prop->addAttribute(
"key",
"DefaultHeight");
752 prop->addAttribute(
"value",
tmp);
916 layer =
node->findAttribute(
"layer");
926 std::string name =
info->findAttribute(
"name");
930 std::string texture =
info->findAttribute(
"texture");
932 std::string type = (
shared_text.empty() && texture.empty()) ?
"ResourceImageSetPointer" :
"ResourceManualPointer";
937 newnode->addAttribute(
"type", type);
938 newnode->addAttribute(
"name", name);
941 if (
info->findAttribute(
"point",
tmp))
944 prop->addAttribute(
"key",
"Point");
945 prop->addAttribute(
"value",
tmp);
948 if (
info->findAttribute(
"size",
tmp))
951 prop->addAttribute(
"key",
"Size");
952 prop->addAttribute(
"value",
tmp);
955 if (
info->findAttribute(
"resource",
tmp))
958 prop->addAttribute(
"key",
"Resource");
959 prop->addAttribute(
"value",
tmp);
962 if (
info->findAttribute(
"offset",
tmp))
965 prop->addAttribute(
"key",
"Coord");
966 prop->addAttribute(
"value",
tmp);
972 prop->addAttribute(
"key",
"Texture");
1015 type =
"ResourceSkin";
1018 if (
object !=
nullptr)
1049#ifndef MYGUI_DONT_USE_OBSOLETE
1067 return coord.
print();
1079#ifndef MYGUI_DONT_USE_OBSOLETE
1088#ifndef MYGUI_DONT_USE_OBSOLETE
1096 _key = (*item).second;
1098 else if (
_key ==
"Progress_StartPoint")
1101 _key =
"Progress_FlowDirection";
1104 else if (
_key ==
"ComboBox_AddItem")
1112 else if (
_key ==
"List_AddItem")
1120 else if (
_key ==
"Tab_AddSheet")
1128 else if (
_key ==
"Tab_AddItem")
1136 else if (
_key ==
"Window_MinMax")
1148 else if (
_key ==
"ImageRect")
1151 _key =
"ImageCoord";
1154 else if (
_key ==
"StartPoint")
1157 _key =
"FlowDirection";
1167#ifndef MYGUI_DONT_USE_OBSOLETE
1256 mSkinRename[
"DefaultClient"] =
"ClientDefaultSkin";
1270 mSkinRename[
"ButtonMinusPlus"] =
"ButtonExpandSkin";
1276#ifndef MYGUI_DONT_USE_OBSOLETE
1279 return (*item).second;
1286#ifndef MYGUI_DONT_USE_OBSOLETE
1344#ifndef MYGUI_DONT_USE_OBSOLETE
1349 return (*item).second;
1357#ifndef MYGUI_DONT_USE_OBSOLETE
1364#ifndef MYGUI_DONT_USE_OBSOLETE
#define MYGUI_LOG(level, text)
static std::string getPropertyRename(const std::string &_propertyName)
static bool isIgnoreProperty(const std::string &_key)
static std::string getFactoryRename(const std::string &_categoryName, const std::string &_factoryName)
static void registerWidgetTypes()
static bool checkProperty(Widget *_owner, std::string &_key, std::string &_value)
static std::string getSkinRename(const std::string &_skinName)
wrapper over Texture - shows the texture. Implemented: resizing of texture (see TextureResizeMode); r...
static const std::string & getClassTypeName()
widget description should be here.
widget description should be here.
static const std::string & getClassTypeName()
static FactoryManager & getInstance()
static Gui & getInstance()
Type * castType(bool _throw=true)
widget description should be here.
static const std::string & getClassTypeName()
widget description should be here.
static LayerManager & getInstance()
static LayoutManager & getInstance()
widget description should be here.
static const std::string & getClassTypeName()
widget description should be here.
static const std::string & getClassTypeName()
static PointerManager & getInstance()
void setDefaultPointer(const std::string &_value)
widget description should be here.
static const std::string & getClassTypeName()
static RenderManager & getInstance()
static ResourceManager & getInstance()
void deserialization(xml::ElementPtr _node, Version _version) override
widget description should be here.
static const std::string & getClassTypeName()
widget description should be here.
static const std::string & getClassTypeName()
widget description should be here.
static const std::string & getClassTypeName()
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
widget description should be here.
bool findAttribute(const std::string &_name, std::string &_value)
static std::string convertAlignToDirection(const std::string &_value)
static MapString mPropertyRename
std::map< std::string, std::string > MapString
static std::string convertRectToCoord(const std::string &_value)
static SetString mPropertyIgnore
std::set< std::string > SetString
std::vector< Widget * > VectorWidgetPtr
static MapString mSkinRename
types::TRect< int > IntRect
std::string print() const
std::string print() const
static TRect< int > parse(const std::string &_value)