42#ifndef MYGUI_DONT_USE_OBSOLETE
46 static_cast<Button*
>(
this)->setStateSelected(_value);
50 return static_cast<const Button*
>(
this)->getStateSelected();
54 static_cast<Button*
>(
this)->setStateSelected(_value);
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())
78 static_cast<ImageBox*
>(
this)->addItemFrameDuplicate(_index, _indexSourceFrame);
82 static_cast<ImageBox*
>(
this)->insertItemFrameDuplicate(_index, _indexFrame, _indexSourceFrame);
88 return static_cast<const 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<const ComboBox*
>(
this)->getItemNameAt(_index);
113 static_cast<ComboBox*
>(
this)->removeItemAt(_index);
117 static_cast<ComboBox*
>(
this)->removeAllItems();
121 return static_cast<const 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<const 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<const EditBox*
>(
this)->getTextSelectionStart();
166 _end =
static_cast<const EditBox*
>(
this)->getTextSelectionEnd();
170 return static_cast<const EditBox*
>(
this)->getTextInterval(_start, _count);
174 static_cast<EditBox*
>(
this)->setTextSelection(_start, _end);
178 static_cast<EditBox*
>(
this)->deleteTextSelection();
182 return static_cast<const EditBox*
>(
this)->getTextSelection();
186 return static_cast<EditBox*
>(
this)->isTextSelection();
190 static_cast<EditBox*
>(
this)->setTextSelectionColour(_colour);
196 return static_cast<const 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<const ItemBox*
>(
this)->getIndexSelected();
229 static_cast<ItemBox*
>(
this)->clearIndexSelected();
233 static_cast<ItemBox*
>(
this)->setIndexSelected(_index);
238 return static_cast<const ItemBox*
>(
this)->getWidgetDrag();
242 static_cast<ItemBox*
>(
this)->resetDrag();
247 static_cast<ItemBox*
>(
this)->setVerticalAlignment(_value);
251 return static_cast<const ItemBox*
>(
this)->getVerticalAlignment();
257 return static_cast<const 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<const 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<const 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);
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<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();
385 static_cast<MultiListBox*
>(
this)->setIndexSelected(_index);
394 return static_cast<MultiListBox*
>(
this)->findSubItemWith(_column, _name);
398 return static_cast<const MultiListBox*
>(
this)->getSubItemNameAt(_column, _index);
402 static_cast<MultiListBox*
>(
this)->setSubItemNameAt(_column, _index, _name);
406 static_cast<MultiListBox*
>(
this)->removeColumnAt(_column);
414 return static_cast<const MultiListBox*
>(
this)->getColumnWidthAt(_column);
418 return static_cast<const 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<const MultiListBox*
>(
this)->getIndexSelected();
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<const MultiListBox*
>(
this)->getItemNameAt(_index);
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<const TabControl*
>(
this)->getButtonWidthAt(_index);
519 return static_cast<const 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<const TabControl*
>(
this)->getItemCount();
543 return static_cast<const TabControl*
>(
this)->getItemName(_sheet);
547 return static_cast<const TabControl*
>(
this)->getItemNameAt(_index);
551 return static_cast<const 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<const TabControl*
>(
this)->getIndexSelected();
592 return static_cast<const 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);
641 static_cast<Window*
>(
this)->setMinSize(_min_w, _min_h);
642 static_cast<Window*
>(
this)->setMaxSize(_max_w, _max_h);
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);
673 type =
"ResourceManualFont";
675 type =
"ResourceTrueTypeFont";
758 while (codeold.
next(
"Code"))
782 static_cast<Gui*
>(
this)->destroyWidgets(_widgets);
924 while (info.
next(
"Info"))
932 std::string type = (shared_text.empty() && texture.empty()) ?
"ResourceImageSetPointer" :
"ResourceManualPointer";
969 if (!shared_text.empty() || !texture.empty())
973 prop->
addAttribute(
"value", shared_text.empty() ? texture : shared_text);
984 if (!pointer.empty())
994 return static_cast<const ResourceManager*
>(
this)->getByName(_name, _throw);
999 return static_cast<const SkinManager*
>(
this)->getByName(_name);
1011 while (skin.
next(_tag))
1015 type =
"ResourceSkin";
1018 if (
object !=
nullptr)
1031 static_cast<WidgetManager*
>(
this)->destroyWidgets(_widgets);
1049#ifndef MYGUI_DONT_USE_OBSOLETE
1053 Align align = utility::parseValue<Align>(_value);
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")
1108 if (widget !=
nullptr)
1112 else if (_key ==
"List_AddItem")
1116 if (widget !=
nullptr)
1120 else if (_key ==
"Tab_AddSheet")
1124 if (widget !=
nullptr)
1128 else if (_key ==
"Tab_AddItem")
1132 if (widget !=
nullptr)
1136 else if (_key ==
"Window_MinMax")
1140 if (widget !=
nullptr)
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;
1281 return _propertyName;
1286#ifndef MYGUI_DONT_USE_OBSOLETE
1287 if (_categoryName ==
"Widget")
1289 if (_factoryName ==
"HScroll")
1293 else if (_factoryName ==
"VScroll")
1297 else if (_factoryName ==
"RenderBox")
1301 else if (_factoryName ==
"Sheet")
1305 else if (_factoryName ==
"StaticImage")
1309 else if (_factoryName ==
"StaticText")
1313 else if (_factoryName ==
"Progress")
1317 else if (_factoryName ==
"List")
1321 else if (_factoryName ==
"Edit")
1325 else if (_factoryName ==
"Tab")
1329 else if (_factoryName ==
"MultiList")
1333 else if (_factoryName ==
"MenuCtrl")
1339 return _factoryName;
1344#ifndef MYGUI_DONT_USE_OBSOLETE
1345 MapString::iterator item =
mSkinRename.find(_skinName);
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.
void addItem(const UString &_name, Any _data=Any::Null)
Add an item to the end of a array.
widget description should be here.
static const std::string & getClassTypeName()
static FactoryManager & getInstance()
void registerFactory(const std::string &_category, const std::string &_type, Delegate::IDelegate *_delegate)
IObject * createObject(const std::string &_category, const std::string &_type)
Widget * findWidgetT(const std::string &_name, bool _throw=true)
void frameEvent(float _time)
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()
void resizeView(const IntSize &_viewSize)
const std::string & getCurrentLayout() const
static LayoutManager & getInstance()
widget description should be here.
void addItem(const UString &_name, Any _data=Any::Null)
Add an item to the end of a array.
static const std::string & getClassTypeName()
widget description should be here.
static const std::string & getClassTypeName()
void setVisible(bool _visible)
static PointerManager & getInstance()
void setDefaultPointer(const std::string &_value)
widget description should be here.
static const std::string & getClassTypeName()
virtual const IntSize & getViewSize() const =0
static RenderManager & getInstance()
const std::string & getCategoryName() const
void loadFromXmlNode(xml::ElementPtr _node, const std::string &_file, Version _version)
bool load(const std::string &_file)
static ResourceManager & getInstance()
void addResource(IResourcePtr _item)
void deserialization(xml::ElementPtr _node, Version _version) override
widget description should be here.
static const std::string & getClassTypeName()
TabItem * addItem(const UString &_name, Any _data=Any::Null)
Add an item to the end of a array.
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.
void setMinSize(const IntSize &_value)
void setMaxSize(const IntSize &_value)
ElementPtr createRoot(const std::string &_name)
ElementPtr createChild(const std::string &_name, const std::string &_content="", ElementType _type=ElementType::Normal)
ElementEnumerator getElementEnumerator()
const std::string & getName() const
void addAttribute(const std::string &_key, const T &_value)
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)