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())
67 static_cast<Button*>(
this)->_getImageBox()->setImageIndex(_index);
71 if (static_cast<Button*>(
this)->_getImageBox())
72 return static_cast<Button*>(
this)->_getImageBox()->getImageIndex();
78 static_cast<ImageBox*>(
this)->addItemFrameDuplicate(_index, _indexSourceFrame);
82 static_cast<ImageBox*>(
this)->insertItemFrameDuplicate(_index, _indexFrame, _indexSourceFrame);
88 return static_cast<ComboBox*>(
this)->getIndexSelected();
92 static_cast<ComboBox*>(
this)->setIndexSelected(_index);
96 static_cast<ComboBox*>(
this)->clearIndexSelected();
101 static_cast<ComboBox*>(
this)->insertItemAt(_index, _name);
105 static_cast<ComboBox*>(
this)->setItemNameAt(_index, _item);
109 return static_cast<ComboBox*>(
this)->getItemNameAt(_index);
113 static_cast<ComboBox*>(
this)->removeItemAt(_index);
117 static_cast<ComboBox*>(
this)->removeAllItems();
121 return static_cast<ComboBox*>(
this)->getIndexSelected();
125 static_cast<ComboBox*>(
this)->clearIndexSelected();
129 static_cast<ComboBox*>(
this)->setIndexSelected(_index);
134 static_cast<ComboBox*>(
this)->setMaxListLength(_value);
138 return static_cast<ComboBox*>(
this)->getMaxListLength();
144 static_cast<EditBox*>(
this)->setVisibleVScroll(_visible);
148 return static_cast<EditBox*>(
this)->isVisibleVScroll();
152 static_cast<EditBox*>(
this)->setVisibleHScroll(_visible);
156 return static_cast<EditBox*>(
this)->isVisibleHScroll();
161 static_cast<EditBox*>(
this)->setTextIntervalColour(_start, _count, _colour);
165 _start = static_cast<EditBox*>(
this)->getTextSelectionStart();
166 _end = static_cast<EditBox*>(
this)->getTextSelectionEnd();
170 return static_cast<EditBox*>(
this)->getTextInterval(_start, _count);
174 static_cast<EditBox*>(
this)->setTextSelection(_start, _end);
178 static_cast<EditBox*>(
this)->deleteTextSelection();
182 return static_cast<EditBox*>(
this)->getTextSelection();
186 return static_cast<EditBox*>(
this)->isTextSelection();
190 static_cast<EditBox*>(
this)->setTextSelectionColour(_colour);
196 return static_cast<ItemBox*>(
this)->getIndexSelected();
200 static_cast<ItemBox*>(
this)->setIndexSelected(_index);
204 static_cast<ItemBox*>(
this)->clearIndexSelected();
209 static_cast<ItemBox*>(
this)->insertItemAt(_index, _data);
213 static_cast<ItemBox*>(
this)->setItemDataAt(_index, _data);
217 static_cast<ItemBox*>(
this)->removeItemAt(_index);
221 static_cast<ItemBox*>(
this)->removeAllItems();
225 return static_cast<ItemBox*>(
this)->getIndexSelected();
229 static_cast<ItemBox*>(
this)->clearIndexSelected();
233 static_cast<ItemBox*>(
this)->setIndexSelected(_index);
238 return static_cast<ItemBox*>(
this)->getWidgetDrag();
242 static_cast<ItemBox*>(
this)->resetDrag();
247 static_cast<ItemBox*>(
this)->setVerticalAlignment(_value);
251 return static_cast<ItemBox*>(
this)->getVerticalAlignment();
257 return static_cast<ListBox*>(
this)->getIndexSelected();
261 static_cast<ListBox*>(
this)->setIndexSelected(_index);
265 static_cast<ListBox*>(
this)->clearIndexSelected();
270 static_cast<ListBox*>(
this)->insertItemAt(_index, _item);
274 static_cast<ListBox*>(
this)->setItemNameAt(_index, _item);
278 return static_cast<ListBox*>(
this)->getItemNameAt(_index);
282 static_cast<ListBox*>(
this)->removeItemAt(_index);
286 static_cast<ListBox*>(
this)->removeAllItems();
290 return static_cast<ListBox*>(
this)->findItemIndexWith(_item);
294 return static_cast<ListBox*>(
this)->getIndexSelected();
298 static_cast<ListBox*>(
this)->clearIndexSelected();
302 static_cast<ListBox*>(
this)->setIndexSelected(_index);
306 static_cast<ListBox*>(
this)->beginToItemAt(_index);
310 static_cast<ListBox*>(
this)->beginToItemFirst();
314 static_cast<ListBox*>(
this)->beginToItemLast();
318 static_cast<ListBox*>(
this)->beginToItemSelected();
322 return static_cast<ListBox*>(
this)->isItemVisibleAt(_index, _fill);
326 return static_cast<ListBox*>(
this)->isItemSelectedVisible(_fill);
332 static_cast<MenuControl*>(
this)->setVisible(
true);
336 static_cast<MenuControl*>(
this)->setVisible(
false);
340 return static_cast<MenuControl*>(
this)->getVisible();
345 static_cast<MenuControl*>(
this)->setItemChildVisibleAt(_index,
true);
349 static_cast<MenuControl*>(
this)->setItemChildVisible(_item,
true);
353 static_cast<MenuControl*>(
this)->setItemChildVisibleAt(_index,
false);
357 static_cast<MenuControl*>(
this)->setItemChildVisible(_item,
false);
362 static_cast<MenuControl*>(
this)->setVerticalAlignment(_value);
366 return static_cast<MenuControl*>(
this)->getVerticalAlignment();
371 static_cast<MenuItem*>(
this)->setItemChildVisible(
true);
375 static_cast<MenuItem*>(
this)->setItemChildVisible(
false);
381 return static_cast<MultiListBox*>(
this)->getIndexSelected();
385 static_cast<MultiListBox*>(
this)->setIndexSelected(_index);
389 static_cast<MultiListBox*>(
this)->clearIndexSelected();
394 return static_cast<MultiListBox*>(
this)->findSubItemWith(_column, _name);
398 return static_cast<MultiListBox*>(
this)->getSubItemNameAt(_column, _index);
402 static_cast<MultiListBox*>(
this)->setSubItemNameAt(_column, _index, _name);
406 static_cast<MultiListBox*>(
this)->removeColumnAt(_column);
410 static_cast<MultiListBox*>(
this)->removeAllColumns();
414 return static_cast<MultiListBox*>(
this)->getColumnWidthAt(_column);
418 return static_cast<MultiListBox*>(
this)->getColumnNameAt(_column);
422 static_cast<MultiListBox*>(
this)->setColumnWidthAt(_column, _width);
426 static_cast<MultiListBox*>(
this)->addColumn(_name, _width);
430 static_cast<MultiListBox*>(
this)->setColumnNameAt(_column, _name);
434 static_cast<MultiListBox*>(
this)->insertColumnAt(_column, _name, _width);
438 return static_cast<MultiListBox*>(
this)->getIndexSelected();
442 static_cast<MultiListBox*>(
this)->clearIndexSelected();
446 static_cast<MultiListBox*>(
this)->setIndexSelected(_index);
450 static_cast<MultiListBox*>(
this)->insertItemAt(_index, _name);
454 static_cast<MultiListBox*>(
this)->setItemNameAt(_index, _name);
458 return static_cast<MultiListBox*>(
this)->getItemNameAt(_index);
462 static_cast<MultiListBox*>(
this)->removeItemAt(_index);
466 static_cast<MultiListBox*>(
this)->removeAllItems();
497 static_cast<ScrollView*>(
this)->setVisibleVScroll(_visible);
501 return static_cast<ScrollView*>(
this)->isVisibleVScroll();
505 static_cast<ScrollView*>(
this)->setVisibleHScroll(_visible);
509 return static_cast<ScrollView*>(
this)->isVisibleHScroll();
515 return static_cast<TabControl*>(
this)->getButtonWidthAt(_index);
519 return static_cast<TabControl*>(
this)->getButtonWidth(_sheet);
523 static_cast<TabControl*>(
this)->setButtonWidthAt(_index, _width);
527 static_cast<TabControl*>(
this)->setButtonWidth(_sheet, _width);
531 static_cast<TabControl*>(
this)->beginToItemAt(_index);
535 static_cast<TabControl*>(
this)->beginToItemSelected();
539 return static_cast<TabControl*>(
this)->getItemCount();
543 return static_cast<TabControl*>(
this)->getItemName(_sheet);
547 return static_cast<TabControl*>(
this)->getItemNameAt(_index);
551 return static_cast<TabControl*>(
this)->getItemAt(_index);
555 static_cast<TabControl*>(
this)->setItemNameAt(_index, _name);
559 static_cast<TabControl*>(
this)->setItemName(_sheet, _name);
563 return static_cast<TabControl*>(
this)->addItem(_name, _width);
567 return static_cast<TabControl*>(
this)->insertItemAt(_index, _name);
571 static_cast<TabControl*>(
this)->removeItemAt(_index);
575 static_cast<TabControl*>(
this)->removeItem(_sheet);
579 static_cast<TabControl*>(
this)->setIndexSelected(_index);
583 static_cast<TabControl*>(
this)->setItemSelected(_sheet);
587 return static_cast<TabControl*>(
this)->getIndexSelected();
592 return static_cast<TabControl*>(
this)->getIndexSelected();
596 static_cast<TabControl*>(
this)->setIndexSelected(_index);
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);
636 static_cast<Window*>(
this)->setMinSize(_minmax.
left, _minmax.
top);
637 static_cast<Window*>(
this)->setMaxSize(_minmax.
right, _minmax.
bottom);
641 static_cast<Window*>(
this)->setMinSize(_min_w, _min_h);
642 static_cast<Window*>(
this)->setMaxSize(_max_w, _max_h);
646 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);
669 type =
"ResourceManualFont";
671 type =
"ResourceTrueTypeFont";
754 while (codeold.
next(
"Code"))
778 static_cast<Gui*>(
this)->destroyWidgets(_widgets);
874 return static_cast<LayoutManager*>(
this)->loadLayout(_file);
884 static_cast<PointerManager*>(
this)->setDefaultPointer(_value);
888 static_cast<PointerManager*>(
this)->setVisible(
true);
892 static_cast<PointerManager*>(
this)->setVisible(
false);
896 return static_cast<PointerManager*>(
this)->isVisible();
920 while (info.
next(
"Info"))
928 std::string type = (shared_text.empty() && texture.empty()) ?
"ResourceImageSetPointer" :
"ResourceManualPointer";
965 if (!shared_text.empty() || !texture.empty())
969 prop->
addAttribute(
"value", shared_text.empty() ? texture : shared_text);
978 static_cast<PointerManager*>(
this)->setLayerName(layer);
980 if (!pointer.empty())
981 static_cast<PointerManager*>(
this)->setDefaultPointer(pointer);
986 return static_cast<ResourceManager*>(
this)->getCount();
990 return static_cast<ResourceManager*>(
this)->getByName(_name, _throw);
995 return static_cast<SkinManager*>(
this)->getByName(_name);
1007 while (skin.
next(_tag))
1011 type =
"ResourceSkin";
1014 if (
object !=
nullptr)
1027 static_cast<WidgetManager*>(
this)->destroyWidgets(_widgets);
1043 #endif // MYGUI_DONT_USE_OBSOLETE 1045 #ifndef MYGUI_DONT_USE_OBSOLETE 1049 Align align = utility::parseValue<Align>(_value);
1063 return coord.
print();
1071 #endif // MYGUI_DONT_USE_OBSOLETE 1075 #ifndef MYGUI_DONT_USE_OBSOLETE 1078 #endif // MYGUI_DONT_USE_OBSOLETE 1084 #ifndef MYGUI_DONT_USE_OBSOLETE 1092 _key = (*item).second;
1094 else if (_key ==
"Progress_StartPoint")
1097 _key =
"Progress_FlowDirection";
1100 else if (_key ==
"ComboBox_AddItem")
1104 if (widget !=
nullptr)
1108 else if (_key ==
"List_AddItem")
1112 if (widget !=
nullptr)
1116 else if (_key ==
"Tab_AddSheet")
1120 if (widget !=
nullptr)
1124 else if (_key ==
"Tab_AddItem")
1128 if (widget !=
nullptr)
1132 else if (_key ==
"Window_MinMax")
1136 if (widget !=
nullptr)
1144 else if (_key ==
"ImageRect")
1147 _key =
"ImageCoord";
1150 else if (_key ==
"StartPoint")
1153 _key =
"FlowDirection";
1157 #endif // MYGUI_DONT_USE_OBSOLETE 1163 #ifndef MYGUI_DONT_USE_OBSOLETE 1252 mSkinRename[
"DefaultClient"] =
"ClientDefaultSkin";
1266 mSkinRename[
"ButtonMinusPlus"] =
"ButtonExpandSkin";
1267 #endif // MYGUI_DONT_USE_OBSOLETE 1272 #ifndef MYGUI_DONT_USE_OBSOLETE 1275 return (*item).second;
1277 return _propertyName;
1282 #ifndef MYGUI_DONT_USE_OBSOLETE 1283 if (_categoryName ==
"Widget")
1285 if (_factoryName ==
"HScroll")
1289 else if (_factoryName ==
"VScroll")
1293 else if (_factoryName ==
"RenderBox")
1297 else if (_factoryName ==
"Sheet")
1301 else if (_factoryName ==
"StaticImage")
1305 else if (_factoryName ==
"StaticText")
1309 else if (_factoryName ==
"Progress")
1313 else if (_factoryName ==
"List")
1317 else if (_factoryName ==
"Edit")
1321 else if (_factoryName ==
"Tab")
1325 else if (_factoryName ==
"MultiList")
1329 else if (_factoryName ==
"MenuCtrl")
1334 #endif // MYGUI_DONT_USE_OBSOLETE 1335 return _factoryName;
1340 #ifndef MYGUI_DONT_USE_OBSOLETE 1341 MapString::iterator item =
mSkinRename.find(_skinName);
1345 return (*item).second;
1347 #endif // MYGUI_DONT_USE_OBSOLETE 1353 #ifndef MYGUI_DONT_USE_OBSOLETE 1355 #endif // MYGUI_DONT_USE_OBSOLETE 1360 #ifndef MYGUI_DONT_USE_OBSOLETE 1375 #endif // MYGUI_DONT_USE_OBSOLETE
static const std::string & getClassTypeName()
ComboBox properties. Skin childs. ComboBox widget description should be here.
types::TRect< int > IntRect
TabItem properties. Skin childs. TabItem widget description should be here.
ImageBox properties. Skin childs. ImageBox widget description should be here.
ElementPtr createRoot(const std::string &_name)
static const std::string & getClassTypeName()
static SetString mPropertyIgnore
static ResourceManager & getInstance()
void loadFromXmlNode(xml::ElementPtr _node, const std::string &_file, Version _version)
static const std::string & getClassTypeName()
bool findAttribute(const std::string &_name, std::string &_value)
Widget * findWidgetT(const std::string &_name, bool _throw=true)
void setVisible(bool _visible)
void frameEvent(float _time)
void setMinSize(const IntSize &_value)
ListBox properties. Skin childs. ListBox widget description should be here.
virtual const IntSize & getViewSize() const =0
static std::string convertRectToCoord(const std::string &_value)
static MapString mSkinRename
virtual void deserialization(xml::ElementPtr _node, Version _version)
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()
#define MYGUI_LOG(level, text)
EditBox properties. Skin childs. EditBox widget description should be here.
void resizeView(const IntSize &_viewSize)
static bool checkProperty(Widget *_owner, std::string &_key, std::string &_value)
static MapString mPropertyRename
ProgressBar properties. Skin childs. ProgressBar widget description should be here.
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)
const std::string & getCategoryName() const
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.
std::string print() const
static bool isIgnoreProperty(const std::string &_key)
std::string print() const
void registerFactory(const std::string &_category, const std::string &_type, Delegate::IDelegate *_delegate)
static const std::string & getClassTypeName()
ElementEnumerator getElementEnumerator()
static void registerWidgetTypes()
MultiListBox properties. Skin childs. MultiListBox widget description should be here.
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
void addResource(IResourcePtr _item)
TextBox properties. Skin childs. TextBox widget description should be here.
Canvas properties. Skin childs. Widget wrapper over Texture - shows the texture. Implemented: resizin...
void setMaxSize(const IntSize &_value)
Window properties. Skin childs. Window widget description should be here.
static const std::string & getClassTypeName()
const std::string & getName() const
void addItem(const UString &_name, Any _data=Any::Null)
Add an item to the end of a array.
std::set< std::string > SetString
TabControl properties. Skin childs. TabControl widget description should be here.
void addAttribute(const std::string &_key, const T &_value)
static std::string convertAlignToDirection(const std::string &_value)
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.
IObject * createObject(const std::string &_category, const std::string &_type)
static const std::string & getClassTypeName()
const std::string & getCurrentLayout() const
ElementPtr createChild(const std::string &_name, const std::string &_content="", ElementType _type=ElementType::Normal)