MyGUI 3.4.3
MyGUI_BackwardCompatibility.h
Go to the documentation of this file.
1/*
2 * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3 * Distributed under the MIT License
4 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5 */
6
7#ifndef MYGUI_BACKWARD_COMPATIBILITY_H_
8#define MYGUI_BACKWARD_COMPATIBILITY_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_Colour.h"
12#include "MyGUI_ResourceSkin.h"
13#include "MyGUI_Any.h"
14#include "MyGUI_MouseButton.h"
15#include "MyGUI_KeyCode.h"
16#include "MyGUI_Macros.h"
17#include "MyGUI_WidgetDefines.h"
18#include "MyGUI_IResource.h"
19#include <map>
20#include <set>
21
22namespace MyGUI
23{
24
25#ifndef MYGUI_DONT_USE_OBSOLETE
26
27 template<>
29 {
30 public:
31 MYGUI_OBSOLETE(" is deprecated, use : void Button::setStateSelected(bool _value)")
32 void setButtonPressed(bool _value);
33 MYGUI_OBSOLETE(" is deprecated, use : bool Button::getStateSelected()")
34 bool getButtonPressed() const;
35 MYGUI_OBSOLETE(" is deprecated, use : void Button::setStateSelected(bool _value)")
36 void setStateCheck(bool _value);
37 MYGUI_OBSOLETE(" is deprecated, use : bool Button::getStateSelected()")
38 bool getStateCheck() const;
39 MYGUI_OBSOLETE(" is deprecated")
40 ImageBox* getStaticImage() const;
41 MYGUI_OBSOLETE(" is deprecated, use : void Button::setImageName(std::string_view _name)")
42 void setImageIndex(size_t _index);
43 MYGUI_OBSOLETE(" is deprecated")
44 size_t getImageIndex() const;
45 };
46
47 template<>
49 {
50 public:
52 " is deprecated, use : void ImageBox::addItemFrameDuplicate(size_t _index, size_t _indexSourceFrame)")
53 void addItemFrameDublicate(size_t _index, size_t _indexSourceFrame);
54 MYGUI_OBSOLETE(" is deprecated, use : void ImageBox::insertItemFrameDuplicate(size_t _index, size_t "
55 "_indexFrame, size_t _indexSourceFrame)")
56 void insertItemFrameDublicate(size_t _index, size_t _indexFrame, size_t _indexSourceFrame);
57 };
58
59 template<>
61 {
62 public:
63 MYGUI_OBSOLETE(" is deprecated, use : size_t ComboBox::getIndexSelected()")
64 size_t getItemIndexSelected() const;
65 MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::setIndexSelected(size_t _index)")
66 void setItemSelectedAt(size_t _index);
67 MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::clearIndexSelected()")
68 void clearItemSelected();
69
70 MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::insertItemAt(size_t _index, const UString& _name)")
71 void insertItem(size_t _index, const UString& _name);
72 MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::setItemNameAt(size_t _index, const UString& _name)")
73 void setItem(size_t _index, const UString& _item);
74 MYGUI_OBSOLETE(" is deprecated, use : const UString& ComboBox::getItemNameAt(size_t _index)")
75 const UString& getItem(size_t _index) const;
76 MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::removeItemAt(size_t _index)")
77 void deleteItem(size_t _index);
78 MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::removeAllItems()")
79 void deleteAllItems();
80 MYGUI_OBSOLETE(" is deprecated, use : size_t ComboBox::getIndexSelected()")
81 size_t getItemSelect() const;
82 MYGUI_OBSOLETE(" is deprecated, use : void void ComboBox::clearIndexSelected()")
83 void resetItemSelect();
84 MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::setIndexSelected(size_t _index)")
85 void setItemSelect(size_t _index);
86
87 MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::setMaxListLength(int _value)")
88 void setMaxListHeight(int _value);
89 MYGUI_OBSOLETE(" is deprecated, use : int ComboBox::getMaxListLength()")
90 int getMaxListHeight() const;
91 };
92
93 template<>
95 {
96 public:
97 MYGUI_OBSOLETE(" is deprecated, use : void EditBox::setVisibleVScroll(bool _visible)")
98 void showVScroll(bool _visible);
99 MYGUI_OBSOLETE(" is deprecated, use : bool EditBox::isVisibleVScroll()")
100 bool isShowVScroll();
101 MYGUI_OBSOLETE(" is deprecated, use : void EditBox::setVisibleHScroll(bool _visible)")
102 void showHScroll(bool _visible);
103 MYGUI_OBSOLETE(" is deprecated, use : bool EditBox::isVisibleHScroll()")
104 bool isShowHScroll();
105
106 MYGUI_OBSOLETE(" is deprecated, use : void EditBox::setTextIntervalColour(size_t _start, size_t _count, const "
107 "Colour& _colour)")
108 void setTextColour(size_t _start, size_t _count, const Colour& _colour);
109 MYGUI_OBSOLETE(" is deprecated, use : size_t EditBox::getTextSelectionStart() , size_t getTextSelectionEnd()")
110 void getTextSelect(size_t& _start, size_t& _end) const;
111 MYGUI_OBSOLETE(" is deprecated, use : UString EditBox::getTextInterval(size_t _start, size_t _count)")
112 UString getText(size_t _start, size_t _count) const;
113 MYGUI_OBSOLETE(" is deprecated, use : void EditBox::setTextSelection(size_t _start, size_t _end)")
114 void setTextSelect(size_t _start, size_t _end);
115 MYGUI_OBSOLETE(" is deprecated, use : void EditBox::deleteTextSelection()")
116 void deleteTextSelect();
117 MYGUI_OBSOLETE(" is deprecated, use : UString EditBox::getTextSelection()")
118 UString getSelectedText() const;
119 MYGUI_OBSOLETE(" is deprecated, use : bool EditBox::isTextSelection()")
120 bool isTextSelect();
121 MYGUI_OBSOLETE(" is deprecated, use : void EditBox::setTextSelectionColour(const Colour& _colour)")
122 void setTextSelectColour(const Colour& _colour);
123 };
124
125 template<>
127 {
128 public:
129 MYGUI_OBSOLETE(" is deprecated, use : size_t ItemBox::getItemIndexSelected()")
130 size_t getItemIndexSelected() const;
131 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::setIndexSelected(size_t _index)")
132 void setItemSelectedAt(size_t _index);
133 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::clearIndexSelected()")
134 void clearItemSelected();
135
136 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::insertItemAt(size_t _index, Any _data)")
137 void insertItem(size_t _index, Any _data = Any::Null);
138 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::setItemDataAt(size_t _index, Any _data)")
139 void setItemData(size_t _index, Any _data);
140 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::removeItemAt(size_t _index)")
141 void deleteItem(size_t _index);
142 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::removeAllItems()")
143 void deleteAllItems();
144 MYGUI_OBSOLETE(" is deprecated, use : size_t ItemBox::getIndexSelected()")
145 size_t getItemSelect() const;
146 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::clearIndexSelected()")
147 void resetItemSelect();
148 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::setIndexSelected(size_t _index)")
149 void setItemSelect(size_t _index);
150
151 MYGUI_OBSOLETE(" is deprecated, use : Widget* ItemBox::getWidgetDrag()")
152 Widget* getWidgetDrop() const;
153 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::resetDrag()")
154 void resetDrop();
155
156 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::setVerticalAlignment(bool _value)")
157 void setItemBoxAlignVert(bool _value);
158 MYGUI_OBSOLETE(" is deprecated, use : bool ItemBox::getVerticalAlignment() const")
159 bool getItemBoxAlignVert() const;
160 };
161
162 template<>
164 {
165 public:
166 MYGUI_OBSOLETE(" is deprecated, use : size_t ListBox::getIndexSelected()")
167 size_t getItemIndexSelected() const;
168 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::setIndexSelected(size_t _index)")
169 void setItemSelectedAt(size_t _index);
170 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::clearIndexSelected()")
171 void clearItemSelected();
172
173 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::insertItemAt(size_t _index, const UString& _name)")
174 void insertItem(size_t _index, const UString& _item);
175 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::setItemNameAt(size_t _index, const UString& _name)")
176 void setItem(size_t _index, const UString& _item);
177 MYGUI_OBSOLETE(" is deprecated, use : const UString& ListBox::getItemNameAt(size_t _index)")
178 const UString& getItem(size_t _index) const;
179 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::removeItemAt(size_t _index)")
180 void deleteItem(size_t _index);
181 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::removeAllItems()")
182 void deleteAllItems();
183 MYGUI_OBSOLETE(" is deprecated, use : size_t ListBox::findItemIndexWith(const UString& _name)")
184 size_t findItem(const UString& _item);
185 MYGUI_OBSOLETE(" is deprecated, use : size_t ListBox::getIndexSelected()")
186 size_t getItemSelect() const;
187 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::clearIndexSelected()")
188 void resetItemSelect();
189 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::setIndexSelected(size_t _index)")
190 void setItemSelect(size_t _index);
191 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::beginToItemAt(size_t _index)")
192 void beginToIndex(size_t _index);
193 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::beginToItemFirst()")
194 void beginToStart();
195 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::beginToItemLast()")
196 void beginToEnd();
197 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::beginToItemSelected()")
198 void beginToSelect();
199 MYGUI_OBSOLETE(" is deprecated, use : bool ListBox::isItemVisibleAt(size_t _index, bool _fill)")
200 bool isItemVisible(size_t _index, bool _fill = true);
201 MYGUI_OBSOLETE(" is deprecated, use : bool ListBox::isItemSelectedVisible(bool _fill)")
202 bool isItemSelectVisible(bool _fill = true);
203 };
204
205 template<>
207 {
208 public:
209 MYGUI_OBSOLETE(" is deprecated, use : void Widget::setVisible(bool _value)")
210 void showMenu();
211 MYGUI_OBSOLETE(" is deprecated, use : void Widget::setVisible(bool _value)")
212 void hideMenu();
213 MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getVisible()")
214 bool isShowMenu();
215
216 MYGUI_OBSOLETE(" is deprecated, use : void setItemChildVisibleAt(size_t _index, bool _visible)")
217 void showItemChildAt(size_t _index);
218 MYGUI_OBSOLETE(" is deprecated, use : void setItemChildVisible(MenuItem* _item, bool _visible)")
219 void showItemChild(MenuItem* _item);
220 MYGUI_OBSOLETE(" is deprecated, use : void setItemChildVisibleAt(size_t _index, bool _visible)")
221 void hideItemChildAt(size_t _index);
222 MYGUI_OBSOLETE(" is deprecated, use : void setItemChildVisible(MenuItem* _item, bool _visible)")
223 void hideItemChild(MenuItem* _item);
224
225 MYGUI_OBSOLETE(" is deprecated, use : void MenuControl::setVerticalAlignment(bool _value)")
226 void setAlignVert(bool _value);
227 MYGUI_OBSOLETE(" is deprecated, use : bool MenuControl::getVerticalAlignment() const")
228 bool getAlignVert() const;
229 };
230
231 template<>
233 {
234 public:
235 MYGUI_OBSOLETE(" is deprecated, use : void setItemChildVisible(bool _visible)")
236 void showItemChild();
237 MYGUI_OBSOLETE(" is deprecated, use : void setItemChildVisible(bool _visible)")
238 void hideItemChild();
239 };
240
241 template<>
243 {
244 public:
245 MYGUI_OBSOLETE(" is deprecated, use : size_t MultiListBox::getIndexSelected()")
246 size_t getItemIndexSelected() const;
247 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::setIndexSelected(size_t _index)")
248 void setItemSelectedAt(size_t _index);
249 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::clearIndexSelected()")
250 void clearItemSelected();
251
253 " is deprecated, use : size_t MultiListBox::findSubItemWith(size_t _column, const UString& _name)")
254 size_t findItem(size_t _column, const UString& _name);
256 " is deprecated, use : const UString& MultiListBox::getSubItemNameAt(size_t _column, size_t _index)")
257 const UString& getSubItem(size_t _column, size_t _index) const;
258 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::setSubItemNameAt(size_t _column, size_t _index, const "
259 "UString& _name)")
260 void setSubItem(size_t _column, size_t _index, const UString& _name);
261 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::removeColumnAt(size_t _column)")
262 void deleteColumn(size_t _column);
263 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::removeAllColumns()")
264 void deleteAllColumns();
265 MYGUI_OBSOLETE(" is deprecated, use : int MultiListBox::getColumnWidthAt(size_t _column)")
266 int getColumnWidth(size_t _column) const;
267 MYGUI_OBSOLETE(" is deprecated, use : const UString& MultiListBox::getColumnNameAt(size_t _column)")
268 const UString& getColumnName(size_t _column) const;
269 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::setColumnWidthAt(size_t _column, int _width)")
270 void setColumnWidth(size_t _column, int _width);
272 " is deprecated, use : void MultiListBox::addColumn(const UString& _name, int _width, Any _data)")
273 void addColumn(int _width, const UString& _name);
274 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::setColumnNameAt(size_t _column, const UString& _name)")
275 void setColumnName(size_t _column, const UString& _name);
276 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::insertColumnAt(size_t _column, const UString& _name, "
277 "int _width, Any _data)")
278 void insertColumn(size_t _column, int _width, const UString& _name);
279 MYGUI_OBSOLETE(" is deprecated, use : size_t MultiListBox::getIndexSelected()")
280 size_t getItemSelect() const;
281 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::clearIndexSelected()")
282 void resetItemSelect();
283 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::setIndexSelected(size_t _index)")
284 void setItemSelect(size_t _index);
286 " is deprecated, use : void MultiListBox::insertItemAt(size_t _index, const UString& _name, Any _data)")
287 void insertItem(size_t _index, const UString& _name);
288 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::setItemNameAt(size_t _index, const UString& _name)")
289 void setItem(size_t _index, const UString& _name);
290 MYGUI_OBSOLETE(" is deprecated, use : const UString& MultiListBox::getItemNameAt(size_t _index)")
291 const UString& getItem(size_t _index) const;
292 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::removeItemAt(size_t _index)")
293 void deleteItem(size_t _index);
294 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::removeAllItems()")
295 void deleteAllItems();
296 };
297
298 template<>
300 {
301 public:
302 MYGUI_OBSOLETE(" is deprecated, use : void ProgressBar::setFlowDirection(FlowDirection _value)")
303 void setProgressStartPoint(Align _value);
304 MYGUI_OBSOLETE(" is deprecated, use : FlowDirection ProgressBar::getFlowDirection()")
306 };
307
308 template<>
310 {
311 public:
312 MYGUI_OBSOLETE(" is deprecated, use : void ScrollView::setVisibleVScroll(bool _visible)")
313 void showVScroll(bool _visible);
314 MYGUI_OBSOLETE(" is deprecated, use : bool ScrollView::isVisibleVScroll()")
315 bool isShowVScroll();
316 MYGUI_OBSOLETE(" is deprecated, use : void ScrollView::setVisibleHScroll(bool _visible)")
317 void showHScroll(bool _visible);
318 MYGUI_OBSOLETE(" is deprecated, use : bool ScrollView::isVisibleHScroll()")
319 bool isShowHScroll();
320 };
321
322 // MYGUI_OBSOLETE(" is deprecated, use : TabControl::DEFAULT_WIDTH")
323 constexpr int DEFAULT = -1; // actually TabControl::DEFAULT_WIDTH
324 template<>
326 {
327 public:
328 MYGUI_OBSOLETE(" is deprecated, use : int TabControl::getButtonWidthAt(size_t _index)")
329 int getSheetButtonWidthIndex(size_t _index) const;
330 MYGUI_OBSOLETE(" is deprecated, use : int TabControl::getButtonWidth(TabItem* _item)")
331 int getSheetButtonWidth(TabItem* _sheet) const;
332 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::setButtonWidthAt(size_t _index, int _width)")
333 void setSheetButtonWidthIndex(size_t _index, int _width = DEFAULT);
334 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::setButtonWidth(TabItem* _item, int _width)")
335 void setSheetButtonWidth(TabItem* _sheet, int _width = DEFAULT);
336 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::beginToItemAt(size_t _index)")
337 void showBarButton(size_t _index);
338 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::beginToItemSelected()")
339 void showBarSelectButton();
340 MYGUI_OBSOLETE(" is deprecated, use : size_t TabControl::getItemCount()")
341 size_t getSheetCount() const;
342 MYGUI_OBSOLETE(" is deprecated, use : const UString& TabControl::getItemName(TabItem* _item)")
343 const UString& getSheetName(TabItem* _sheet) const;
344 MYGUI_OBSOLETE(" is deprecated, use : const UString& TabControl::getItemNameAt(size_t _index)")
345 const UString& getSheetNameIndex(size_t _index) const;
346 MYGUI_OBSOLETE(" is deprecated, use : TabItem* TabControl::getItemAt(size_t _index)")
347 TabItem* getSheet(size_t _index) const;
348 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::setItemNameAt(size_t _index, const UString& _name)")
349 void setSheetNameIndex(size_t _index, const UString& _name, int _width = DEFAULT);
350 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::setItemName(TabItem* _item, const UString& _name)")
351 void setSheetName(TabItem* _sheet, const UString& _name, int _width = DEFAULT);
352 MYGUI_OBSOLETE(" is deprecated, use : TabItem* TabControl::addItem(const UString& _name, Any _data)")
353 TabItem* addSheet(const UString& _name, int _width = DEFAULT);
355 " is deprecated, use : TabItem* TabControl::insertItemAt(size_t _index, const UString& _name, Any _data)")
356 TabItem* insertSheet(size_t _index, const UString& _name, int _width = DEFAULT);
357 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::removeItemAt(size_t _index)")
358 void removeSheetIndex(size_t _index);
359 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::removeItem(TabItem* _item)")
360 void removeSheet(TabItem* _sheet);
361 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::setIndexSelected(size_t _index)")
362 void selectSheetIndex(size_t _index, bool _smooth = true);
363 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::setItemSelected(TabItem* _item)")
364 void selectSheet(TabItem* _sheet, bool _smooth = true);
365 MYGUI_OBSOLETE(" is deprecated, use : size_t TabControl::getIndexSelected()")
366 size_t getSelectSheetIndex() const;
367
368 MYGUI_OBSOLETE(" is deprecated, use : size_t Widget::getIndexSelected()")
369 size_t getItemIndexSelected() const;
370 MYGUI_OBSOLETE(" is deprecated, use : void Widget::setIndexSelected(size_t _index)")
371 void setItemSelectedAt(size_t _index);
372 };
373
374 template<>
376 {
377 public:
378 MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getEnabled() const")
379 bool isEnabled();
380 MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getInheritsAlpha() const")
381 bool isInheritsAlpha();
382 MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getNeedKeyFocus() const")
383 bool isNeedKeyFocus();
384 MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getNeedMouseFocus() const")
385 bool isNeedMouseFocus();
386 MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getInheritsPick() const")
387 bool isInheritsPick();
388 MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getVisible() const")
389 bool isVisible();
390 };
391
392 template<>
394 {
395 public:
396 MYGUI_OBSOLETE(" is deprecated, use : void Widget::setCoord(const IntCoord& _coord)")
397 void setPosition(const IntCoord& _coord);
398 MYGUI_OBSOLETE(" is deprecated, use : void Widget::setCoord(int _left, int _top, int _width, int _height)")
399 void setPosition(int _left, int _top, int _width, int _height);
400
401 MYGUI_OBSOLETE(" is deprecated, use : void setVisibleSmooth(bool _visible)")
402 void showSmooth(bool _reset = false);
403 MYGUI_OBSOLETE(" is deprecated, use : void setVisibleSmooth(bool _visible)")
404 void hideSmooth();
406 " is deprecated, use : void setMinSize(const IntSize& _min) , void setMaxSize(const IntSize& _min)")
407 void setMinMax(const IntRect& _minmax);
409 " is deprecated, use : void setMinSize(const IntSize& _min) , void setMaxSize(const IntSize& _min)")
410 void setMinMax(int _min_w, int _min_h, int _max_w, int _max_h);
411 MYGUI_OBSOLETE(" is deprecated, use : IntSize getMinSize() , IntSize getMaxSize()")
412 IntRect getMinMax() const;
413 };
414
415 template<>
417 {
418 public:
419 MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
420 bool load(const std::string& _file);
421 void loadOldFontFormat(xml::ElementPtr _node, std::string_view _file, Version _version, std::string_view _tag);
422 };
423
424 template<>
426 {
427 public:
428 MYGUI_OBSOLETE(" is deprecated, use : void Gui::destroyWidgets(VectorWidgetPtr &_widgets)")
430
431 MYGUI_OBSOLETE(" is deprecated, use : void Gui::setVisiblePointer(bool _value)")
432 void hidePointer();
433 MYGUI_OBSOLETE(" is deprecated, use : void Gui::setVisiblePointer(bool _value)")
434 void showPointer();
435 MYGUI_OBSOLETE(" is deprecated, use : bool Gui::isVisiblePointer()")
436 bool isShowPointer();
437 MYGUI_OBSOLETE("called be renderer, do not call it manually")
438 void injectFrameEntered(float /*_time*/)
439 {
440 }
441
442 MYGUI_OBSOLETE(" is deprecated, use : void Gui::getViewSize().width")
443 int getViewWidth() const;
444 MYGUI_OBSOLETE(" is deprecated, use : void Gui::getViewSize().height")
445 int getViewHeight() const;
446
447 MYGUI_OBSOLETE(" is deprecated, use : bool InputManager::injectMouseMove(int _absx, int _absy, int _absz)")
448 bool injectMouseMove(int _absx, int _absy, int _absz);
450 " is deprecated, use : bool InputManager::injectMousePress(int _absx, int _absy, MouseButton _id)")
451 bool injectMousePress(int _absx, int _absy, MouseButton _id);
453 " is deprecated, use : bool InputManager::injectMouseRelease(int _absx, int _absy, MouseButton _id)")
454 bool injectMouseRelease(int _absx, int _absy, MouseButton _id);
455 MYGUI_OBSOLETE(" is deprecated, use : bool InputManager::injectKeyPress(KeyCode _key, Char _text = 0)")
456 bool injectKeyPress(KeyCode _key, Char _text = 0);
457 MYGUI_OBSOLETE(" is deprecated, use : bool InputManager::injectKeyRelease(KeyCode _key)")
458 bool injectKeyRelease(KeyCode _key);
459
460 MYGUI_OBSOLETE(" is deprecated, use : void PointerManager::setVisible(_value)")
461 void setVisiblePointer(bool _value);
462 MYGUI_OBSOLETE(" is deprecated, use : bool PointerManager::isVisible()")
463 bool isVisiblePointer();
464
465 MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
466 bool load(const std::string& _file);
467
468 MYGUI_OBSOLETE(" is deprecated, use : const IntSize& RenderManager::getViewSize() const")
469 const IntSize& getViewSize() const;
470
471 MYGUI_OBSOLETE(" is deprecated, use : RenderManager::onFrameEvent(float _time)")
472 void _injectFrameEntered(float _time);
473 MYGUI_OBSOLETE(" is deprecated, use : RenderManager::onResizeView(const IntSize& _size)")
474 void _resizeWindow(const IntSize& _size);
475 };
476
477 template<>
479 {
480 public:
482 " is deprecated, use : const IntPoint& getLastPressedPosition(MouseButton _id) with _id MouseButton::Left")
483 const IntPoint& getLastLeftPressed() const;
485 " is deprecated, use : const IntPoint& getLastPressedPosition(MouseButton _id) with _id MouseButton::Right")
486 const IntPoint& getLastRightPressed() const;
487 };
488
489 template<>
491 {
492 public:
493 MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
494 bool load(const std::string& _file);
495 };
496
497 template<>
499 {
500 public:
501 MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
502 bool load(const std::string& _file);
503 };
504
505 template<>
507 {
508 public:
509 MYGUI_OBSOLETE(" is deprecated, use : VectorWidgetPtr& LayoutManager::loadLayout(std::string_view _file, "
510 "std::string_view _prefix, Widget* _parent)")
511 VectorWidgetPtr load(std::string_view _file);
512 };
513
514 template<>
516 {
517 public:
518 MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
519 bool load(const std::string& _file);
520 };
521
522 template<>
524 {
525 public:
526 MYGUI_OBSOLETE(" is deprecated, use : void PointerManager::setDefaultPointer(std::string_view _value)")
527 void setDeafultPointer(std::string_view _value);
528 MYGUI_OBSOLETE(" is deprecated, use : void PointerManager::setVisible(bool _visible)")
529 void show();
530 MYGUI_OBSOLETE(" is deprecated, use : void PointerManager::setVisible(bool _visible)")
531 void hide();
532 MYGUI_OBSOLETE(" is deprecated, use : bool PointerManager::isVisible()")
533 bool isShow();
534 MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
535 bool load(const std::string& _file);
536
538 xml::ElementPtr _node,
539 std::string_view _file,
540 Version _version,
541 std::string_view _tag);
542 };
543
544 template<>
546 {
547 public:
548 MYGUI_OBSOLETE(" is deprecated, use : size_t ResourceManager::getCount()")
549 size_t getResourceCount() const;
551 " is deprecated, use : IResourcePtr ResourceManager::getByName(std::string_view _name, bool _throw)")
552 IResourcePtr getResource(std::string_view _name, bool _throw = true) const;
553 };
554
555 template<>
557 {
558 public:
559 MYGUI_OBSOLETE(" is deprecated, use : ResourceSkin* SkinManager::getByName(std::string_view _name)")
560 ResourceSkin* getSkin(std::string_view _name) const;
561 MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
562 bool load(const std::string& _file);
563
564 void loadOldSkinFormat(xml::ElementPtr _node, std::string_view _file, Version _version, std::string_view _tag);
565 };
566
567 template<>
569 {
570 public:
571 MYGUI_OBSOLETE(" is deprecated, use : void WidgetManager::destroyWidgets(VectorWidgetPtr &_widgets)")
573 MYGUI_OBSOLETE(" is deprecated")
574 Widget* findWidgetT(std::string_view _name, bool _throw = true);
575 MYGUI_OBSOLETE(" is deprecated")
576 Widget* findWidgetT(std::string_view _name, std::string_view _prefix, bool _throw = true);
577 MYGUI_OBSOLETE(" is deprecated, use : void Widget::setProperty(std::string_view_key, std::string_view_value)")
578 void parse(Widget* _widget, std::string_view _key, std::string_view _value);
579 };
580
581#endif // MYGUI_DONT_USE_OBSOLETE
582
584 {
585 public:
586 static bool checkProperty(Widget* _owner, std::string& _key, std::string& _value);
587 static void initialise();
588 static void shutdown();
589 static bool isIgnoreProperty(std::string_view _key);
590 static std::string_view getPropertyRename(std::string_view _propertyName);
591 static std::string_view getFactoryRename(std::string_view _categoryName, std::string_view _factoryName);
592 static std::string_view getSkinRename(std::string_view _skinName);
593 static void registerWidgetTypes();
594 };
595
596} // namespace MyGUI
597
598#endif // MYGUI_BACKWARD_COMPATIBILITY_H_
#define MYGUI_OBSOLETE(text)
#define MYGUI_EXPORT
static const Any Null
Definition MyGUI_Any.h:58
static std::string_view getSkinRename(std::string_view _skinName)
static bool isIgnoreProperty(std::string_view _key)
static std::string_view getPropertyRename(std::string_view _propertyName)
static bool checkProperty(Widget *_owner, std::string &_key, std::string &_value)
static std::string_view getFactoryRename(std::string_view _categoryName, std::string_view _factoryName)
widget description should be here.
widget description should be here.
widget description should be here.
widget description should be here.
widget description should be here.
widget description should be here.
void insertItem(size_t _index, const UString &_name)
void setItem(size_t _index, const UString &_item)
const UString & getItem(size_t _index) const
void setTextColour(size_t _start, size_t _count, const Colour &_colour)
UString getText(size_t _start, size_t _count) const
void setTextSelect(size_t _start, size_t _end)
void getTextSelect(size_t &_start, size_t &_end) const
void loadOldFontFormat(xml::ElementPtr _node, std::string_view _file, Version _version, std::string_view _tag)
void destroyWidgetsVector(VectorWidgetPtr &_widgets)
void addItemFrameDublicate(size_t _index, size_t _indexSourceFrame)
void insertItemFrameDublicate(size_t _index, size_t _indexFrame, size_t _indexSourceFrame)
void insertItem(size_t _index, Any _data=Any::Null)
VectorWidgetPtr load(std::string_view _file)
void setItem(size_t _index, const UString &_item)
void insertItem(size_t _index, const UString &_item)
const UString & getItem(size_t _index) const
bool isItemVisible(size_t _index, bool _fill=true)
const UString & getColumnName(size_t _column) const
const UString & getSubItem(size_t _column, size_t _index) const
void insertItem(size_t _index, const UString &_name)
void insertColumn(size_t _column, int _width, const UString &_name)
void setColumnName(size_t _column, const UString &_name)
void setSubItem(size_t _column, size_t _index, const UString &_name)
void setItem(size_t _index, const UString &_name)
size_t findItem(size_t _column, const UString &_name)
const UString & getItem(size_t _index) const
void addColumn(int _width, const UString &_name)
void loadOldPointerFormat(xml::ElementPtr _node, std::string_view _file, Version _version, std::string_view _tag)
IResourcePtr getResource(std::string_view _name, bool _throw=true) const
ResourceSkin * getSkin(std::string_view _name) const
void loadOldSkinFormat(xml::ElementPtr _node, std::string_view _file, Version _version, std::string_view _tag)
void setSheetName(TabItem *_sheet, const UString &_name, int _width=DEFAULT)
TabItem * insertSheet(size_t _index, const UString &_name, int _width=DEFAULT)
void setSheetButtonWidthIndex(size_t _index, int _width=DEFAULT)
const UString & getSheetNameIndex(size_t _index) const
void setSheetNameIndex(size_t _index, const UString &_name, int _width=DEFAULT)
void selectSheet(TabItem *_sheet, bool _smooth=true)
const UString & getSheetName(TabItem *_sheet) const
void selectSheetIndex(size_t _index, bool _smooth=true)
TabItem * addSheet(const UString &_name, int _width=DEFAULT)
void setSheetButtonWidth(TabItem *_sheet, int _width=DEFAULT)
void parse(Widget *_widget, std::string_view _key, std::string_view _value)
Widget * findWidgetT(std::string_view _name, bool _throw=true)
void setPosition(const IntCoord &_coord)
widget description should be here.
widget description should be here.
widget description should be here.
Plugin manager. Load/unload and register plugins.
widget description should be here.
widget description should be here.
widget description should be here.
widget description should be here.
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
widget description should be here.
widget description should be here.
Element * ElementPtr
types::TRect< int > IntRect
Definition MyGUI_Types.h:33
types::TPoint< int > IntPoint
Definition MyGUI_Types.h:27
IResource * IResourcePtr
unsigned int Char
Definition MyGUI_Types.h:50
types::TCoord< int > IntCoord
Definition MyGUI_Types.h:36
types::TSize< int > IntSize
Definition MyGUI_Types.h:30
std::vector< Widget * > VectorWidgetPtr
constexpr int DEFAULT