7#ifndef MYGUI_BACKWARD_COMPATIBILITY_H_
8#define MYGUI_BACKWARD_COMPATIBILITY_H_
28 class ResourceImageSet;
40#ifndef MYGUI_DONT_USE_OBSOLETE
50 "use : ElementPtr Document::createDeclaration(std::string_view _version, std::string_view _encoding)")
51 xml::ElementPtr createInfo(std::string_view _version =
"1.0", std::string_view _encoding =
"UTF-8");
58 MYGUI_OBSOLETE(
" is deprecated, use : void Button::setStateSelected(bool _value)")
59 void setButtonPressed(
bool _value);
60 MYGUI_OBSOLETE(
" is deprecated, use : bool Button::getStateSelected()")
61 bool getButtonPressed() const;
62 MYGUI_OBSOLETE(
" is deprecated, use : void Button::setStateSelected(bool _value)")
63 void setStateCheck(
bool _value);
64 MYGUI_OBSOLETE(
" is deprecated, use : bool Button::getStateSelected()")
65 bool getStateCheck() const;
67 ImageBox* getStaticImage() const;
68 MYGUI_OBSOLETE(
" is deprecated, use : void Button::setImageName(std::string_view _name)")
69 void setImageIndex(
size_t _index);
71 size_t getImageIndex() const;
79 " is deprecated, use : void ImageBox::addItemFrameDuplicate(size_t _index, size_t _indexSourceFrame)")
80 void addItemFrameDublicate(
size_t _index,
size_t _indexSourceFrame);
82 " is deprecated, use : void ImageBox::insertItemFrameDuplicate(size_t _index, size_t "
83 "_indexFrame, size_t _indexSourceFrame)")
84 void insertItemFrameDublicate(
size_t _index,
size_t _indexFrame,
size_t _indexSourceFrame);
91 MYGUI_OBSOLETE(
" is deprecated, use : size_t ComboBox::getIndexSelected()")
92 size_t getItemIndexSelected() const;
93 MYGUI_OBSOLETE(
" is deprecated, use : void ComboBox::setIndexSelected(size_t _index)")
94 void setItemSelectedAt(
size_t _index);
95 MYGUI_OBSOLETE(
" is deprecated, use : void ComboBox::clearIndexSelected()")
96 void clearItemSelected();
98 MYGUI_OBSOLETE(
" is deprecated, use : void ComboBox::insertItemAt(size_t _index, const UString& _name)")
99 void insertItem(
size_t _index, const UString& _name);
100 MYGUI_OBSOLETE(
" is deprecated, use : void ComboBox::setItemNameAt(size_t _index, const UString& _name)")
101 void setItem(
size_t _index, const UString& _item);
102 MYGUI_OBSOLETE(
" is deprecated, use : const UString& ComboBox::getItemNameAt(size_t _index)")
103 const UString& getItem(
size_t _index) const;
104 MYGUI_OBSOLETE(
" is deprecated, use : void ComboBox::removeItemAt(size_t _index)")
105 void deleteItem(
size_t _index);
106 MYGUI_OBSOLETE(
" is deprecated, use : void ComboBox::removeAllItems()")
107 void deleteAllItems();
108 MYGUI_OBSOLETE(
" is deprecated, use : size_t ComboBox::getIndexSelected()")
109 size_t getItemSelect() const;
110 MYGUI_OBSOLETE(
" is deprecated, use : void void ComboBox::clearIndexSelected()")
111 void resetItemSelect();
112 MYGUI_OBSOLETE(
" is deprecated, use : void ComboBox::setIndexSelected(size_t _index)")
113 void setItemSelect(
size_t _index);
115 MYGUI_OBSOLETE(
" is deprecated, use : void ComboBox::setMaxListLength(int _value)")
116 void setMaxListHeight(
int _value);
117 MYGUI_OBSOLETE(
" is deprecated, use : int ComboBox::getMaxListLength()")
118 int getMaxListHeight() const;
125 MYGUI_OBSOLETE(
" is deprecated, use : void EditBox::setVisibleVScroll(bool _visible)")
126 void showVScroll(
bool _visible);
127 MYGUI_OBSOLETE(
" is deprecated, use : bool EditBox::isVisibleVScroll()")
128 bool isShowVScroll();
129 MYGUI_OBSOLETE(
" is deprecated, use : void EditBox::setVisibleHScroll(bool _visible)")
130 void showHScroll(
bool _visible);
131 MYGUI_OBSOLETE(
" is deprecated, use : bool EditBox::isVisibleHScroll()")
132 bool isShowHScroll();
135 " is deprecated, use : void EditBox::setTextIntervalColour(size_t _start, size_t _count, const "
137 void setTextColour(
size_t _start,
size_t _count, const Colour& _colour);
138 MYGUI_OBSOLETE(
" is deprecated, use : size_t EditBox::getTextSelectionStart() , size_t getTextSelectionEnd()")
139 void getTextSelect(
size_t& _start,
size_t& _end) const;
140 MYGUI_OBSOLETE(
" is deprecated, use : UString EditBox::getTextInterval(size_t _start, size_t _count)")
141 UString getText(
size_t _start,
size_t _count) const;
142 MYGUI_OBSOLETE(
" is deprecated, use : void EditBox::setTextSelection(size_t _start, size_t _end)")
143 void setTextSelect(
size_t _start,
size_t _end);
144 MYGUI_OBSOLETE(
" is deprecated, use : void EditBox::deleteTextSelection()")
145 void deleteTextSelect();
146 MYGUI_OBSOLETE(
" is deprecated, use : UString EditBox::getTextSelection()")
147 UString getSelectedText() const;
148 MYGUI_OBSOLETE(
" is deprecated, use : bool EditBox::isTextSelection()")
150 MYGUI_OBSOLETE(
" is deprecated, use : void EditBox::setTextSelectionColour(const Colour& _colour)")
151 void setTextSelectColour(const Colour& _colour);
158 MYGUI_OBSOLETE(
" is deprecated, use : size_t ItemBox::getItemIndexSelected()")
159 size_t getItemIndexSelected() const;
160 MYGUI_OBSOLETE(
" is deprecated, use : void ItemBox::setIndexSelected(size_t _index)")
161 void setItemSelectedAt(
size_t _index);
162 MYGUI_OBSOLETE(
" is deprecated, use : void ItemBox::clearIndexSelected()")
163 void clearItemSelected();
165 MYGUI_OBSOLETE(
" is deprecated, use : void ItemBox::insertItemAt(size_t _index, Any _data)")
166 void insertItem(
size_t _index, Any _data = Any::Null);
167 MYGUI_OBSOLETE(
" is deprecated, use : void ItemBox::setItemDataAt(size_t _index, Any _data)")
168 void setItemData(
size_t _index, Any _data);
169 MYGUI_OBSOLETE(
" is deprecated, use : void ItemBox::removeItemAt(size_t _index)")
170 void deleteItem(
size_t _index);
171 MYGUI_OBSOLETE(
" is deprecated, use : void ItemBox::removeAllItems()")
172 void deleteAllItems();
173 MYGUI_OBSOLETE(
" is deprecated, use : size_t ItemBox::getIndexSelected()")
174 size_t getItemSelect() const;
175 MYGUI_OBSOLETE(
" is deprecated, use : void ItemBox::clearIndexSelected()")
176 void resetItemSelect();
177 MYGUI_OBSOLETE(
" is deprecated, use : void ItemBox::setIndexSelected(size_t _index)")
178 void setItemSelect(
size_t _index);
180 MYGUI_OBSOLETE(
" is deprecated, use : Widget* ItemBox::getWidgetDrag()")
181 Widget* getWidgetDrop() const;
185 MYGUI_OBSOLETE(
" is deprecated, use : void ItemBox::setVerticalAlignment(bool _value)")
186 void setItemBoxAlignVert(
bool _value);
187 MYGUI_OBSOLETE(
" is deprecated, use : bool ItemBox::getVerticalAlignment() const")
188 bool getItemBoxAlignVert() const;
195 MYGUI_OBSOLETE(
" is deprecated, use : size_t ListBox::getIndexSelected()")
196 size_t getItemIndexSelected() const;
197 MYGUI_OBSOLETE(
" is deprecated, use : void ListBox::setIndexSelected(size_t _index)")
198 void setItemSelectedAt(
size_t _index);
199 MYGUI_OBSOLETE(
" is deprecated, use : void ListBox::clearIndexSelected()")
200 void clearItemSelected();
202 MYGUI_OBSOLETE(
" is deprecated, use : void ListBox::insertItemAt(size_t _index, const UString& _name)")
203 void insertItem(
size_t _index, const UString& _item);
204 MYGUI_OBSOLETE(
" is deprecated, use : void ListBox::setItemNameAt(size_t _index, const UString& _name)")
205 void setItem(
size_t _index, const UString& _item);
206 MYGUI_OBSOLETE(
" is deprecated, use : const UString& ListBox::getItemNameAt(size_t _index)")
207 const UString& getItem(
size_t _index) const;
208 MYGUI_OBSOLETE(
" is deprecated, use : void ListBox::removeItemAt(size_t _index)")
209 void deleteItem(
size_t _index);
210 MYGUI_OBSOLETE(
" is deprecated, use : void ListBox::removeAllItems()")
211 void deleteAllItems();
212 MYGUI_OBSOLETE(
" is deprecated, use : size_t ListBox::findItemIndexWith(const UString& _name)")
213 size_t findItem(const UString& _item);
214 MYGUI_OBSOLETE(
" is deprecated, use : size_t ListBox::getIndexSelected()")
215 size_t getItemSelect() const;
216 MYGUI_OBSOLETE(
" is deprecated, use : void ListBox::clearIndexSelected()")
217 void resetItemSelect();
218 MYGUI_OBSOLETE(
" is deprecated, use : void ListBox::setIndexSelected(size_t _index)")
219 void setItemSelect(
size_t _index);
220 MYGUI_OBSOLETE(
" is deprecated, use : void ListBox::beginToItemAt(size_t _index)")
221 void beginToIndex(
size_t _index);
222 MYGUI_OBSOLETE(
" is deprecated, use : void ListBox::beginToItemFirst()")
224 MYGUI_OBSOLETE(
" is deprecated, use : void ListBox::beginToItemLast()")
226 MYGUI_OBSOLETE(
" is deprecated, use : void ListBox::beginToItemSelected()")
227 void beginToSelect();
228 MYGUI_OBSOLETE(
" is deprecated, use : bool ListBox::isItemVisibleAt(size_t _index, bool _fill)")
229 bool isItemVisible(
size_t _index,
bool _fill = true);
230 MYGUI_OBSOLETE(
" is deprecated, use : bool ListBox::isItemSelectedVisible(bool _fill)")
231 bool isItemSelectVisible(
bool _fill = true);
238 MYGUI_OBSOLETE(
" is deprecated, use : void Widget::setVisible(bool _value)")
240 MYGUI_OBSOLETE(
" is deprecated, use : void Widget::setVisible(bool _value)")
245 MYGUI_OBSOLETE(
" is deprecated, use : void setItemChildVisibleAt(size_t _index, bool _visible)")
246 void showItemChildAt(
size_t _index);
247 MYGUI_OBSOLETE(
" is deprecated, use : void setItemChildVisible(MenuItem* _item, bool _visible)")
248 void showItemChild(MenuItem* _item);
249 MYGUI_OBSOLETE(
" is deprecated, use : void setItemChildVisibleAt(size_t _index, bool _visible)")
250 void hideItemChildAt(
size_t _index);
251 MYGUI_OBSOLETE(
" is deprecated, use : void setItemChildVisible(MenuItem* _item, bool _visible)")
252 void hideItemChild(MenuItem* _item);
254 MYGUI_OBSOLETE(
" is deprecated, use : void MenuControl::setVerticalAlignment(bool _value)")
255 void setAlignVert(
bool _value);
256 MYGUI_OBSOLETE(
" is deprecated, use : bool MenuControl::getVerticalAlignment() const")
257 bool getAlignVert() const;
264 MYGUI_OBSOLETE(
" is deprecated, use : void setItemChildVisible(bool _visible)")
265 void showItemChild();
266 MYGUI_OBSOLETE(
" is deprecated, use : void setItemChildVisible(bool _visible)")
267 void hideItemChild();
274 MYGUI_OBSOLETE(
" is deprecated, use : size_t MultiListBox::getIndexSelected()")
275 size_t getItemIndexSelected() const;
276 MYGUI_OBSOLETE(
" is deprecated, use : void MultiListBox::setIndexSelected(size_t _index)")
277 void setItemSelectedAt(
size_t _index);
278 MYGUI_OBSOLETE(
" is deprecated, use : void MultiListBox::clearIndexSelected()")
279 void clearItemSelected();
282 " is deprecated, use : size_t MultiListBox::findSubItemWith(size_t _column, const UString& _name)")
283 size_t findItem(
size_t _column, const UString& _name);
285 " is deprecated, use : const UString& MultiListBox::getSubItemNameAt(size_t _column, size_t _index)")
286 const UString& getSubItem(
size_t _column,
size_t _index) const;
288 " is deprecated, use : void MultiListBox::setSubItemNameAt(size_t _column, size_t _index, const "
290 void setSubItem(
size_t _column,
size_t _index, const UString& _name);
291 MYGUI_OBSOLETE(
" is deprecated, use : void MultiListBox::removeColumnAt(size_t _column)")
292 void deleteColumn(
size_t _column);
293 MYGUI_OBSOLETE(
" is deprecated, use : void MultiListBox::removeAllColumns()")
294 void deleteAllColumns();
295 MYGUI_OBSOLETE(
" is deprecated, use : int MultiListBox::getColumnWidthAt(size_t _column)")
296 int getColumnWidth(
size_t _column) const;
297 MYGUI_OBSOLETE(
" is deprecated, use : const UString& MultiListBox::getColumnNameAt(size_t _column)")
298 const UString& getColumnName(
size_t _column) const;
299 MYGUI_OBSOLETE(
" is deprecated, use : void MultiListBox::setColumnWidthAt(size_t _column, int _width)")
300 void setColumnWidth(
size_t _column,
int _width);
302 " is deprecated, use : void MultiListBox::addColumn(const UString& _name, int _width, Any _data)")
303 void addColumn(
int _width, const UString& _name);
304 MYGUI_OBSOLETE(
" is deprecated, use : void MultiListBox::setColumnNameAt(size_t _column, const UString& _name)")
305 void setColumnName(
size_t _column, const UString& _name);
307 " is deprecated, use : void MultiListBox::insertColumnAt(size_t _column, const UString& _name, "
308 "int _width, Any _data)")
309 void insertColumn(
size_t _column,
int _width, const UString& _name);
310 MYGUI_OBSOLETE(
" is deprecated, use : size_t MultiListBox::getIndexSelected()")
311 size_t getItemSelect() const;
312 MYGUI_OBSOLETE(
" is deprecated, use : void MultiListBox::clearIndexSelected()")
313 void resetItemSelect();
314 MYGUI_OBSOLETE(
" is deprecated, use : void MultiListBox::setIndexSelected(size_t _index)")
315 void setItemSelect(
size_t _index);
317 " is deprecated, use : void MultiListBox::insertItemAt(size_t _index, const UString& _name, Any _data)")
318 void insertItem(
size_t _index, const UString& _name);
319 MYGUI_OBSOLETE(
" is deprecated, use : void MultiListBox::setItemNameAt(size_t _index, const UString& _name)")
320 void setItem(
size_t _index, const UString& _name);
321 MYGUI_OBSOLETE(
" is deprecated, use : const UString& MultiListBox::getItemNameAt(size_t _index)")
322 const UString& getItem(
size_t _index) const;
323 MYGUI_OBSOLETE(
" is deprecated, use : void MultiListBox::removeItemAt(size_t _index)")
324 void deleteItem(
size_t _index);
325 MYGUI_OBSOLETE(
" is deprecated, use : void MultiListBox::removeAllItems()")
326 void deleteAllItems();
333 MYGUI_OBSOLETE(
" is deprecated, use : void ProgressBar::setFlowDirection(FlowDirection _value)")
334 void setProgressStartPoint(Align _value);
335 MYGUI_OBSOLETE(
" is deprecated, use : FlowDirection ProgressBar::getFlowDirection()")
336 Align getProgressStartPoint() const;
343 MYGUI_OBSOLETE(
" is deprecated, use : void ScrollView::setVisibleVScroll(bool _visible)")
344 void showVScroll(
bool _visible);
345 MYGUI_OBSOLETE(
" is deprecated, use : bool ScrollView::isVisibleVScroll()")
346 bool isShowVScroll();
347 MYGUI_OBSOLETE(
" is deprecated, use : void ScrollView::setVisibleHScroll(bool _visible)")
348 void showHScroll(
bool _visible);
349 MYGUI_OBSOLETE(
" is deprecated, use : bool ScrollView::isVisibleHScroll()")
350 bool isShowHScroll();
359 MYGUI_OBSOLETE(
" is deprecated, use : int TabControl::getButtonWidthAt(size_t _index)")
360 int getSheetButtonWidthIndex(
size_t _index)
const;
361 MYGUI_OBSOLETE(
" is deprecated, use : int TabControl::getButtonWidth(TabItem* _item)")
362 int getSheetButtonWidth(TabItem* _sheet)
const;
363 MYGUI_OBSOLETE(
" is deprecated, use : void TabControl::setButtonWidthAt(size_t _index, int _width)")
364 void setSheetButtonWidthIndex(
size_t _index,
int _width =
DEFAULT);
365 MYGUI_OBSOLETE(
" is deprecated, use : void TabControl::setButtonWidth(TabItem* _item, int _width)")
366 void setSheetButtonWidth(TabItem* _sheet,
int _width =
DEFAULT);
367 MYGUI_OBSOLETE(
" is deprecated, use : void TabControl::beginToItemAt(size_t _index)")
368 void showBarButton(
size_t _index);
369 MYGUI_OBSOLETE(
" is deprecated, use : void TabControl::beginToItemSelected()")
370 void showBarSelectButton();
371 MYGUI_OBSOLETE(
" is deprecated, use : size_t TabControl::getItemCount()")
372 size_t getSheetCount()
const;
373 MYGUI_OBSOLETE(
" is deprecated, use : const UString& TabControl::getItemName(TabItem* _item)")
374 const UString& getSheetName(TabItem* _sheet)
const;
375 MYGUI_OBSOLETE(
" is deprecated, use : const UString& TabControl::getItemNameAt(size_t _index)")
376 const UString& getSheetNameIndex(
size_t _index)
const;
377 MYGUI_OBSOLETE(
" is deprecated, use : TabItem* TabControl::getItemAt(size_t _index)")
378 TabItem* getSheet(
size_t _index)
const;
379 MYGUI_OBSOLETE(
" is deprecated, use : void TabControl::setItemNameAt(size_t _index, const UString& _name)")
380 void setSheetNameIndex(
size_t _index,
const UString& _name,
int _width =
DEFAULT);
381 MYGUI_OBSOLETE(
" is deprecated, use : void TabControl::setItemName(TabItem* _item, const UString& _name)")
382 void setSheetName(TabItem* _sheet,
const UString& _name,
int _width =
DEFAULT);
383 MYGUI_OBSOLETE(
" is deprecated, use : TabItem* TabControl::addItem(const UString& _name, Any _data)")
384 TabItem* addSheet(
const UString& _name,
int _width =
DEFAULT);
386 " is deprecated, use : TabItem* TabControl::insertItemAt(size_t _index, const UString& _name, Any _data)")
387 TabItem* insertSheet(
size_t _index,
const UString& _name,
int _width =
DEFAULT);
388 MYGUI_OBSOLETE(
" is deprecated, use : void TabControl::removeItemAt(size_t _index)")
389 void removeSheetIndex(
size_t _index);
390 MYGUI_OBSOLETE(
" is deprecated, use : void TabControl::removeItem(TabItem* _item)")
391 void removeSheet(TabItem* _sheet);
392 MYGUI_OBSOLETE(
" is deprecated, use : void TabControl::setIndexSelected(size_t _index)")
393 void selectSheetIndex(
size_t _index,
bool _smooth =
true);
394 MYGUI_OBSOLETE(
" is deprecated, use : void TabControl::setItemSelected(TabItem* _item)")
395 void selectSheet(TabItem* _sheet,
bool _smooth =
true);
396 MYGUI_OBSOLETE(
" is deprecated, use : size_t TabControl::getIndexSelected()")
397 size_t getSelectSheetIndex()
const;
399 MYGUI_OBSOLETE(
" is deprecated, use : size_t Widget::getIndexSelected()")
400 size_t getItemIndexSelected()
const;
401 MYGUI_OBSOLETE(
" is deprecated, use : void Widget::setIndexSelected(size_t _index)")
402 void setItemSelectedAt(
size_t _index);
411 MYGUI_OBSOLETE(
" is deprecated, use : bool Widget::getEnabled() const")
413 MYGUI_OBSOLETE(
" is deprecated, use : bool Widget::getInheritsAlpha() const")
414 bool isInheritsAlpha();
415 MYGUI_OBSOLETE(
" is deprecated, use : bool Widget::getNeedKeyFocus() const")
416 bool isNeedKeyFocus();
417 MYGUI_OBSOLETE(
" is deprecated, use : bool Widget::getNeedMouseFocus() const")
418 bool isNeedMouseFocus();
419 MYGUI_OBSOLETE(
" is deprecated, use : bool Widget::getInheritsPick() const")
420 bool isInheritsPick();
421 MYGUI_OBSOLETE(
" is deprecated, use : bool Widget::getVisible() const")
431 MYGUI_OBSOLETE(
" is deprecated, use : void Widget::setCoord(const IntCoord& _coord)")
432 void setPosition(const IntCoord& _coord);
433 MYGUI_OBSOLETE(
" is deprecated, use : void Widget::setCoord(int _left, int _top, int _width, int _height)")
434 void setPosition(
int _left,
int _top,
int _width,
int _height);
436 MYGUI_OBSOLETE(
" is deprecated, use : void setVisibleSmooth(bool _visible)")
437 void showSmooth(
bool _reset = false);
438 MYGUI_OBSOLETE(
" is deprecated, use : void setVisibleSmooth(bool _visible)")
441 " is deprecated, use : void setMinSize(const IntSize& _min) , void setMaxSize(const IntSize& _min)")
442 void setMinMax(const IntRect& _minmax);
444 " is deprecated, use : void setMinSize(const IntSize& _min) , void setMaxSize(const IntSize& _min)")
445 void setMinMax(
int _min_w,
int _min_h,
int _max_w,
int _max_h);
446 MYGUI_OBSOLETE(
" is deprecated, use : IntSize getMinSize() , IntSize getMaxSize()")
447 IntRect getMinMax() const;
455 MYGUI_OBSOLETE(
" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
456 bool load(const std::
string& _file);
457 void loadOldFontFormat(xml::ElementPtr _node, std::string_view _file, Version _version, std::string_view _tag);
465 " is deprecated, use : void Gui::initialise(const std::string& _core) and set log filename in Platform")
466 void initialise(const std::
string& _core, std::string_view _logFileName);
469 void destroyWidgets(EnumeratorWidgetPtr& _widgets);
472 Widget* findWidgetT(std::string_view _name, std::string_view _prefix,
bool _throw = true) const;
473 Widget* findWidgetHelper(std::string_view _name,
bool _throw) const;
477 T* findWidget(std::string_view _name, std::string_view _prefix,
bool _throw = true)
const
479 std::string name{_prefix};
481 return static_cast<T*
>(findWidgetHelper(name, _throw));
484 MYGUI_OBSOLETE(
" is deprecated, use : void Gui::destroyWidgets(VectorWidgetPtr &_widgets)")
485 void destroyWidgetsVector(VectorWidgetPtr& _widgets);
487 MYGUI_OBSOLETE(
" is deprecated, use : void Gui::setVisiblePointer(bool _value)")
489 MYGUI_OBSOLETE(
" is deprecated, use : void Gui::setVisiblePointer(bool _value)")
491 MYGUI_OBSOLETE(
" is deprecated, use : bool Gui::isVisiblePointer()")
492 bool isShowPointer();
494 void injectFrameEntered(
float )
498 MYGUI_OBSOLETE(
" is deprecated, use : void Gui::getViewSize().width")
499 int getViewWidth() const;
500 MYGUI_OBSOLETE(
" is deprecated, use : void Gui::getViewSize().height")
501 int getViewHeight() const;
503 MYGUI_OBSOLETE(
" is deprecated, use : bool InputManager::injectMouseMove(int _absx, int _absy, int _absz)")
504 bool injectMouseMove(
int _absx,
int _absy,
int _absz);
506 " is deprecated, use : bool InputManager::injectMousePress(int _absx, int _absy, MouseButton _id)")
507 bool injectMousePress(
int _absx,
int _absy, MouseButton _id);
509 " is deprecated, use : bool InputManager::injectMouseRelease(int _absx, int _absy, MouseButton _id)")
510 bool injectMouseRelease(
int _absx,
int _absy, MouseButton _id);
511 MYGUI_OBSOLETE(
" is deprecated, use : bool InputManager::injectKeyPress(KeyCode _key, Char _text = 0)")
512 bool injectKeyPress(KeyCode _key, Char _text = 0);
513 MYGUI_OBSOLETE(
" is deprecated, use : bool InputManager::injectKeyRelease(KeyCode _key)")
514 bool injectKeyRelease(KeyCode _key);
516 MYGUI_OBSOLETE(
" is deprecated, use : void PointerManager::setVisible(_value)")
517 void setVisiblePointer(
bool _value);
518 MYGUI_OBSOLETE(
" is deprecated, use : bool PointerManager::isVisible()")
519 bool isVisiblePointer();
521 MYGUI_OBSOLETE(
" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
522 bool load(const std::
string& _file);
524 MYGUI_OBSOLETE(
" is deprecated, use : const IntSize& RenderManager::getViewSize() const")
525 const IntSize& getViewSize() const;
527 MYGUI_OBSOLETE(
" is deprecated, use : RenderManager::onFrameEvent(float _time)")
528 void _injectFrameEntered(
float _time);
529 MYGUI_OBSOLETE(
" is deprecated, use : RenderManager::onResizeView(const IntSize& _size)")
530 void _resizeWindow(const IntSize& _size);
538 " is deprecated, use : const IntPoint& getLastPressedPosition(MouseButton _id) with _id MouseButton::Left")
539 const IntPoint& getLastLeftPressed() const;
541 " is deprecated, use : const IntPoint& getLastPressedPosition(MouseButton _id) with _id MouseButton::Right")
542 const IntPoint& getLastRightPressed() const;
549 MYGUI_OBSOLETE(
" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
550 bool load(const std::
string& _file);
557 using EnumeratorLayer = Enumerator<std::vector<ILayer*>>;
559 MYGUI_OBSOLETE(
" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
560 bool load(const std::
string& _file);
562 EnumeratorLayer getEnumerator() const;
570 " is deprecated, use : VectorWidgetPtr& LayoutManager::loadLayout(std::string_view _file, "
571 "std::string_view _prefix, Widget* _parent)")
572 VectorWidgetPtr load(std::string_view _file);
579 MYGUI_OBSOLETE(
" is deprecated, use : void PointerManager::setDefaultPointer(std::string_view _value)")
580 void setDeafultPointer(std::string_view _value);
581 MYGUI_OBSOLETE(
" is deprecated, use : void PointerManager::setVisible(bool _visible)")
583 MYGUI_OBSOLETE(
" is deprecated, use : void PointerManager::setVisible(bool _visible)")
585 MYGUI_OBSOLETE(
" is deprecated, use : bool PointerManager::isVisible()")
587 MYGUI_OBSOLETE(
" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
588 bool load(const std::
string& _file);
590 void loadOldPointerFormat(
591 xml::ElementPtr _node,
592 std::string_view _file,
594 std::string_view _tag);
606 EnumeratorPtr getEnumerator()
const;
607 MYGUI_OBSOLETE(
" is deprecated, use : size_t ResourceManager::getCount()")
608 size_t getResourceCount()
const;
610 " is deprecated, use : IResourcePtr ResourceManager::getByName(std::string_view _name, bool _throw)")
611 IResourcePtr getResource(std::string_view _name,
bool _throw =
true)
const;
627 MYGUI_OBSOLETE(
" is deprecated, use : ResourceSkin* SkinManager::getByName(std::string_view _name)")
628 ResourceSkin* getSkin(std::string_view _name) const;
629 MYGUI_OBSOLETE(
" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
630 bool load(const std::
string& _file);
632 void loadOldSkinFormat(xml::ElementPtr _node, std::string_view _file, Version _version, std::string_view _tag);
640 void destroyWidgets(EnumeratorWidgetPtr _widgets);
641 MYGUI_OBSOLETE(
" is deprecated, use : void WidgetManager::destroyWidgets(VectorWidgetPtr &_widgets)")
642 void destroyWidgetsVector(VectorWidgetPtr& _widgets);
644 Widget* findWidgetT(std::string_view _name,
bool _throw = true);
645 MYGUI_OBSOLETE(
" is deprecated, use Gui::findWidgetT(_prefix + _name)")
646 Widget* findWidgetT(std::string_view _name, std::string_view _prefix,
bool _throw = true);
647 MYGUI_OBSOLETE(
" is deprecated, use : void Widget::setProperty(std::string_view_key, std::string_view_value)")
648 void parse(Widget* _widget, std::string_view _key, std::string_view _value);
656 MYGUI_OBSOLETE(
"use : addToRenderItem(ITexture*, bool); the manual-render flag is ignored")
657 RenderItem* addToRenderItem(ITexture* _texture,
bool _firstQueue,
bool _manualRender);
660 EnumeratorILayerNode getEnumerator() const;
687 static VectorStringPairs upgradeProperty(std::string_view _key, std::string_view _value);
688 static bool processDeprecatedProperty(Widget* _owner, std::string& _key, std::string& _value);
689 static void initialise();
690 static void shutdown();
691 static bool isIgnoreProperty(std::string_view _key);
695 static std::string_view getPropertyRename(std::string_view _propertyName,
bool _trimTypePrefix =
true);
696 static std::string_view getFactoryRename(std::string_view _categoryName, std::string_view _factoryName);
697 static std::string_view getSkinRename(std::string_view _skinName);
698 static void registerWidgetTypes();
#define MYGUI_OBSOLETE(text)
Enumerator< std::vector< ILayerNode * > > EnumeratorILayerNode
Enumerator< VectorWidgetPtr > EnumeratorWidgetPtr
Enumerator< VectorGroupImage > EnumeratorGroupImage
std::vector< GroupImage > VectorGroupImage