41#ifndef MYGUI_DONT_USE_OBSOLETE
49 return static_cast<const Button*
>(
this)->getStateSelected();
57 return static_cast<const Button*
>(
this)->getStateSelected();
61 return static_cast<const Button*
>(
this)->_getImageBox();
65 if (
static_cast<Button*
>(
this)->_getImageBox())
70 if (
static_cast<const Button*
>(
this)->_getImageBox())
87 return static_cast<const ComboBox*
>(
this)->getIndexSelected();
95 static_cast<ComboBox*
>(
this)->clearIndexSelected();
116 static_cast<ComboBox*
>(
this)->removeAllItems();
120 return static_cast<const ComboBox*
>(
this)->getIndexSelected();
124 static_cast<ComboBox*
>(
this)->clearIndexSelected();
137 return static_cast<const ComboBox*
>(
this)->getMaxListLength();
147 return static_cast<EditBox*
>(
this)->isVisibleVScroll();
155 return static_cast<EditBox*
>(
this)->isVisibleHScroll();
164 _start =
static_cast<const EditBox*
>(
this)->getTextSelectionStart();
165 _end =
static_cast<const EditBox*
>(
this)->getTextSelectionEnd();
177 static_cast<EditBox*
>(
this)->deleteTextSelection();
181 return static_cast<const EditBox*
>(
this)->getTextSelection();
185 return static_cast<EditBox*
>(
this)->isTextSelection();
195 return static_cast<const ItemBox*
>(
this)->getIndexSelected();
203 static_cast<ItemBox*
>(
this)->clearIndexSelected();
220 static_cast<ItemBox*
>(
this)->removeAllItems();
224 return static_cast<const ItemBox*
>(
this)->getIndexSelected();
228 static_cast<ItemBox*
>(
this)->clearIndexSelected();
237 return static_cast<const ItemBox*
>(
this)->getWidgetDrag();
241 static_cast<ItemBox*
>(
this)->resetDrag();
250 return static_cast<const ItemBox*
>(
this)->getVerticalAlignment();
256 return static_cast<const ListBox*
>(
this)->getIndexSelected();
264 static_cast<ListBox*
>(
this)->clearIndexSelected();
277 return static_cast<const ListBox*
>(
this)->getItemNameAt(
_index);
285 static_cast<ListBox*
>(
this)->removeAllItems();
289 return static_cast<ListBox*
>(
this)->findItemIndexWith(
_item);
293 return static_cast<const ListBox*
>(
this)->getIndexSelected();
297 static_cast<ListBox*
>(
this)->clearIndexSelected();
309 static_cast<ListBox*
>(
this)->beginToItemFirst();
313 static_cast<ListBox*
>(
this)->beginToItemLast();
317 static_cast<ListBox*
>(
this)->beginToItemSelected();
325 return static_cast<ListBox*
>(
this)->isItemSelectedVisible(
_fill);
335 static_cast<MenuControl*
>(
this)->setVisible(
false);
339 return static_cast<MenuControl*
>(
this)->getVisible();
365 return static_cast<const MenuControl*
>(
this)->getVerticalAlignment();
370 static_cast<MenuItem*
>(
this)->setItemChildVisible(
true);
374 static_cast<MenuItem*
>(
this)->setItemChildVisible(
false);
380 return static_cast<const MultiListBox*
>(
this)->getIndexSelected();
437 return static_cast<const MultiListBox*
>(
this)->getIndexSelected();
500 return static_cast<ScrollView*
>(
this)->isVisibleVScroll();
508 return static_cast<ScrollView*
>(
this)->isVisibleHScroll();
534 static_cast<TabControl*
>(
this)->beginToItemSelected();
538 return static_cast<const TabControl*
>(
this)->getItemCount();
586 return static_cast<const TabControl*
>(
this)->getIndexSelected();
591 return static_cast<const TabControl*
>(
this)->getIndexSelected();
601 return static_cast<Widget*
>(
this)->getEnabled();
605 return static_cast<Widget*
>(
this)->getInheritsAlpha();
609 return static_cast<Widget*
>(
this)->getNeedKeyFocus();
613 return static_cast<Widget*
>(
this)->getNeedMouseFocus();
617 return static_cast<Widget*
>(
this)->getInheritsPick();
621 return static_cast<Widget*
>(
this)->getVisible();
627 static_cast<Window*
>(
this)->setVisibleSmooth(
true);
631 static_cast<Window*
>(
this)->setVisibleSmooth(
false);
646 static_cast<const Window*
>(
this)->getMinSize().width,
647 static_cast<const Window*
>(
this)->getMinSize().height,
648 static_cast<const Window*
>(
this)->getMaxSize().width,
649 static_cast<const Window*
>(
this)->getMaxSize().height};
659 std::string_view
_file,
661 std::string_view
_tag)
669 if (!
_node->findAttribute(
"name", name))
672 std::string_view type;
673 if (
_node->findAttribute(
"resolution").empty())
674 type =
"ResourceManualFont";
676 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);
908 std::string_view
_file,
910 std::string_view
_tag)
913 std::string_view layer;
920 layer =
node->findAttribute(
"layer");
930 std::string_view name =
info->findAttribute(
"name");
934 std::string_view texture =
info->findAttribute(
"texture");
936 std::string_view type =
937 (
shared_text.empty() && texture.empty()) ?
"ResourceImageSetPointer" :
"ResourceManualPointer";
942 newnode->addAttribute(
"type", type);
943 newnode->addAttribute(
"name", name);
946 if (
info->findAttribute(
"point",
tmp))
949 prop->addAttribute(
"key",
"Point");
950 prop->addAttribute(
"value",
tmp);
953 if (
info->findAttribute(
"size",
tmp))
956 prop->addAttribute(
"key",
"Size");
957 prop->addAttribute(
"value",
tmp);
960 if (
info->findAttribute(
"resource",
tmp))
963 prop->addAttribute(
"key",
"Resource");
964 prop->addAttribute(
"value",
tmp);
967 if (
info->findAttribute(
"offset",
tmp))
970 prop->addAttribute(
"key",
"Coord");
971 prop->addAttribute(
"value",
tmp);
977 prop->addAttribute(
"key",
"Texture");
1014 std::string_view
_tag)
1024 type =
"ResourceSkin";
1027 if (
object !=
nullptr)
1058#ifndef MYGUI_DONT_USE_OBSOLETE
1076 return coord.
print();
1088#ifndef MYGUI_DONT_USE_OBSOLETE
1097#ifndef MYGUI_DONT_USE_OBSOLETE
1106 (*item).first <<
" is deprecated, use " << (*item).second <<
" ["
1108 _key = (*item).second;
1110 else if (
_key ==
"Progress_StartPoint")
1114 "Progress_StartPoint is deprecated, use Progress_FlowDirection"
1116 _key =
"Progress_FlowDirection";
1119 else if (
_key ==
"ComboBox_AddItem")
1123 "ComboBox_AddItem is deprecated"
1130 else if (
_key ==
"List_AddItem")
1134 "List_AddItem is deprecated"
1141 else if (
_key ==
"Tab_AddSheet")
1145 "Tab_AddSheet is deprecated"
1152 else if (
_key ==
"Tab_AddItem")
1156 "Tab_AddItem is deprecated"
1163 else if (
_key ==
"Window_MinMax")
1167 "Window_MinMax is deprecated, use Window_MinSize or Window_MaxSize"
1178 else if (
_key ==
"ImageRect")
1182 "ImageRect is deprecated, use ImageCoord"
1184 _key =
"ImageCoord";
1187 else if (
_key ==
"StartPoint")
1191 "StartPoint is deprecated, use FlowDirection"
1193 _key =
"FlowDirection";
1203#ifndef MYGUI_DONT_USE_OBSOLETE
1292 mSkinRename[
"DefaultClient"] =
"ClientDefaultSkin";
1306 mSkinRename[
"ButtonMinusPlus"] =
"ButtonExpandSkin";
1312#ifndef MYGUI_DONT_USE_OBSOLETE
1315 return (*item).second;
1324#ifndef MYGUI_DONT_USE_OBSOLETE
1359 "StaticImage factory is deprecated, use "
1419#ifndef MYGUI_DONT_USE_OBSOLETE
1425 (*item).first <<
" skin is deprecated, use " << (*item).second <<
" ["
1427 return (*item).second;
1435#ifndef MYGUI_DONT_USE_OBSOLETE
1442#ifndef MYGUI_DONT_USE_OBSOLETE
#define MYGUI_LOG(level, text)
static std::string_view getSkinRename(std::string_view _skinName)
static void registerWidgetTypes()
static bool isIgnoreProperty(std::string_view _key)
static std::string_view getPropertyRename(std::string_view _propertyName)
static bool checkProperty(Widget *_owner, std::string &_key, std::string &_value)
static std::string_view getFactoryRename(std::string_view _categoryName, std::string_view _factoryName)
wrapper over Texture - shows the texture. Implemented: resizing of texture (see TextureResizeMode); r...
static std::string_view getClassTypeName()
widget description should be here.
widget description should be here.
static std::string_view getClassTypeName()
static FactoryManager & getInstance()
static Gui & getInstance()
Type * castType(bool _throw=true)
widget description should be here.
static std::string_view getClassTypeName()
widget description should be here.
static LayerManager & getInstance()
static LayoutManager & getInstance()
widget description should be here.
static std::string_view getClassTypeName()
widget description should be here.
static std::string_view getClassTypeName()
void setDefaultPointer(std::string_view _value)
static PointerManager & getInstance()
widget description should be here.
static std::string_view getClassTypeName()
static RenderManager & getInstance()
static ResourceManager & getInstance()
void deserialization(xml::ElementPtr _node, Version _version) override
widget description should be here.
static std::string_view getClassTypeName()
widget description should be here.
static std::string_view getClassTypeName()
widget description should be here.
static std::string_view getClassTypeName()
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
widget description should be here.
bool findAttribute(std::string_view _name, std::string &_value)
static MapString mPropertyRename
std::map< std::string, std::string, std::less<> > MapString
static std::string_view convertAlignToDirection(std::string_view _value)
static std::string convertRectToCoord(std::string_view _value)
static SetString mPropertyIgnore
constexpr size_t ITEM_NONE
std::vector< Widget * > VectorWidgetPtr
static MapString mSkinRename
std::set< std::string, std::less<> > SetString
std::string_view print() const
std::string print() const
static TRect< int > parse(std::string_view _value)