57 #ifndef MYGUI_DONT_USE_OBSOLETE
61 static_cast<Button*
>(
this)->setStateSelected(_value);
65 return static_cast<Button*
>(
this)->getStateSelected();
69 static_cast<Button*
>(
this)->setStateSelected(_value);
73 return static_cast<Button*
>(
this)->getStateSelected();
77 return static_cast<Button*
>(
this)->_getImageBox();
81 if (static_cast<Button*>(
this)->_getImageBox())
86 if (static_cast<Button*>(
this)->_getImageBox())
94 return static_cast<ComboBox*
>(
this)->getIndexSelected();
98 static_cast<ComboBox*
>(
this)->setIndexSelected(_index);
102 static_cast<ComboBox*
>(
this)->clearIndexSelected();
107 static_cast<ComboBox*
>(
this)->insertItemAt(_index, _name);
111 static_cast<ComboBox*
>(
this)->setItemNameAt(_index, _item);
115 return static_cast<ComboBox*
>(
this)->getItemNameAt(_index);
119 static_cast<ComboBox*
>(
this)->removeItemAt(_index);
123 static_cast<ComboBox*
>(
this)->removeAllItems();
127 return static_cast<ComboBox*
>(
this)->getIndexSelected();
131 static_cast<ComboBox*
>(
this)->clearIndexSelected();
135 static_cast<ComboBox*
>(
this)->setIndexSelected(_index);
140 static_cast<ComboBox*
>(
this)->setMaxListLength(_value);
144 return static_cast<ComboBox*
>(
this)->getMaxListLength();
150 static_cast<EditBox*
>(
this)->setVisibleVScroll(_visible);
154 return static_cast<EditBox*
>(
this)->isVisibleVScroll();
158 static_cast<EditBox*
>(
this)->setVisibleHScroll(_visible);
162 return static_cast<EditBox*
>(
this)->isVisibleHScroll();
167 static_cast<EditBox*
>(
this)->setTextIntervalColour(_start, _count, _colour);
171 _start =
static_cast<EditBox*
>(
this)->getTextSelectionStart();
172 _end =
static_cast<EditBox*
>(
this)->getTextSelectionEnd();
176 return static_cast<EditBox*
>(
this)->getTextInterval(_start, _count);
180 static_cast<EditBox*
>(
this)->setTextSelection(_start, _end);
184 static_cast<EditBox*
>(
this)->deleteTextSelection();
188 return static_cast<EditBox*
>(
this)->getTextSelection();
192 return static_cast<EditBox*
>(
this)->isTextSelection();
196 static_cast<EditBox*
>(
this)->setTextSelectionColour(_colour);
202 return static_cast<ItemBox*
>(
this)->getIndexSelected();
206 static_cast<ItemBox*
>(
this)->setIndexSelected(_index);
210 static_cast<ItemBox*
>(
this)->clearIndexSelected();
215 static_cast<ItemBox*
>(
this)->insertItemAt(_index, _data);
219 static_cast<ItemBox*
>(
this)->setItemDataAt(_index, _data);
223 static_cast<ItemBox*
>(
this)->removeItemAt(_index);
227 static_cast<ItemBox*
>(
this)->removeAllItems();
231 return static_cast<ItemBox*
>(
this)->getIndexSelected();
235 static_cast<ItemBox*
>(
this)->clearIndexSelected();
239 static_cast<ItemBox*
>(
this)->setIndexSelected(_index);
244 return static_cast<ItemBox*
>(
this)->getWidgetDrag();
248 static_cast<ItemBox*
>(
this)->resetDrag();
253 static_cast<ItemBox*
>(
this)->setVerticalAlignment(_value);
257 return static_cast<ItemBox*
>(
this)->getVerticalAlignment();
263 return static_cast<ListBox*
>(
this)->getIndexSelected();
267 static_cast<ListBox*
>(
this)->setIndexSelected(_index);
271 static_cast<ListBox*
>(
this)->clearIndexSelected();
276 static_cast<ListBox*
>(
this)->insertItemAt(_index, _item);
280 static_cast<ListBox*
>(
this)->setItemNameAt(_index, _item);
284 return static_cast<ListBox*
>(
this)->getItemNameAt(_index);
288 static_cast<ListBox*
>(
this)->removeItemAt(_index);
292 static_cast<ListBox*
>(
this)->removeAllItems();
296 return static_cast<ListBox*
>(
this)->findItemIndexWith(_item);
300 return static_cast<ListBox*
>(
this)->getIndexSelected();
304 static_cast<ListBox*
>(
this)->clearIndexSelected();
308 static_cast<ListBox*
>(
this)->setIndexSelected(_index);
312 static_cast<ListBox*
>(
this)->beginToItemAt(_index);
316 static_cast<ListBox*
>(
this)->beginToItemFirst();
320 static_cast<ListBox*
>(
this)->beginToItemLast();
324 static_cast<ListBox*
>(
this)->beginToItemSelected();
328 return static_cast<ListBox*
>(
this)->isItemVisibleAt(_index, _fill);
332 return static_cast<ListBox*
>(
this)->isItemSelectedVisible(_fill);
342 static_cast<MenuControl*
>(
this)->setVisible(
false);
346 return static_cast<MenuControl*
>(
this)->getVisible();
351 static_cast<MenuControl*
>(
this)->setItemChildVisibleAt(_index,
true);
355 static_cast<MenuControl*
>(
this)->setItemChildVisible(_item,
true);
359 static_cast<MenuControl*
>(
this)->setItemChildVisibleAt(_index,
false);
363 static_cast<MenuControl*
>(
this)->setItemChildVisible(_item,
false);
368 static_cast<MenuControl*
>(
this)->setVerticalAlignment(_value);
372 return static_cast<MenuControl*
>(
this)->getVerticalAlignment();
377 static_cast<MenuItem*
>(
this)->setItemChildVisible(
true);
381 static_cast<MenuItem*
>(
this)->setItemChildVisible(
false);
387 return static_cast<MultiListBox*
>(
this)->getIndexSelected();
391 static_cast<MultiListBox*
>(
this)->setIndexSelected(_index);
400 return static_cast<MultiListBox*
>(
this)->findSubItemWith(_column, _name);
404 return static_cast<MultiListBox*
>(
this)->getSubItemNameAt(_column, _index);
408 static_cast<MultiListBox*
>(
this)->setSubItemNameAt(_column, _index, _name);
412 static_cast<MultiListBox*
>(
this)->removeColumnAt(_column);
420 return static_cast<MultiListBox*
>(
this)->getColumnWidthAt(_column);
424 return static_cast<MultiListBox*
>(
this)->getColumnNameAt(_column);
428 static_cast<MultiListBox*
>(
this)->setColumnWidthAt(_column, _width);
432 static_cast<MultiListBox*
>(
this)->addColumn(_name, _width);
436 static_cast<MultiListBox*
>(
this)->setColumnNameAt(_column, _name);
440 static_cast<MultiListBox*
>(
this)->insertColumnAt(_column, _name, _width);
444 return static_cast<MultiListBox*
>(
this)->getIndexSelected();
452 static_cast<MultiListBox*
>(
this)->setIndexSelected(_index);
456 static_cast<MultiListBox*
>(
this)->insertItemAt(_index, _name);
460 static_cast<MultiListBox*
>(
this)->setItemNameAt(_index, _name);
464 return static_cast<MultiListBox*
>(
this)->getItemNameAt(_index);
503 static_cast<ScrollView*
>(
this)->setVisibleVScroll(_visible);
507 return static_cast<ScrollView*
>(
this)->isVisibleVScroll();
511 static_cast<ScrollView*
>(
this)->setVisibleHScroll(_visible);
515 return static_cast<ScrollView*
>(
this)->isVisibleHScroll();
521 return static_cast<TabControl*
>(
this)->getButtonWidthAt(_index);
525 return static_cast<TabControl*
>(
this)->getButtonWidth(_sheet);
529 static_cast<TabControl*
>(
this)->setButtonWidthAt(_index, _width);
533 static_cast<TabControl*
>(
this)->setButtonWidth(_sheet, _width);
537 static_cast<TabControl*
>(
this)->beginToItemAt(_index);
541 static_cast<TabControl*
>(
this)->beginToItemSelected();
545 return static_cast<TabControl*
>(
this)->getItemCount();
549 return static_cast<TabControl*
>(
this)->getItemName(_sheet);
553 return static_cast<TabControl*
>(
this)->getItemNameAt(_index);
557 return static_cast<TabControl*
>(
this)->getItemAt(_index);
561 static_cast<TabControl*
>(
this)->setItemNameAt(_index, _name);
565 static_cast<TabControl*
>(
this)->setItemName(_sheet, _name);
569 return static_cast<TabControl*
>(
this)->addItem(_name, _width);
573 return static_cast<TabControl*
>(
this)->insertItemAt(_index, _name);
577 static_cast<TabControl*
>(
this)->removeItemAt(_index);
581 static_cast<TabControl*
>(
this)->removeItem(_sheet);
585 static_cast<TabControl*
>(
this)->setIndexSelected(_index);
589 static_cast<TabControl*
>(
this)->setItemSelected(_sheet);
593 return static_cast<TabControl*
>(
this)->getIndexSelected();
598 return static_cast<TabControl*
>(
this)->getIndexSelected();
602 static_cast<TabControl*
>(
this)->setIndexSelected(_index);
608 return static_cast<Widget*
>(
this)->getEnabled();
612 return static_cast<Widget*
>(
this)->getInheritsAlpha();
616 return static_cast<Widget*
>(
this)->getNeedKeyFocus();
620 return static_cast<Widget*
>(
this)->getNeedMouseFocus();
624 return static_cast<Widget*
>(
this)->getInheritsPick();
628 return static_cast<Widget*
>(
this)->getVisible();
634 static_cast<Window*
>(
this)->setVisibleSmooth(
true);
638 static_cast<Window*
>(
this)->setVisibleSmooth(
false);
642 static_cast<Window*
>(
this)->setMinSize(_minmax.
left, _minmax.
top);
647 static_cast<Window*
>(
this)->setMinSize(_min_w, _min_h);
648 static_cast<Window*
>(
this)->setMaxSize(_max_w, _max_h);
652 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);
662 static_cast<Gui*
>(
this)->destroyWidgets(_widgets);
798 return static_cast<SkinManager*
>(
this)->getByName(_name);
824 #endif // MYGUI_DONT_USE_OBSOLETE
826 #ifndef MYGUI_DONT_USE_OBSOLETE
830 Align align = utility::parseValue<Align>(_value);
844 return coord.
print();
852 #endif // MYGUI_DONT_USE_OBSOLETE
856 #ifndef MYGUI_DONT_USE_OBSOLETE
859 #endif // MYGUI_DONT_USE_OBSOLETE
865 #ifndef MYGUI_DONT_USE_OBSOLETE
873 _key = (*item).second;
875 else if (_key ==
"Progress_StartPoint")
878 _key =
"Progress_FlowDirection";
881 else if (_key ==
"ComboBox_AddItem")
885 if (widget !=
nullptr)
889 else if (_key ==
"List_AddItem")
893 if (widget !=
nullptr)
897 else if (_key ==
"Tab_AddSheet")
901 if (widget !=
nullptr)
905 else if (_key ==
"Tab_AddItem")
909 if (widget !=
nullptr)
913 else if (_key ==
"Window_MinMax")
917 if (widget !=
nullptr)
925 else if (_key ==
"ImageRect")
931 else if (_key ==
"StartPoint")
934 _key =
"FlowDirection";
938 #endif // MYGUI_DONT_USE_OBSOLETE
944 #ifndef MYGUI_DONT_USE_OBSOLETE
1033 mSkinRename[
"DefaultClient"] =
"ClientDefaultSkin";
1047 mSkinRename[
"ButtonMinusPlus"] =
"ButtonExpandSkin";
1048 #endif // MYGUI_DONT_USE_OBSOLETE
1053 #ifndef MYGUI_DONT_USE_OBSOLETE
1056 return (*item).second;
1058 return _propertyName;
1063 #ifndef MYGUI_DONT_USE_OBSOLETE
1064 if (_categoryName ==
"Widget")
1066 if (_factoryName ==
"HScroll")
1070 else if (_factoryName ==
"VScroll")
1074 else if (_factoryName ==
"RenderBox")
1078 else if (_factoryName ==
"Sheet")
1082 else if (_factoryName ==
"StaticImage")
1086 else if (_factoryName ==
"StaticText")
1090 else if (_factoryName ==
"Progress")
1094 else if (_factoryName ==
"List")
1098 else if (_factoryName ==
"Edit")
1102 else if (_factoryName ==
"Tab")
1106 else if (_factoryName ==
"MultiList")
1110 else if (_factoryName ==
"MenuCtrl")
1115 #endif // MYGUI_DONT_USE_OBSOLETE
1116 return _factoryName;
1121 #ifndef MYGUI_DONT_USE_OBSOLETE
1122 MapString::iterator item =
mSkinRename.find(_skinName);
1126 return (*item).second;
1128 #endif // MYGUI_DONT_USE_OBSOLETE
1134 #ifndef MYGUI_DONT_USE_OBSOLETE
1136 #endif // MYGUI_DONT_USE_OBSOLETE
1141 #ifndef MYGUI_DONT_USE_OBSOLETE
1155 #endif // MYGUI_DONT_USE_OBSOLETE
static const std::string & getClassTypeName()
std::string print() const
types::TRect< int > IntRect
static const std::string & getClassTypeName()
static SetString mPropertyIgnore
static ResourceManager & getInstance()
static const std::string & getClassTypeName()
Widget * findWidgetT(const std::string &_name, bool _throw=true)
void setVisible(bool _visible)
void frameEvent(float _time)
void setMinSize(const IntSize &_value)
virtual const IntSize & getViewSize() const =0
static MapString mSkinRename
static const std::string & getClassTypeName()
static TRect< int > parse(const std::string &_value)
static std::string getSkinRename(const std::string &_skinName)
static const std::string & getClassTypeName()
std::string convertRectToCoord(const std::string &_value)
#define MYGUI_LOG(level, text)
void resizeView(const IntSize &_viewSize)
static bool checkProperty(Widget *_owner, std::string &_key, std::string &_value)
static MapString mPropertyRename
bool load(const std::string &_file)
std::vector< Widget * > VectorWidgetPtr
std::map< std::string, std::string > MapString
static std::string getFactoryRename(const std::string &_categoryName, const std::string &_factoryName)
static const std::string & getClassTypeName()
Type * castType(bool _throw=true)
TabItem * addItem(const UString &_name, Any _data=Any::Null)
Add an item to the end of a array.
static bool isIgnoreProperty(const std::string &_key)
void registerFactory(const std::string &_category, const std::string &_type, Delegate::IDelegate *_delegate)
static const std::string & getClassTypeName()
static void registerWidgetTypes()
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
void setMaxSize(const IntSize &_value)
const std::string & getCurrentLayout() const
static const std::string & getClassTypeName()
void addItem(const UString &_name, Any _data=Any::Null)
Add an item to the end of a array.
std::set< std::string > SetString
static std::string getPropertyRename(const std::string &_propertyName)
void addItem(const UString &_name, Any _data=Any::Null)
Add an item to the end of a array.
std::string print() const
static const std::string & getClassTypeName()
std::string convertAlignToDirection(const std::string &_value)