42 #ifndef MYGUI_DONT_USE_OBSOLETE
46 static_cast<Button*
>(
this)->setStateSelected(_value);
50 return static_cast<Button*
>(
this)->getStateSelected();
54 static_cast<Button*
>(
this)->setStateSelected(_value);
58 return static_cast<Button*
>(
this)->getStateSelected();
62 return static_cast<Button*
>(
this)->_getImageBox();
66 if (static_cast<Button*>(
this)->_getImageBox())
71 if (static_cast<Button*>(
this)->_getImageBox())
79 return static_cast<ComboBox*
>(
this)->getIndexSelected();
83 static_cast<ComboBox*
>(
this)->setIndexSelected(_index);
87 static_cast<ComboBox*
>(
this)->clearIndexSelected();
92 static_cast<ComboBox*
>(
this)->insertItemAt(_index, _name);
96 static_cast<ComboBox*
>(
this)->setItemNameAt(_index, _item);
100 return static_cast<ComboBox*
>(
this)->getItemNameAt(_index);
104 static_cast<ComboBox*
>(
this)->removeItemAt(_index);
108 static_cast<ComboBox*
>(
this)->removeAllItems();
112 return static_cast<ComboBox*
>(
this)->getIndexSelected();
116 static_cast<ComboBox*
>(
this)->clearIndexSelected();
120 static_cast<ComboBox*
>(
this)->setIndexSelected(_index);
125 static_cast<ComboBox*
>(
this)->setMaxListLength(_value);
129 return static_cast<ComboBox*
>(
this)->getMaxListLength();
135 static_cast<EditBox*
>(
this)->setVisibleVScroll(_visible);
139 return static_cast<EditBox*
>(
this)->isVisibleVScroll();
143 static_cast<EditBox*
>(
this)->setVisibleHScroll(_visible);
147 return static_cast<EditBox*
>(
this)->isVisibleHScroll();
152 static_cast<EditBox*
>(
this)->setTextIntervalColour(_start, _count, _colour);
156 _start =
static_cast<EditBox*
>(
this)->getTextSelectionStart();
157 _end =
static_cast<EditBox*
>(
this)->getTextSelectionEnd();
161 return static_cast<EditBox*
>(
this)->getTextInterval(_start, _count);
165 static_cast<EditBox*
>(
this)->setTextSelection(_start, _end);
169 static_cast<EditBox*
>(
this)->deleteTextSelection();
173 return static_cast<EditBox*
>(
this)->getTextSelection();
177 return static_cast<EditBox*
>(
this)->isTextSelection();
181 static_cast<EditBox*
>(
this)->setTextSelectionColour(_colour);
187 return static_cast<ItemBox*
>(
this)->getIndexSelected();
191 static_cast<ItemBox*
>(
this)->setIndexSelected(_index);
195 static_cast<ItemBox*
>(
this)->clearIndexSelected();
200 static_cast<ItemBox*
>(
this)->insertItemAt(_index, _data);
204 static_cast<ItemBox*
>(
this)->setItemDataAt(_index, _data);
208 static_cast<ItemBox*
>(
this)->removeItemAt(_index);
212 static_cast<ItemBox*
>(
this)->removeAllItems();
216 return static_cast<ItemBox*
>(
this)->getIndexSelected();
220 static_cast<ItemBox*
>(
this)->clearIndexSelected();
224 static_cast<ItemBox*
>(
this)->setIndexSelected(_index);
229 return static_cast<ItemBox*
>(
this)->getWidgetDrag();
233 static_cast<ItemBox*
>(
this)->resetDrag();
238 static_cast<ItemBox*
>(
this)->setVerticalAlignment(_value);
242 return static_cast<ItemBox*
>(
this)->getVerticalAlignment();
248 return static_cast<ListBox*
>(
this)->getIndexSelected();
252 static_cast<ListBox*
>(
this)->setIndexSelected(_index);
256 static_cast<ListBox*
>(
this)->clearIndexSelected();
261 static_cast<ListBox*
>(
this)->insertItemAt(_index, _item);
265 static_cast<ListBox*
>(
this)->setItemNameAt(_index, _item);
269 return static_cast<ListBox*
>(
this)->getItemNameAt(_index);
273 static_cast<ListBox*
>(
this)->removeItemAt(_index);
277 static_cast<ListBox*
>(
this)->removeAllItems();
281 return static_cast<ListBox*
>(
this)->findItemIndexWith(_item);
285 return static_cast<ListBox*
>(
this)->getIndexSelected();
289 static_cast<ListBox*
>(
this)->clearIndexSelected();
293 static_cast<ListBox*
>(
this)->setIndexSelected(_index);
297 static_cast<ListBox*
>(
this)->beginToItemAt(_index);
301 static_cast<ListBox*
>(
this)->beginToItemFirst();
305 static_cast<ListBox*
>(
this)->beginToItemLast();
309 static_cast<ListBox*
>(
this)->beginToItemSelected();
313 return static_cast<ListBox*
>(
this)->isItemVisibleAt(_index, _fill);
317 return static_cast<ListBox*
>(
this)->isItemSelectedVisible(_fill);
327 static_cast<MenuControl*
>(
this)->setVisible(
false);
331 return static_cast<MenuControl*
>(
this)->getVisible();
336 static_cast<MenuControl*
>(
this)->setItemChildVisibleAt(_index,
true);
340 static_cast<MenuControl*
>(
this)->setItemChildVisible(_item,
true);
344 static_cast<MenuControl*
>(
this)->setItemChildVisibleAt(_index,
false);
348 static_cast<MenuControl*
>(
this)->setItemChildVisible(_item,
false);
353 static_cast<MenuControl*
>(
this)->setVerticalAlignment(_value);
357 return static_cast<MenuControl*
>(
this)->getVerticalAlignment();
362 static_cast<MenuItem*
>(
this)->setItemChildVisible(
true);
366 static_cast<MenuItem*
>(
this)->setItemChildVisible(
false);
372 return static_cast<MultiListBox*
>(
this)->getIndexSelected();
376 static_cast<MultiListBox*
>(
this)->setIndexSelected(_index);
385 return static_cast<MultiListBox*
>(
this)->findSubItemWith(_column, _name);
389 return static_cast<MultiListBox*
>(
this)->getSubItemNameAt(_column, _index);
393 static_cast<MultiListBox*
>(
this)->setSubItemNameAt(_column, _index, _name);
397 static_cast<MultiListBox*
>(
this)->removeColumnAt(_column);
405 return static_cast<MultiListBox*
>(
this)->getColumnWidthAt(_column);
409 return static_cast<MultiListBox*
>(
this)->getColumnNameAt(_column);
413 static_cast<MultiListBox*
>(
this)->setColumnWidthAt(_column, _width);
417 static_cast<MultiListBox*
>(
this)->addColumn(_name, _width);
421 static_cast<MultiListBox*
>(
this)->setColumnNameAt(_column, _name);
425 static_cast<MultiListBox*
>(
this)->insertColumnAt(_column, _name, _width);
429 return static_cast<MultiListBox*
>(
this)->getIndexSelected();
437 static_cast<MultiListBox*
>(
this)->setIndexSelected(_index);
441 static_cast<MultiListBox*
>(
this)->insertItemAt(_index, _name);
445 static_cast<MultiListBox*
>(
this)->setItemNameAt(_index, _name);
449 return static_cast<MultiListBox*
>(
this)->getItemNameAt(_index);
488 static_cast<ScrollView*
>(
this)->setVisibleVScroll(_visible);
492 return static_cast<ScrollView*
>(
this)->isVisibleVScroll();
496 static_cast<ScrollView*
>(
this)->setVisibleHScroll(_visible);
500 return static_cast<ScrollView*
>(
this)->isVisibleHScroll();
506 return static_cast<TabControl*
>(
this)->getButtonWidthAt(_index);
510 return static_cast<TabControl*
>(
this)->getButtonWidth(_sheet);
514 static_cast<TabControl*
>(
this)->setButtonWidthAt(_index, _width);
518 static_cast<TabControl*
>(
this)->setButtonWidth(_sheet, _width);
522 static_cast<TabControl*
>(
this)->beginToItemAt(_index);
526 static_cast<TabControl*
>(
this)->beginToItemSelected();
530 return static_cast<TabControl*
>(
this)->getItemCount();
534 return static_cast<TabControl*
>(
this)->getItemName(_sheet);
538 return static_cast<TabControl*
>(
this)->getItemNameAt(_index);
542 return static_cast<TabControl*
>(
this)->getItemAt(_index);
546 static_cast<TabControl*
>(
this)->setItemNameAt(_index, _name);
550 static_cast<TabControl*
>(
this)->setItemName(_sheet, _name);
554 return static_cast<TabControl*
>(
this)->addItem(_name, _width);
558 return static_cast<TabControl*
>(
this)->insertItemAt(_index, _name);
562 static_cast<TabControl*
>(
this)->removeItemAt(_index);
566 static_cast<TabControl*
>(
this)->removeItem(_sheet);
570 static_cast<TabControl*
>(
this)->setIndexSelected(_index);
574 static_cast<TabControl*
>(
this)->setItemSelected(_sheet);
578 return static_cast<TabControl*
>(
this)->getIndexSelected();
583 return static_cast<TabControl*
>(
this)->getIndexSelected();
587 static_cast<TabControl*
>(
this)->setIndexSelected(_index);
593 return static_cast<Widget*
>(
this)->getEnabled();
597 return static_cast<Widget*
>(
this)->getInheritsAlpha();
601 return static_cast<Widget*
>(
this)->getNeedKeyFocus();
605 return static_cast<Widget*
>(
this)->getNeedMouseFocus();
609 return static_cast<Widget*
>(
this)->getInheritsPick();
613 return static_cast<Widget*
>(
this)->getVisible();
619 static_cast<Window*
>(
this)->setVisibleSmooth(
true);
623 static_cast<Window*
>(
this)->setVisibleSmooth(
false);
627 static_cast<Window*
>(
this)->setMinSize(_minmax.
left, _minmax.
top);
632 static_cast<Window*
>(
this)->setMinSize(_min_w, _min_h);
633 static_cast<Window*
>(
this)->setMaxSize(_max_w, _max_h);
637 return IntRect(static_cast<Window*>(
this)->getMinSize().width, static_cast<Window*>(
this)->getMinSize().height, static_cast<Window*>(
this)->getMaxSize().width, static_cast<Window*>(
this)->getMaxSize().height);
660 type =
"ResourceManualFont";
662 type =
"ResourceTrueTypeFont";
745 while (codeold.
next(
"Code"))
769 static_cast<Gui*
>(
this)->destroyWidgets(_widgets);
911 while (info.
next(
"Info"))
919 std::string type = (shared_text.empty() && texture.empty()) ?
"ResourceImageSetPointer" :
"ResourceManualPointer";
956 if (!shared_text.empty() || !texture.empty())
960 prop->
addAttribute(
"value", shared_text.empty() ? texture : shared_text);
969 static_cast<PointerManager*>(
this)->setLayerName(layer);
971 if (!pointer.empty())
972 static_cast<PointerManager*>(
this)->setDefaultPointer(pointer);
986 return static_cast<SkinManager*
>(
this)->getByName(_name);
998 while (skin.
next(_tag))
1002 type =
"ResourceSkin";
1005 if (
object !=
nullptr)
1018 static_cast<WidgetManager*
>(
this)->destroyWidgets(_widgets);
1034 #endif // MYGUI_DONT_USE_OBSOLETE
1036 #ifndef MYGUI_DONT_USE_OBSOLETE
1040 Align align = utility::parseValue<Align>(_value);
1054 return coord.
print();
1062 #endif // MYGUI_DONT_USE_OBSOLETE
1066 #ifndef MYGUI_DONT_USE_OBSOLETE
1069 #endif // MYGUI_DONT_USE_OBSOLETE
1075 #ifndef MYGUI_DONT_USE_OBSOLETE
1083 _key = (*item).second;
1085 else if (_key ==
"Progress_StartPoint")
1088 _key =
"Progress_FlowDirection";
1091 else if (_key ==
"ComboBox_AddItem")
1095 if (widget !=
nullptr)
1099 else if (_key ==
"List_AddItem")
1103 if (widget !=
nullptr)
1107 else if (_key ==
"Tab_AddSheet")
1111 if (widget !=
nullptr)
1115 else if (_key ==
"Tab_AddItem")
1119 if (widget !=
nullptr)
1123 else if (_key ==
"Window_MinMax")
1127 if (widget !=
nullptr)
1135 else if (_key ==
"ImageRect")
1138 _key =
"ImageCoord";
1141 else if (_key ==
"StartPoint")
1144 _key =
"FlowDirection";
1148 #endif // MYGUI_DONT_USE_OBSOLETE
1154 #ifndef MYGUI_DONT_USE_OBSOLETE
1243 mSkinRename[
"DefaultClient"] =
"ClientDefaultSkin";
1257 mSkinRename[
"ButtonMinusPlus"] =
"ButtonExpandSkin";
1258 #endif // MYGUI_DONT_USE_OBSOLETE
1263 #ifndef MYGUI_DONT_USE_OBSOLETE
1266 return (*item).second;
1268 return _propertyName;
1273 #ifndef MYGUI_DONT_USE_OBSOLETE
1274 if (_categoryName ==
"Widget")
1276 if (_factoryName ==
"HScroll")
1280 else if (_factoryName ==
"VScroll")
1284 else if (_factoryName ==
"RenderBox")
1288 else if (_factoryName ==
"Sheet")
1292 else if (_factoryName ==
"StaticImage")
1296 else if (_factoryName ==
"StaticText")
1300 else if (_factoryName ==
"Progress")
1304 else if (_factoryName ==
"List")
1308 else if (_factoryName ==
"Edit")
1312 else if (_factoryName ==
"Tab")
1316 else if (_factoryName ==
"MultiList")
1320 else if (_factoryName ==
"MenuCtrl")
1325 #endif // MYGUI_DONT_USE_OBSOLETE
1326 return _factoryName;
1331 #ifndef MYGUI_DONT_USE_OBSOLETE
1332 MapString::iterator item =
mSkinRename.find(_skinName);
1336 return (*item).second;
1338 #endif // MYGUI_DONT_USE_OBSOLETE
1344 #ifndef MYGUI_DONT_USE_OBSOLETE
1346 #endif // MYGUI_DONT_USE_OBSOLETE
1351 #ifndef MYGUI_DONT_USE_OBSOLETE
1366 #endif // MYGUI_DONT_USE_OBSOLETE