MyGUI: MyGUI_BackwardCompatibility.cpp Source File

MyGUI 3.4.3

MyGUI_BackwardCompatibility.cpp
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#include "MyGUI_Precompiled.h"
8#include "MyGUI_BackwardCompatibility.h"
9#include "MyGUI_Button.h"
10#include "MyGUI_ComboBox.h"
11#include "MyGUI_EditBox.h"
12#include "MyGUI_ItemBox.h"
13#include "MyGUI_ListBox.h"
14#include "MyGUI_MenuControl.h"
15#include "MyGUI_MenuItem.h"
16#include "MyGUI_MultiListBox.h"
17#include "MyGUI_ProgressBar.h"
18#include "MyGUI_ScrollView.h"
19#include "MyGUI_TabControl.h"
20#include "MyGUI_Widget.h"
21#include "MyGUI_Window.h"
22#include "MyGUI_TabItem.h"
23#include "MyGUI_Canvas.h"
24#include "MyGUI_LayoutManager.h"
25#include "MyGUI_FontManager.h"
26#include "MyGUI_ResourceManager.h"
27#include "MyGUI_Gui.h"
28#include "MyGUI_PointerManager.h"
29#include "MyGUI_InputManager.h"
30#include "MyGUI_RenderManager.h"
31#include "MyGUI_LanguageManager.h"
32#include "MyGUI_PluginManager.h"
33#include "MyGUI_SkinManager.h"
34#include "MyGUI_WidgetManager.h"
35#include "MyGUI_FactoryManager.h"
36#include "MyGUI_DeprecatedWidgets.h"
37
38namespace MyGUI
39{
40
41#ifndef MYGUI_DONT_USE_OBSOLETE
42
43 void MemberObsolete<Button>::setButtonPressed(bool _value)
44 {
45 static_cast<Button*>(this)->setStateSelected(_value);
46 }
47 bool MemberObsolete<Button>::getButtonPressed() const
48 {
49 return static_cast<const Button*>(this)->getStateSelected();
50 }
51 void MemberObsolete<Button>::setStateCheck(bool _value)
52 {
53 static_cast<Button*>(this)->setStateSelected(_value);
54 }
55 bool MemberObsolete<Button>::getStateCheck() const
56 {
57 return static_cast<const Button*>(this)->getStateSelected();
58 }
59 ImageBox* MemberObsolete<Button>::getStaticImage() const
60 {
61 return static_cast<const Button*>(this)->_getImageBox();
62 }
63 void MemberObsolete<Button>::setImageIndex(size_t _index)
64 {
65 if (static_cast<Button*>(this)->_getImageBox())
66 static_cast<Button*>(this)->_getImageBox()->setImageIndex(_index);
67 }
68 size_t MemberObsolete<Button>::getImageIndex() const
69 {
70 if (static_cast<const Button*>(this)->_getImageBox())
71 return static_cast<const Button*>(this)->_getImageBox()->getImageIndex();
72 return ITEM_NONE;
73 }
74
75 void MemberObsolete<ImageBox>::addItemFrameDublicate(size_t _index, size_t _indexSourceFrame)
76 {
77 static_cast<ImageBox*>(this)->addItemFrameDuplicate(_index, _indexSourceFrame);
78 }
79 void MemberObsolete<ImageBox>::insertItemFrameDublicate(size_t _index, size_t _indexFrame, size_t _indexSourceFrame)
80 {
81 static_cast<ImageBox*>(this)->insertItemFrameDuplicate(_index, _indexFrame, _indexSourceFrame);
82 }
83
84
85 size_t MemberObsolete<ComboBox>::getItemIndexSelected() const
86 {
87 return static_cast<const ComboBox*>(this)->getIndexSelected();
88 }
89 void MemberObsolete<ComboBox>::setItemSelectedAt(size_t _index)
90 {
91 static_cast<ComboBox*>(this)->setIndexSelected(_index);
92 }
93 void MemberObsolete<ComboBox>::clearItemSelected()
94 {
95 static_cast<ComboBox*>(this)->clearIndexSelected();
96 }
97
98 void MemberObsolete<ComboBox>::insertItem(size_t _index, const UString& _name)
99 {
100 static_cast<ComboBox*>(this)->insertItemAt(_index, _name);
101 }
102 void MemberObsolete<ComboBox>::setItem(size_t _index, const UString& _item)
103 {
104 static_cast<ComboBox*>(this)->setItemNameAt(_index, _item);
105 }
106 const UString& MemberObsolete<ComboBox>::getItem(size_t _index) const
107 {
108 return static_cast<const ComboBox*>(this)->getItemNameAt(_index);
109 }
110 void MemberObsolete<ComboBox>::deleteItem(size_t _index)
111 {
112 static_cast<ComboBox*>(this)->removeItemAt(_index);
113 }
114 void MemberObsolete<ComboBox>::deleteAllItems()
115 {
116 static_cast<ComboBox*>(this)->removeAllItems();
117 }
118 size_t MemberObsolete<ComboBox>::getItemSelect() const
119 {
120 return static_cast<const ComboBox*>(this)->getIndexSelected();
121 }
122 void MemberObsolete<ComboBox>::resetItemSelect()
123 {
124 static_cast<ComboBox*>(this)->clearIndexSelected();
125 }
126 void MemberObsolete<ComboBox>::setItemSelect(size_t _index)
127 {
128 static_cast<ComboBox*>(this)->setIndexSelected(_index);
129 }
130
131 void MemberObsolete<ComboBox>::setMaxListHeight(int _value)
132 {
133 static_cast<ComboBox*>(this)->setMaxListLength(_value);
134 }
135 int MemberObsolete<ComboBox>::getMaxListHeight() const
136 {
137 return static_cast<const ComboBox*>(this)->getMaxListLength();
138 }
139
140
141 void MemberObsolete<EditBox>::showVScroll(bool _visible)
142 {
143 static_cast<EditBox*>(this)->setVisibleVScroll(_visible);
144 }
145 bool MemberObsolete<EditBox>::isShowVScroll()
146 {
147 return static_cast<EditBox*>(this)->isVisibleVScroll();
148 }
149 void MemberObsolete<EditBox>::showHScroll(bool _visible)
150 {
151 static_cast<EditBox*>(this)->setVisibleHScroll(_visible);
152 }
153 bool MemberObsolete<EditBox>::isShowHScroll()
154 {
155 return static_cast<EditBox*>(this)->isVisibleHScroll();
156 }
157
158 void MemberObsolete<EditBox>::setTextColour(size_t _start, size_t _count, const Colour& _colour)
159 {
160 static_cast<EditBox*>(this)->setTextIntervalColour(_start, _count, _colour);
161 }
162 void MemberObsolete<EditBox>::getTextSelect(size_t& _start, size_t& _end) const
163 {
164 _start = static_cast<const EditBox*>(this)->getTextSelectionStart();
165 _end = static_cast<const EditBox*>(this)->getTextSelectionEnd();
166 }
167 UString MemberObsolete<EditBox>::getText(size_t _start, size_t _count) const
168 {
169 return static_cast<const EditBox*>(this)->getTextInterval(_start, _count);
170 }
171 void MemberObsolete<EditBox>::setTextSelect(size_t _start, size_t _end)
172 {
173 static_cast<EditBox*>(this)->setTextSelection(_start, _end);
174 }
175 void MemberObsolete<EditBox>::deleteTextSelect()
176 {
177 static_cast<EditBox*>(this)->deleteTextSelection();
178 }
179 UString MemberObsolete<EditBox>::getSelectedText() const
180 {
181 return static_cast<const EditBox*>(this)->getTextSelection();
182 }
183 bool MemberObsolete<EditBox>::isTextSelect()
184 {
185 return static_cast<EditBox*>(this)->isTextSelection();
186 }
187 void MemberObsolete<EditBox>::setTextSelectColour(const Colour& _colour)
188 {
189 static_cast<EditBox*>(this)->setTextSelectionColour(_colour);
190 }
191
192
193 size_t MemberObsolete<ItemBox>::getItemIndexSelected() const
194 {
195 return static_cast<const ItemBox*>(this)->getIndexSelected();
196 }
197 void MemberObsolete<ItemBox>::setItemSelectedAt(size_t _index)
198 {
199 static_cast<ItemBox*>(this)->setIndexSelected(_index);
200 }
201 void MemberObsolete<ItemBox>::clearItemSelected()
202 {
203 static_cast<ItemBox*>(this)->clearIndexSelected();
204 }
205
206 void MemberObsolete<ItemBox>::insertItem(size_t _index, Any _data)
207 {
208 static_cast<ItemBox*>(this)->insertItemAt(_index, _data);
209 }
210 void MemberObsolete<ItemBox>::setItemData(size_t _index, Any _data)
211 {
212 static_cast<ItemBox*>(this)->setItemDataAt(_index, _data);
213 }
214 void MemberObsolete<ItemBox>::deleteItem(size_t _index)
215 {
216 static_cast<ItemBox*>(this)->removeItemAt(_index);
217 }
218 void MemberObsolete<ItemBox>::deleteAllItems()
219 {
220 static_cast<ItemBox*>(this)->removeAllItems();
221 }
222 size_t MemberObsolete<ItemBox>::getItemSelect() const
223 {
224 return static_cast<const ItemBox*>(this)->getIndexSelected();
225 }
226 void MemberObsolete<ItemBox>::resetItemSelect()
227 {
228 static_cast<ItemBox*>(this)->clearIndexSelected();
229 }
230 void MemberObsolete<ItemBox>::setItemSelect(size_t _index)
231 {
232 static_cast<ItemBox*>(this)->setIndexSelected(_index);
233 }
234
235 Widget* MemberObsolete<ItemBox>::getWidgetDrop() const
236 {
237 return static_cast<const ItemBox*>(this)->getWidgetDrag();
238 }
239 void MemberObsolete<ItemBox>::resetDrop()
240 {
241 static_cast<ItemBox*>(this)->resetDrag();
242 }
243
244 void MemberObsolete<ItemBox>::setItemBoxAlignVert(bool _value)
245 {
246 static_cast<ItemBox*>(this)->setVerticalAlignment(_value);
247 }
248 bool MemberObsolete<ItemBox>::getItemBoxAlignVert() const
249 {
250 return static_cast<const ItemBox*>(this)->getVerticalAlignment();
251 }
252
253
254 size_t MemberObsolete<ListBox>::getItemIndexSelected() const
255 {
256 return static_cast<const ListBox*>(this)->getIndexSelected();
257 }
258 void MemberObsolete<ListBox>::setItemSelectedAt(size_t _index)
259 {
260 static_cast<ListBox*>(this)->setIndexSelected(_index);
261 }
262 void MemberObsolete<ListBox>::clearItemSelected()
263 {
264 static_cast<ListBox*>(this)->clearIndexSelected();
265 }
266
267 void MemberObsolete<ListBox>::insertItem(size_t _index, const UString& _item)
268 {
269 static_cast<ListBox*>(this)->insertItemAt(_index, _item);
270 }
271 void MemberObsolete<ListBox>::setItem(size_t _index, const UString& _item)
272 {
273 static_cast<ListBox*>(this)->setItemNameAt(_index, _item);
274 }
275 const UString& MemberObsolete<ListBox>::getItem(size_t _index) const
276 {
277 return static_cast<const ListBox*>(this)->getItemNameAt(_index);
278 }
279 void MemberObsolete<ListBox>::deleteItem(size_t _index)
280 {
281 static_cast<ListBox*>(this)->removeItemAt(_index);
282 }
283 void MemberObsolete<ListBox>::deleteAllItems()
284 {
285 static_cast<ListBox*>(this)->removeAllItems();
286 }
287 size_t MemberObsolete<ListBox>::findItem(const UString& _item)
288 {
289 return static_cast<ListBox*>(this)->findItemIndexWith(_item);
290 }
291 size_t MemberObsolete<ListBox>::getItemSelect() const
292 {
293 return static_cast<const ListBox*>(this)->getIndexSelected();
294 }
295 void MemberObsolete<ListBox>::resetItemSelect()
296 {
297 static_cast<ListBox*>(this)->clearIndexSelected();
298 }
299 void MemberObsolete<ListBox>::setItemSelect(size_t _index)
300 {
301 static_cast<ListBox*>(this)->setIndexSelected(_index);
302 }
303 void MemberObsolete<ListBox>::beginToIndex(size_t _index)
304 {
305 static_cast<ListBox*>(this)->beginToItemAt(_index);
306 }
307 void MemberObsolete<ListBox>::beginToStart()
308 {
309 static_cast<ListBox*>(this)->beginToItemFirst();
310 }
311 void MemberObsolete<ListBox>::beginToEnd()
312 {
313 static_cast<ListBox*>(this)->beginToItemLast();
314 }
315 void MemberObsolete<ListBox>::beginToSelect()
316 {
317 static_cast<ListBox*>(this)->beginToItemSelected();
318 }
319 bool MemberObsolete<ListBox>::isItemVisible(size_t _index, bool _fill)
320 {
321 return static_cast<ListBox*>(this)->isItemVisibleAt(_index, _fill);
322 }
323 bool MemberObsolete<ListBox>::isItemSelectVisible(bool _fill)
324 {
325 return static_cast<ListBox*>(this)->isItemSelectedVisible(_fill);
326 }
327
328
329 void MemberObsolete<MenuControl>::showMenu()
330 {
331 static_cast<MenuControl*>(this)->setVisible(true);
332 }
333 void MemberObsolete<MenuControl>::hideMenu()
334 {
335 static_cast<MenuControl*>(this)->setVisible(false);
336 }
337 bool MemberObsolete<MenuControl>::isShowMenu()
338 {
339 return static_cast<MenuControl*>(this)->getVisible();
340 }
341
342 void MemberObsolete<MenuControl>::showItemChildAt(size_t _index)
343 {
344 static_cast<MenuControl*>(this)->setItemChildVisibleAt(_index, true);
345 }
346 void MemberObsolete<MenuControl>::showItemChild(MenuItem* _item)
347 {
348 static_cast<MenuControl*>(this)->setItemChildVisible(_item, true);
349 }
350 void MemberObsolete<MenuControl>::hideItemChildAt(size_t _index)
351 {
352 static_cast<MenuControl*>(this)->setItemChildVisibleAt(_index, false);
353 }
354 void MemberObsolete<MenuControl>::hideItemChild(MenuItem* _item)
355 {
356 static_cast<MenuControl*>(this)->setItemChildVisible(_item, false);
357 }
358
359 void MemberObsolete<MenuControl>::setAlignVert(bool _value)
360 {
361 static_cast<MenuControl*>(this)->setVerticalAlignment(_value);
362 }
363 bool MemberObsolete<MenuControl>::getAlignVert() const
364 {
365 return static_cast<const MenuControl*>(this)->getVerticalAlignment();
366 }
367
368 void MemberObsolete<MenuItem>::showItemChild()
369 {
370 static_cast<MenuItem*>(this)->setItemChildVisible(true);
371 }
372 void MemberObsolete<MenuItem>::hideItemChild()
373 {
374 static_cast<MenuItem*>(this)->setItemChildVisible(false);
375 }
376
377
378 size_t MemberObsolete<MultiListBox>::getItemIndexSelected() const
379 {
380 return static_cast<const MultiListBox*>(this)->getIndexSelected();
381 }
382 void MemberObsolete<MultiListBox>::setItemSelectedAt(size_t _index)
383 {
384 static_cast<MultiListBox*>(this)->setIndexSelected(_index);
385 }
386 void MemberObsolete<MultiListBox>::clearItemSelected()
387 {
388 static_cast<MultiListBox*>(this)->clearIndexSelected();
389 }
390
391 size_t MemberObsolete<MultiListBox>::findItem(size_t _column, const UString& _name)
392 {
393 return static_cast<MultiListBox*>(this)->findSubItemWith(_column, _name);
394 }
395 const UString& MemberObsolete<MultiListBox>::getSubItem(size_t _column, size_t _index) const
396 {
397 return static_cast<const MultiListBox*>(this)->getSubItemNameAt(_column, _index);
398 }
399 void MemberObsolete<MultiListBox>::setSubItem(size_t _column, size_t _index, const UString& _name)
400 {
401 static_cast<MultiListBox*>(this)->setSubItemNameAt(_column, _index, _name);
402 }
403 void MemberObsolete<MultiListBox>::deleteColumn(size_t _column)
404 {
405 static_cast<MultiListBox*>(this)->removeColumnAt(_column);
406 }
407 void MemberObsolete<MultiListBox>::deleteAllColumns()
408 {
409 static_cast<MultiListBox*>(this)->removeAllColumns();
410 }
411 int MemberObsolete<MultiListBox>::getColumnWidth(size_t _column) const
412 {
413 return static_cast<const MultiListBox*>(this)->getColumnWidthAt(_column);
414 }
415 const UString& MemberObsolete<MultiListBox>::getColumnName(size_t _column) const
416 {
417 return static_cast<const MultiListBox*>(this)->getColumnNameAt(_column);
418 }
419 void MemberObsolete<MultiListBox>::setColumnWidth(size_t _column, int _width)
420 {
421 static_cast<MultiListBox*>(this)->setColumnWidthAt(_column, _width);
422 }
423 void MemberObsolete<MultiListBox>::addColumn(int _width, const UString& _name)
424 {
425 static_cast<MultiListBox*>(this)->addColumn(_name, _width);
426 }
427 void MemberObsolete<MultiListBox>::setColumnName(size_t _column, const UString& _name)
428 {
429 static_cast<MultiListBox*>(this)->setColumnNameAt(_column, _name);
430 }
431 void MemberObsolete<MultiListBox>::insertColumn(size_t _column, int _width, const UString& _name)
432 {
433 static_cast<MultiListBox*>(this)->insertColumnAt(_column, _name, _width);
434 }
435 size_t MemberObsolete<MultiListBox>::getItemSelect() const
436 {
437 return static_cast<const MultiListBox*>(this)->getIndexSelected();
438 }
439 void MemberObsolete<MultiListBox>::resetItemSelect()
440 {
441 static_cast<MultiListBox*>(this)->clearIndexSelected();
442 }
443 void MemberObsolete<MultiListBox>::setItemSelect(size_t _index)
444 {
445 static_cast<MultiListBox*>(this)->setIndexSelected(_index);
446 }
447 void MemberObsolete<MultiListBox>::insertItem(size_t _index, const UString& _name)
448 {
449 static_cast<MultiListBox*>(this)->insertItemAt(_index, _name);
450 }
451 void MemberObsolete<MultiListBox>::setItem(size_t _index, const UString& _name)
452 {
453 static_cast<MultiListBox*>(this)->setItemNameAt(_index, _name);
454 }
455 const UString& MemberObsolete<MultiListBox>::getItem(size_t _index) const
456 {
457 return static_cast<const MultiListBox*>(this)->getItemNameAt(_index);
458 }
459 void MemberObsolete<MultiListBox>::deleteItem(size_t _index)
460 {
461 static_cast<MultiListBox*>(this)->removeItemAt(_index);
462 }
463 void MemberObsolete<MultiListBox>::deleteAllItems()
464 {
465 static_cast<MultiListBox*>(this)->removeAllItems();
466 }
467
468
469 void MemberObsolete<ProgressBar>::setProgressStartPoint(Align _value)
470 {
471 if (_value == Align::Right)
472 static_cast<ProgressBar*>(this)->setFlowDirection(FlowDirection::RightToLeft);
473 else if (_value == Align::Top)
474 static_cast<ProgressBar*>(this)->setFlowDirection(FlowDirection::TopToBottom);
475 else if (_value == Align::Bottom)
476 static_cast<ProgressBar*>(this)->setFlowDirection(FlowDirection::BottomToTop);
477 else
478 static_cast<ProgressBar*>(this)->setFlowDirection(FlowDirection::LeftToRight);
479 }
480
481 Align MemberObsolete<ProgressBar>::getProgressStartPoint() const
482 {
483 if (static_cast<const ProgressBar*>(this)->getFlowDirection() == FlowDirection::RightToLeft)
484 return Align::Right;
485 if (static_cast<const ProgressBar*>(this)->getFlowDirection() == FlowDirection::TopToBottom)
486 return Align::Top;
487 if (static_cast<const ProgressBar*>(this)->getFlowDirection() == FlowDirection::BottomToTop)
488 return Align::Bottom;
489
490 return Align::Left;
491 }
492
493
494 void MemberObsolete<ScrollView>::showVScroll(bool _visible)
495 {
496 static_cast<ScrollView*>(this)->setVisibleVScroll(_visible);
497 }
498 bool MemberObsolete<ScrollView>::isShowVScroll()
499 {
500 return static_cast<ScrollView*>(this)->isVisibleVScroll();
501 }
502 void MemberObsolete<ScrollView>::showHScroll(bool _visible)
503 {
504 static_cast<ScrollView*>(this)->setVisibleHScroll(_visible);
505 }
506 bool MemberObsolete<ScrollView>::isShowHScroll()
507 {
508 return static_cast<ScrollView*>(this)->isVisibleHScroll();
509 }
510
511
512 int MemberObsolete<TabControl>::getSheetButtonWidthIndex(size_t _index) const
513 {
514 return static_cast<const TabControl*>(this)->getButtonWidthAt(_index);
515 }
516 int MemberObsolete<TabControl>::getSheetButtonWidth(TabItem* _sheet) const
517 {
518 return static_cast<const TabControl*>(this)->getButtonWidth(_sheet);
519 }
520 void MemberObsolete<TabControl>::setSheetButtonWidthIndex(size_t _index, int _width)
521 {
522 static_cast<TabControl*>(this)->setButtonWidthAt(_index, _width);
523 }
524 void MemberObsolete<TabControl>::setSheetButtonWidth(TabItem* _sheet, int _width)
525 {
526 static_cast<TabControl*>(this)->setButtonWidth(_sheet, _width);
527 }
528 void MemberObsolete<TabControl>::showBarButton(size_t _index)
529 {
530 static_cast<TabControl*>(this)->beginToItemAt(_index);
531 }
532 void MemberObsolete<TabControl>::showBarSelectButton()
533 {
534 static_cast<TabControl*>(this)->beginToItemSelected();
535 }
536 size_t MemberObsolete<TabControl>::getSheetCount() const
537 {
538 return static_cast<const TabControl*>(this)->getItemCount();
539 }
540 const UString& MemberObsolete<TabControl>::getSheetName(TabItem* _sheet) const
541 {
542 return static_cast<const TabControl*>(this)->getItemName(_sheet);
543 }
544 const UString& MemberObsolete<TabControl>::getSheetNameIndex(size_t _index) const
545 {
546 return static_cast<const TabControl*>(this)->getItemNameAt(_index);
547 }
548 TabItem* MemberObsolete<TabControl>::getSheet(size_t _index) const
549 {
550 return static_cast<const TabControl*>(this)->getItemAt(_index);
551 }
552 void MemberObsolete<TabControl>::setSheetNameIndex(size_t _index, const UString& _name, int _width)
553 {
554 static_cast<TabControl*>(this)->setItemNameAt(_index, _name);
555 }
556 void MemberObsolete<TabControl>::setSheetName(TabItem* _sheet, const UString& _name, int _width)
557 {
558 static_cast<TabControl*>(this)->setItemName(_sheet, _name);
559 }
560 TabItem* MemberObsolete<TabControl>::addSheet(const UString& _name, int _width)
561 {
562 return static_cast<TabControl*>(this)->addItem(_name, _width);
563 }
564 TabItem* MemberObsolete<TabControl>::insertSheet(size_t _index, const UString& _name, int _width)
565 {
566 return static_cast<TabControl*>(this)->insertItemAt(_index, _name);
567 }
568 void MemberObsolete<TabControl>::removeSheetIndex(size_t _index)
569 {
570 static_cast<TabControl*>(this)->removeItemAt(_index);
571 }
572 void MemberObsolete<TabControl>::removeSheet(TabItem* _sheet)
573 {
574 static_cast<TabControl*>(this)->removeItem(_sheet);
575 }
576 void MemberObsolete<TabControl>::selectSheetIndex(size_t _index, bool _smooth)
577 {
578 static_cast<TabControl*>(this)->setIndexSelected(_index);
579 }
580 void MemberObsolete<TabControl>::selectSheet(TabItem* _sheet, bool _smooth)
581 {
582 static_cast<TabControl*>(this)->setItemSelected(_sheet);
583 }
584 size_t MemberObsolete<TabControl>::getSelectSheetIndex() const
585 {
586 return static_cast<const TabControl*>(this)->getIndexSelected();
587 }
588
589 size_t MemberObsolete<TabControl>::getItemIndexSelected() const
590 {
591 return static_cast<const TabControl*>(this)->getIndexSelected();
592 }
593 void MemberObsolete<TabControl>::setItemSelectedAt(size_t _index)
594 {
595 static_cast<TabControl*>(this)->setIndexSelected(_index);
596 }
597
598
599 bool MemberObsolete<Widget>::isEnabled()
600 {
601 return static_cast<Widget*>(this)->getEnabled();
602 }
603 bool MemberObsolete<Widget>::isInheritsAlpha()
604 {
605 return static_cast<Widget*>(this)->getInheritsAlpha();
606 }
607 bool MemberObsolete<Widget>::isNeedKeyFocus()
608 {
609 return static_cast<Widget*>(this)->getNeedKeyFocus();
610 }
611 bool MemberObsolete<Widget>::isNeedMouseFocus()
612 {
613 return static_cast<Widget*>(this)->getNeedMouseFocus();
614 }
615 bool MemberObsolete<Widget>::isInheritsPick()
616 {
617 return static_cast<Widget*>(this)->getInheritsPick();
618 }
619 bool MemberObsolete<Widget>::isVisible()
620 {
621 return static_cast<Widget*>(this)->getVisible();
622 }
623
624
625 void MemberObsolete<Window>::showSmooth(bool _reset)
626 {
627 static_cast<Window*>(this)->setVisibleSmooth(true);
628 }
629 void MemberObsolete<Window>::hideSmooth()
630 {
631 static_cast<Window*>(this)->setVisibleSmooth(false);
632 }
633 void MemberObsolete<Window>::setMinMax(const IntRect& _minmax)
634 {
635 static_cast<Window*>(this)->setMinSize(_minmax.left, _minmax.top);
636 static_cast<Window*>(this)->setMaxSize(_minmax.right, _minmax.bottom);
637 }
638 void MemberObsolete<Window>::setMinMax(int _min_w, int _min_h, int _max_w, int _max_h)
639 {
640 static_cast<Window*>(this)->setMinSize(_min_w, _min_h);
641 static_cast<Window*>(this)->setMaxSize(_max_w, _max_h);
642 }
643 IntRect MemberObsolete<Window>::getMinMax() const
644 {
645 return {
646 static_cast<const Window*>(this)->getMinSize().width,
647 static_cast<const Window*>(this)->getMinSize().height,
648 static_cast<const Window*>(this)->getMaxSize().width,
649 static_cast<const Window*>(this)->getMaxSize().height};
650 }
651
652 bool MemberObsolete<FontManager>::load(const std::string& _file)
653 {
654 return ResourceManager::getInstance().load(_file);
655 }
656
657 void MemberObsolete<FontManager>::loadOldFontFormat(
658 xml::ElementPtr _node2,
659 std::string_view _file,
660 Version _version,
661 std::string_view _tag)
662 {
663 xml::ElementEnumerator _node = _node2->getElementEnumerator();
664 while (_node.next())
665 {
666 if (_node->getName() == _tag)
667 {
668 std::string name;
669 if (!_node->findAttribute("name", name))
670 return;
671
672 std::string_view type;
673 if (_node->findAttribute("resolution").empty())
674 type = "ResourceManualFont";
675 else
676 type = "ResourceTrueTypeFont";
677
678 xml::Document doc;
679 xml::ElementPtr root = doc.createRoot("MyGUI");
680 xml::ElementPtr node = root->createChild("Resource");
681 node->addAttribute("type", type);
682 node->addAttribute("name", name);
683
684 std::string tmp;
685 if (_node->findAttribute("source", tmp))
686 {
687 xml::ElementPtr prop = node->createChild("Property");
688 prop->addAttribute("key", "Source");
689 prop->addAttribute("value", tmp);
690 }
691
692 if (_node->findAttribute("size", tmp))
693 {
694 xml::ElementPtr prop = node->createChild("Property");
695 prop->addAttribute("key", "Size");
696 prop->addAttribute("value", tmp);
697 }
698
699 if (_node->findAttribute("resolution", tmp))
700 {
701 xml::ElementPtr prop = node->createChild("Property");
702 prop->addAttribute("key", "Resolution");
703 prop->addAttribute("value", tmp);
704 }
705
706 if (_node->findAttribute("antialias_colour", tmp))
707 {
708 xml::ElementPtr prop = node->createChild("Property");
709 prop->addAttribute("key", "Antialias");
710 prop->addAttribute("value", tmp);
711 }
712
713 if (_node->findAttribute("space_width", tmp))
714 {
715 xml::ElementPtr prop = node->createChild("Property");
716 prop->addAttribute("key", "SpaceWidth");
717 prop->addAttribute("value", tmp);
718 }
719
720 if (_node->findAttribute("tab_width", tmp))
721 {
722 xml::ElementPtr prop = node->createChild("Property");
723 prop->addAttribute("key", "TabWidth");
724 prop->addAttribute("value", tmp);
725 }
726
727 if (_node->findAttribute("cursor_width", tmp))
728 {
729 xml::ElementPtr prop = node->createChild("Property");
730 prop->addAttribute("key", "CursorWidth");
731 prop->addAttribute("value", tmp);
732 }
733
734 if (_node->findAttribute("distance", tmp))
735 {
736 xml::ElementPtr prop = node->createChild("Property");
737 prop->addAttribute("key", "Distance");
738 prop->addAttribute("value", tmp);
739 }
740
741 if (_node->findAttribute("offset_height", tmp))
742 {
743 xml::ElementPtr prop = node->createChild("Property");
744 prop->addAttribute("key", "OffsetHeight");
745 prop->addAttribute("value", tmp);
746 }
747
748 if (_node->findAttribute("default_height", tmp))
749 {
750 xml::ElementPtr prop = node->createChild("Property");
751 prop->addAttribute("key", "DefaultHeight");
752 prop->addAttribute("value", tmp);
753 }
754
755 xml::ElementPtr codes = node->createChild("Codes");
756
757 xml::ElementEnumerator codeold = _node->getElementEnumerator();
758 while (codeold.next("Code"))
759 {
760 xml::ElementPtr codenew = codes->createChild("Code");
761
762 if (codeold->findAttribute("range", tmp))
763 codenew->addAttribute("range", tmp);
764
765 if (codeold->findAttribute("hide", tmp))
766 codenew->addAttribute("hide", tmp);
767
768 if (codeold->findAttribute("index", tmp))
769 codenew->addAttribute("index", tmp);
770
771 if (codeold->findAttribute("coord", tmp))
772 codenew->addAttribute("coord", tmp);
773 }
774
775 ResourceManager::getInstance().loadFromXmlNode(root, _file, _version);
776 }
777 }
778 }
779
780 void MemberObsolete<Gui>::destroyWidgetsVector(VectorWidgetPtr& _widgets)
781 {
782 static_cast<Gui*>(this)->destroyWidgets(_widgets);
783 }
784
785 bool MemberObsolete<Gui>::injectMouseMove(int _absx, int _absy, int _absz)
786 {
787 return InputManager::getInstance().injectMouseMove(_absx, _absy, _absz);
788 }
789 bool MemberObsolete<Gui>::injectMousePress(int _absx, int _absy, MouseButton _id)
790 {
791 return InputManager::getInstance().injectMousePress(_absx, _absy, _id);
792 }
793 bool MemberObsolete<Gui>::injectMouseRelease(int _absx, int _absy, MouseButton _id)
794 {
795 return InputManager::getInstance().injectMouseRelease(_absx, _absy, _id);
796 }
797 bool MemberObsolete<Gui>::injectKeyPress(KeyCode _key, Char _text)
798 {
799 return InputManager::getInstance().injectKeyPress(_key, _text);
800 }
801 bool MemberObsolete<Gui>::injectKeyRelease(KeyCode _key)
802 {
803 return InputManager::getInstance().injectKeyRelease(_key);
804 }
805
806 void MemberObsolete<Gui>::hidePointer()
807 {
808 PointerManager::getInstance().setVisible(false);
809 }
810 void MemberObsolete<Gui>::showPointer()
811 {
812 PointerManager::getInstance().setVisible(true);
813 }
814 bool MemberObsolete<Gui>::isShowPointer()
815 {
816 return PointerManager::getInstance().isVisible();
817 }
818
819 bool MemberObsolete<Gui>::load(const std::string& _file)
820 {
821 return ResourceManager::getInstance().load(_file);
822 }
823
824 const IntSize& MemberObsolete<Gui>::getViewSize() const
825 {
826 return RenderManager::getInstance().getViewSize();
827 }
828 int MemberObsolete<Gui>::getViewWidth() const
829 {
830 return RenderManager::getInstance().getViewSize().width;
831 }
832 int MemberObsolete<Gui>::getViewHeight() const
833 {
834 return RenderManager::getInstance().getViewSize().height;
835 }
836
837 void MemberObsolete<Gui>::setVisiblePointer(bool _value)
838 {
839 PointerManager::getInstance().setVisible(_value);
840 }
841 bool MemberObsolete<Gui>::isVisiblePointer()
842 {
843 return PointerManager::getInstance().isVisible();
844 }
845
846 void MemberObsolete<Gui>::_injectFrameEntered(float _time)
847 {
848 Gui::getInstance().frameEvent(_time);
849 }
850
851 void MemberObsolete<Gui>::_resizeWindow(const IntSize& _size)
852 {
853 LayerManager::getInstance().resizeView(_size);
854 }
855
856 const IntPoint& MemberObsolete<InputManager>::getLastLeftPressed() const
857 {
858 return InputManager::getInstance().getLastPressedPosition(MouseButton::Left);
859 }
860
861 const IntPoint& MemberObsolete<InputManager>::getLastRightPressed() const
862 {
863 return InputManager::getInstance().getLastPressedPosition(MouseButton::Right);
864 }
865
866 bool MemberObsolete<LanguageManager>::load(const std::string& _file)
867 {
868 return ResourceManager::getInstance().load(_file);
869 }
870
871 bool MemberObsolete<LayerManager>::load(const std::string& _file)
872 {
873 return ResourceManager::getInstance().load(_file);
874 }
875
876 VectorWidgetPtr MemberObsolete<LayoutManager>::load(std::string_view _file)
877 {
878 return static_cast<LayoutManager*>(this)->loadLayout(_file);
879 }
880
881 bool MemberObsolete<PluginManager>::load(const std::string& _file)
882 {
883 return ResourceManager::getInstance().load(_file);
884 }
885
886 void MemberObsolete<PointerManager>::setDeafultPointer(std::string_view _value)
887 {
888 static_cast<PointerManager*>(this)->setDefaultPointer(_value);
889 }
890 void MemberObsolete<PointerManager>::show()
891 {
892 static_cast<PointerManager*>(this)->setVisible(true);
893 }
894 void MemberObsolete<PointerManager>::hide()
895 {
896 static_cast<PointerManager*>(this)->setVisible(false);
897 }
898 bool MemberObsolete<PointerManager>::isShow()
899 {
900 return static_cast<PointerManager*>(this)->isVisible();
901 }
902 bool MemberObsolete<PointerManager>::load(const std::string& _file)
903 {
904 return ResourceManager::getInstance().load(_file);
905 }
906 void MemberObsolete<PointerManager>::loadOldPointerFormat(
907 xml::ElementPtr _node,
908 std::string_view _file,
909 Version _version,
910 std::string_view _tag)
911 {
912 std::string_view pointer;
913 std::string_view layer;
914
915 xml::ElementEnumerator node = _node->getElementEnumerator();
916 while (node.next())
917 {
918 if (node->getName() == _tag)
919 {
920 layer = node->findAttribute("layer");
921 pointer = node->findAttribute("default");
922
923 // сохраняем
924 std::string_view shared_text = node->findAttribute("texture");
925
926 // берем детей и крутимся, основной цикл
927 xml::ElementEnumerator info = node->getElementEnumerator();
928 while (info.next("Info"))
929 {
930 std::string_view name = info->findAttribute("name");
931 if (name.empty())
932 continue;
933
934 std::string_view texture = info->findAttribute("texture");
935
936 std::string_view type =
937 (shared_text.empty() && texture.empty()) ? "ResourceImageSetPointer" : "ResourceManualPointer";
938
939 xml::Document doc;
940 xml::ElementPtr root = doc.createRoot("MyGUI");
941 xml::ElementPtr newnode = root->createChild("Resource");
942 newnode->addAttribute("type", type);
943 newnode->addAttribute("name", name);
944
945 std::string tmp;
946 if (info->findAttribute("point", tmp))
947 {
948 xml::ElementPtr prop = newnode->createChild("Property");
949 prop->addAttribute("key", "Point");
950 prop->addAttribute("value", tmp);
951 }
952
953 if (info->findAttribute("size", tmp))
954 {
955 xml::ElementPtr prop = newnode->createChild("Property");
956 prop->addAttribute("key", "Size");
957 prop->addAttribute("value", tmp);
958 }
959
960 if (info->findAttribute("resource", tmp))
961 {
962 xml::ElementPtr prop = newnode->createChild("Property");
963 prop->addAttribute("key", "Resource");
964 prop->addAttribute("value", tmp);
965 }
966
967 if (info->findAttribute("offset", tmp))
968 {
969 xml::ElementPtr prop = newnode->createChild("Property");
970 prop->addAttribute("key", "Coord");
971 prop->addAttribute("value", tmp);
972 }
973
974 if (!shared_text.empty() || !texture.empty())
975 {
976 xml::ElementPtr prop = newnode->createChild("Property");
977 prop->addAttribute("key", "Texture");
978 prop->addAttribute("value", shared_text.empty() ? texture : shared_text);
979 }
980
981 ResourceManager::getInstance().loadFromXmlNode(root, _file, _version);
982 }
983 }
984 }
985
986 if (!layer.empty())
987 static_cast<PointerManager*>(this)->setLayerName(layer);
988
989 if (!pointer.empty())
990 static_cast<PointerManager*>(this)->setDefaultPointer(pointer);
991 }
992
993 size_t MemberObsolete<ResourceManager>::getResourceCount() const
994 {
995 return static_cast<const ResourceManager*>(this)->getCount();
996 }
997 IResourcePtr MemberObsolete<ResourceManager>::getResource(std::string_view _name, bool _throw) const
998 {
999 return static_cast<const ResourceManager*>(this)->getByName(_name, _throw);
1000 }
1001
1002 ResourceSkin* MemberObsolete<SkinManager>::getSkin(std::string_view _name) const
1003 {
1004 return static_cast<const SkinManager*>(this)->getByName(_name);
1005 }
1006 bool MemberObsolete<SkinManager>::load(const std::string& _file)
1007 {
1008 return ResourceManager::getInstance().load(_file);
1009 }
1010 void MemberObsolete<SkinManager>::loadOldSkinFormat(
1011 xml::ElementPtr _node,
1012 std::string_view /*_file*/,
1013 Version _version,
1014 std::string_view _tag)
1015 {
1016 const std::string& resourceCategory = ResourceManager::getInstance().getCategoryName();
1017
1018 // берем детей и крутимся, основной цикл со скинами
1019 xml::ElementEnumerator skin = _node->getElementEnumerator();
1020 while (skin.next(_tag))
1021 {
1022 std::string_view type = skin->findAttribute("type");
1023 if (type.empty())
1024 type = "ResourceSkin";
1025
1026 IObject* object = FactoryManager::getInstance().createObject(resourceCategory, type);
1027 if (object != nullptr)
1028 {
1029 ResourceSkin* data = object->castType<ResourceSkin>();
1030 data->deserialization(skin.current(), _version);
1031
1032 ResourceManager::getInstance().addResource(data);
1033 }
1034 }
1035 }
1036
1037
1038 void MemberObsolete<WidgetManager>::destroyWidgetsVector(VectorWidgetPtr& _widgets)
1039 {
1040 static_cast<WidgetManager*>(this)->destroyWidgets(_widgets);
1041 }
1042 Widget* MemberObsolete<WidgetManager>::findWidgetT(std::string_view _name, bool _throw)
1043 {
1044 return Gui::getInstance().findWidgetT(_name, _throw);
1045 }
1046 Widget* MemberObsolete<WidgetManager>::findWidgetT(std::string_view _name, std::string_view _prefix, bool _throw)
1047 {
1048 return Gui::getInstance().findWidgetT(_name, _prefix, _throw);
1049 }
1050 void MemberObsolete<WidgetManager>::parse(Widget* _widget, std::string_view _key, std::string_view _value)
1051 {
1052 _widget->setProperty(_key, _value);
1053 }
1054
1055
1056#endif // MYGUI_DONT_USE_OBSOLETE
1057
1058#ifndef MYGUI_DONT_USE_OBSOLETE
1059
1060 static std::string_view convertAlignToDirection(std::string_view _value)
1061 {
1062 Align align = utility::parseValue<Align>(_value);
1063 if (align == Align::Right)
1064 return FlowDirection(FlowDirection::RightToLeft).print();
1065 if (align == Align::Top)
1066 return FlowDirection(FlowDirection::TopToBottom).print();
1067 if (align == Align::Bottom)
1068 return FlowDirection(FlowDirection::BottomToTop).print();
1069 return FlowDirection(FlowDirection::LeftToRight).print();
1070 }
1071
1072 static std::string convertRectToCoord(std::string_view _value)
1073 {
1074 IntRect rect = IntRect::parse(_value);
1075 IntCoord coord(rect.left, rect.top, rect.width(), rect.height());
1076 return coord.print();
1077 }
1078
1079 using SetString = std::set<std::string, std::less<>>;
1080 static MapString mPropertyRename;
1081 static SetString mPropertyIgnore;
1082 static MapString mSkinRename;
1083
1084#endif // MYGUI_DONT_USE_OBSOLETE
1085
1086 bool BackwardCompatibility::isIgnoreProperty(std::string_view _key)
1087 {
1088#ifndef MYGUI_DONT_USE_OBSOLETE
1089 return mPropertyIgnore.find(_key) != mPropertyIgnore.end();
1090#else
1091 return false;
1092#endif // MYGUI_DONT_USE_OBSOLETE
1093 }
1094
1095 bool BackwardCompatibility::checkProperty(Widget* _owner, std::string& _key, std::string& _value)
1096 {
1097#ifndef MYGUI_DONT_USE_OBSOLETE
1098 if (mPropertyIgnore.find(_key) != mPropertyIgnore.end())
1099 return false;
1100
1101 MapString::iterator item = mPropertyRename.find(_key);
1102 if (item != mPropertyRename.end())
1103 {
1104 MYGUI_LOG(
1105 Warning,
1106 (*item).first << " is deprecated, use " << (*item).second << " ["
1107 << LayoutManager::getInstance().getCurrentLayout() << "]");
1108 _key = (*item).second;
1109 }
1110 else if (_key == "Progress_StartPoint")
1111 {
1112 MYGUI_LOG(
1113 Warning,
1114 "Progress_StartPoint is deprecated, use Progress_FlowDirection"
1115 << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1116 _key = "Progress_FlowDirection";
1117 _value = convertAlignToDirection(_value);
1118 }
1119 else if (_key == "ComboBox_AddItem")
1120 {
1121 MYGUI_LOG(
1122 Warning,
1123 "ComboBox_AddItem is deprecated"
1124 << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1125 ComboBox* widget = _owner->castType<ComboBox>(false);
1126 if (widget != nullptr)
1127 widget->addItem(_value);
1128 return false;
1129 }
1130 else if (_key == "List_AddItem")
1131 {
1132 MYGUI_LOG(
1133 Warning,
1134 "List_AddItem is deprecated"
1135 << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1136 ListBox* widget = _owner->castType<ListBox>(false);
1137 if (widget != nullptr)
1138 widget->addItem(_value);
1139 return false;
1140 }
1141 else if (_key == "Tab_AddSheet")
1142 {
1143 MYGUI_LOG(
1144 Warning,
1145 "Tab_AddSheet is deprecated"
1146 << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1147 TabControl* widget = _owner->castType<TabControl>(false);
1148 if (widget != nullptr)
1149 widget->addItem(_value);
1150 return false;
1151 }
1152 else if (_key == "Tab_AddItem")
1153 {
1154 MYGUI_LOG(
1155 Warning,
1156 "Tab_AddItem is deprecated"
1157 << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1158 TabControl* widget = _owner->castType<TabControl>(false);
1159 if (widget != nullptr)
1160 widget->addItem(_value);
1161 return false;
1162 }
1163 else if (_key == "Window_MinMax")
1164 {
1165 MYGUI_LOG(
1166 Warning,
1167 "Window_MinMax is deprecated, use Window_MinSize or Window_MaxSize"
1168 << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1169 Window* widget = _owner->castType<Window>(false);
1170 if (widget != nullptr)
1171 {
1172 IntRect rect = IntRect::parse(_value);
1173 widget->setMinSize(rect.left, rect.top);
1174 widget->setMaxSize(rect.right, rect.bottom);
1175 }
1176 return false;
1177 }
1178 else if (_key == "ImageRect")
1179 {
1180 MYGUI_LOG(
1181 Warning,
1182 "ImageRect is deprecated, use ImageCoord"
1183 << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1184 _key = "ImageCoord";
1185 _value = convertRectToCoord(_value);
1186 }
1187 else if (_key == "StartPoint")
1188 {
1189 MYGUI_LOG(
1190 Warning,
1191 "StartPoint is deprecated, use FlowDirection"
1192 << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1193 _key = "FlowDirection";
1194 _value = convertAlignToDirection(_value);
1195 }
1196
1197#endif // MYGUI_DONT_USE_OBSOLETE
1198 return true;
1199 }
1200
1201 void BackwardCompatibility::initialise()
1202 {
1203#ifndef MYGUI_DONT_USE_OBSOLETE
1204 mPropertyRename["Widget_Caption"] = "Caption";
1205 mPropertyRename["Button_Pressed"] = "StateSelected";
1206 mPropertyRename["ButtonPressed"] = "StateSelected";
1207 mPropertyRename["StateCheck"] = "StateSelected";
1208 mPropertyRename["Edit_ShowVScroll"] = "VisibleVScroll";
1209 mPropertyRename["Edit_ShowHScroll"] = "VisibleHScroll";
1210 mPropertyRename["ScrollView_VScroll"] = "VisibleVScroll";
1211 mPropertyRename["ScrollView_HScroll"] = "VisibleHScroll";
1212 mPropertyRename["Progress_Position"] = "RangePosition";
1213 mPropertyRename["Scroll_Position"] = "RangePosition";
1214 mPropertyRename["Tab_SelectSheet"] = "SelectItem";
1215 mPropertyRename["Image_Texture"] = "ImageTexture";
1216 mPropertyRename["Image_Coord"] = "ImageRegion";
1217 mPropertyRename["Image_Tile"] = "ImageTile";
1218 mPropertyRename["Image_Index"] = "ImageIndex";
1219 mPropertyRename["Image_Resource"] = "ImageResource";
1220 mPropertyRename["Image_Group"] = "ImageGroup";
1221 mPropertyRename["Image_Name"] = "ImageName";
1222 mPropertyRename["MenuItem_Id"] = "MenuItemId";
1223 mPropertyRename["MenuItem_Type"] = "MenuItemType";
1224 mPropertyRename["Combo_MaxLength"] = "MaxListLength";
1225 mPropertyRename["AlignText"] = "TextAlign";
1226 mPropertyRename["ToStick"] = "Snap";
1227 mPropertyRename["ListSmoothShow"] = "SmoothShow";
1228 mPropertyRename["HeightList"] = "MaxListLength";
1229 mPropertyRename["AlignVert"] = "VerticalAlignment";
1230
1231 mPropertyIgnore.insert("DragLayer");
1232 mPropertyIgnore.insert("SkinLine");
1233 mPropertyIgnore.insert("HeightLine");
1234 mPropertyIgnore.insert("SkinLine");
1235 mPropertyIgnore.insert("HeightLine");
1236 mPropertyIgnore.insert("SeparatorHeight");
1237 mPropertyIgnore.insert("SeparatorSkin");
1238 mPropertyIgnore.insert("SubmenuImageSize");
1239 mPropertyIgnore.insert("SubMenuSkin");
1240 mPropertyIgnore.insert("SubMenuLayer");
1241 mPropertyIgnore.insert("DistanceButton");
1242 mPropertyIgnore.insert("ButtonSkin");
1243 mPropertyIgnore.insert("ButtonType");
1244 mPropertyIgnore.insert("ButtonSize");
1245 mPropertyIgnore.insert("ButtonOffset");
1246 mPropertyIgnore.insert("DefaultLayer");
1247 mPropertyIgnore.insert("FadeSkin");
1248 mPropertyIgnore.insert("FadeLayer");
1249 mPropertyIgnore.insert("SkinButton");
1250 mPropertyIgnore.insert("HeightButton");
1251 mPropertyIgnore.insert("SkinList");
1252 mPropertyIgnore.insert("SkinButtonEmpty");
1253 mPropertyIgnore.insert("WidthSeparator");
1254 mPropertyIgnore.insert("SkinSeparator");
1255 mPropertyIgnore.insert("TrackSkin");
1256 mPropertyIgnore.insert("TrackWidth");
1257 mPropertyIgnore.insert("TrackMin");
1258 mPropertyIgnore.insert("TrackStep");
1259 mPropertyIgnore.insert("TrackFill");
1260 mPropertyIgnore.insert("OffsetBar");
1261 mPropertyIgnore.insert("ButtonSkin");
1262 mPropertyIgnore.insert("EmptyBarSkin");
1263 mPropertyIgnore.insert("TrackRangeMargins");
1264 mPropertyIgnore.insert("MinTrackSize");
1265 mPropertyIgnore.insert("MainMove");
1266 mPropertyIgnore.insert("LevelOffset");
1267 mPropertyIgnore.insert("State");
1268
1269 mSkinRename["StaticImage"] = "ImageBox";
1270 mSkinRename["StaticText"] = "TextBox";
1271 mSkinRename["HScroll"] = "ScrollBarH";
1272 mSkinRename["VScroll"] = "ScrollBarV";
1273 mSkinRename["ItemBoxH"] = "ItemBox";
1274 mSkinRename["ItemBoxV"] = "ItemBox";
1275 mSkinRename["VSlider"] = "SliderV";
1276 mSkinRename["HSlider"] = "SliderH";
1277 mSkinRename["Progress"] = "ProgressBar";
1278 mSkinRename["ProgressFill"] = "ProgressBarFill";
1279 mSkinRename["List"] = "ListBox";
1280 mSkinRename["MultiList"] = "MultiListBox";
1281 mSkinRename["Edit"] = "EditBox";
1282 mSkinRename["EditStretch"] = "EditBoxStretch";
1283 mSkinRename["EditEmpty"] = "EditBoxEmpty";
1284 mSkinRename["RadioBox"] = "RadioButton";
1285 mSkinRename["Tab"] = "TabControl";
1286 mSkinRename["WordWrap"] = "WordWrapEmpty";
1287 mSkinRename["WordWrapSimple"] = "WordWrapEmpty";
1288 mSkinRename["ButtonSmall"] = "Button";
1289 mSkinRename["ButtonImageText"] = "ButtonImage";
1290
1291 mSkinRename["TileClient"] = "ClientTileSkin";
1292 mSkinRename["DefaultClient"] = "ClientDefaultSkin";
1293 mSkinRename["Panel"] = "PanelSkin";
1294 mSkinRename["PanelSmall"] = "PanelSkin";
1295 mSkinRename["Separator1"] = "SepUpVSkin";
1296 mSkinRename["Separator2"] = "SepDownVSkin";
1297 mSkinRename["Separator3"] = "SepUpHSkin";
1298 mSkinRename["Separator4"] = "SepDownHSkin";
1299 mSkinRename["MarkerWhite"] = "WhiteSkin";
1300 mSkinRename["ButtonLeft"] = "ButtonLeftSkin";
1301 mSkinRename["ButtonRight"] = "ButtonRightSkin";
1302 mSkinRename["ButtonUp"] = "ButtonUpSkin";
1303 mSkinRename["ButtonDown"] = "ButtonDownSkin";
1304 mSkinRename["ButtonV"] = "ButtonAcceptSkin";
1305 mSkinRename["ButtonX"] = "ButtonCloseSkin";
1306 mSkinRename["ButtonMinusPlus"] = "ButtonExpandSkin";
1307#endif // MYGUI_DONT_USE_OBSOLETE
1308 }
1309
1310 std::string_view BackwardCompatibility::getPropertyRename(std::string_view _propertyName)
1311 {
1312#ifndef MYGUI_DONT_USE_OBSOLETE
1313 MapString::const_iterator item = mPropertyRename.find(_propertyName);
1314 if (item != mPropertyRename.end())
1315 return (*item).second;
1316#endif // MYGUI_DONT_USE_OBSOLETE
1317 return _propertyName;
1318 }
1319
1320 std::string_view BackwardCompatibility::getFactoryRename(
1321 std::string_view _categoryName,
1322 std::string_view _factoryName)
1323 {
1324#ifndef MYGUI_DONT_USE_OBSOLETE
1325 if (_categoryName == "Widget")
1326 {
1327 if (_factoryName == "HScroll")
1328 {
1329 MYGUI_LOG(
1330 Warning,
1331 "HScroll factory is deprecated, use " << ScrollBar::getClassTypeName() << " ["
1332 << LayoutManager::getInstance().getCurrentLayout() << "]");
1333 }
1334 else if (_factoryName == "VScroll")
1335 {
1336 MYGUI_LOG(
1337 Warning,
1338 "VScroll factory is deprecated, use " << ScrollBar::getClassTypeName() << " ["
1339 << LayoutManager::getInstance().getCurrentLayout() << "]");
1340 }
1341 else if (_factoryName == "RenderBox")
1342 {
1343 MYGUI_LOG(
1344 Warning,
1345 "RenderBox factory is deprecated, use " << Canvas::getClassTypeName() << " ["
1346 << LayoutManager::getInstance().getCurrentLayout() << "]");
1347 }
1348 else if (_factoryName == "Sheet")
1349 {
1350 MYGUI_LOG(
1351 Warning,
1352 "Sheet factory is deprecated, use " << TabItem::getClassTypeName() << " ["
1353 << LayoutManager::getInstance().getCurrentLayout() << "]");
1354 }
1355 else if (_factoryName == "StaticImage")
1356 {
1357 MYGUI_LOG(
1358 Warning,
1359 "StaticImage factory is deprecated, use "
1360 << ImageBox::getClassTypeName() << " [" << LayoutManager::getInstance().getCurrentLayout()
1361 << "]");
1362 }
1363 else if (_factoryName == "StaticText")
1364 {
1365 MYGUI_LOG(
1366 Warning,
1367 "StaticText factory is deprecated, use " << TextBox::getClassTypeName() << " ["
1368 << LayoutManager::getInstance().getCurrentLayout() << "]");
1369 }
1370 else if (_factoryName == "Progress")
1371 {
1372 MYGUI_LOG(
1373 Warning,
1374 "Progress factory is deprecated, use " << ProgressBar::getClassTypeName() << " ["
1375 << LayoutManager::getInstance().getCurrentLayout() << "]");
1376 }
1377 else if (_factoryName == "List")
1378 {
1379 MYGUI_LOG(
1380 Warning,
1381 "List factory is deprecated, use " << ListBox::getClassTypeName() << " ["
1382 << LayoutManager::getInstance().getCurrentLayout() << "]");
1383 }
1384 else if (_factoryName == "Edit")
1385 {
1386 MYGUI_LOG(
1387 Warning,
1388 "Edit factory is deprecated, use " << EditBox::getClassTypeName() << " ["
1389 << LayoutManager::getInstance().getCurrentLayout() << "]");
1390 }
1391 else if (_factoryName == "Tab")
1392 {
1393 MYGUI_LOG(
1394 Warning,
1395 "Tab factory is deprecated, use " << TabControl::getClassTypeName() << " ["
1396 << LayoutManager::getInstance().getCurrentLayout() << "]");
1397 }
1398 else if (_factoryName == "MultiList")
1399 {
1400 MYGUI_LOG(
1401 Warning,
1402 "MultiList factory is deprecated, use " << MultiListBox::getClassTypeName() << " ["
1403 << LayoutManager::getInstance().getCurrentLayout() << "]");
1404 }
1405 else if (_factoryName == "MenuCtrl")
1406 {
1407 MYGUI_LOG(
1408 Warning,
1409 "MenuCtrl factory is deprecated, use " << MenuControl::getClassTypeName() << " ["
1410 << LayoutManager::getInstance().getCurrentLayout() << "]");
1411 }
1412 }
1413#endif // MYGUI_DONT_USE_OBSOLETE
1414 return _factoryName;
1415 }
1416
1417 std::string_view BackwardCompatibility::getSkinRename(std::string_view _skinName)
1418 {
1419#ifndef MYGUI_DONT_USE_OBSOLETE
1420 MapString::iterator item = mSkinRename.find(_skinName);
1421 if (item != mSkinRename.end())
1422 {
1423 MYGUI_LOG(
1424 Warning,
1425 (*item).first << " skin is deprecated, use " << (*item).second << " ["
1426 << LayoutManager::getInstance().getCurrentLayout() << "]");
1427 return (*item).second;
1428 }
1429#endif // MYGUI_DONT_USE_OBSOLETE
1430 return _skinName;
1431 }
1432
1433 void BackwardCompatibility::shutdown()
1434 {
1435#ifndef MYGUI_DONT_USE_OBSOLETE
1436 mPropertyRename.clear();
1437#endif // MYGUI_DONT_USE_OBSOLETE
1438 }
1439
1440 void BackwardCompatibility::registerWidgetTypes()
1441 {
1442#ifndef MYGUI_DONT_USE_OBSOLETE
1443 FactoryManager& factory = FactoryManager::getInstance();
1444 const std::string& widgetCategory = MyGUI::WidgetManager::getInstance().getCategoryName();
1445 factory.registerFactory<HScroll>(widgetCategory);
1446 factory.registerFactory<VScroll>(widgetCategory);
1447 factory.registerFactory<Canvas>(widgetCategory, "RenderBox");
1448 factory.registerFactory<TabItem>(widgetCategory, "Sheet");
1449 factory.registerFactory<ImageBox>(widgetCategory, "StaticImage");
1450 factory.registerFactory<TextBox>(widgetCategory, "StaticText");
1451 factory.registerFactory<ProgressBar>(widgetCategory, "Progress");
1452 factory.registerFactory<ListBox>(widgetCategory, "List");
1453 factory.registerFactory<EditBox>(widgetCategory, "Edit");
1454 factory.registerFactory<TabControl>(widgetCategory, "Tab");
1455 factory.registerFactory<MultiListBox>(widgetCategory, "MultiList");
1456 factory.registerFactory<MenuControl>(widgetCategory, "MenuCtrl");
1457#endif // MYGUI_DONT_USE_OBSOLETE
1458 }
1459
1460} // namespace MyGUI
MyGUI_BackwardCompatibility.h
MyGUI_Button.h
MyGUI_Canvas.h
MyGUI_ComboBox.h
MyGUI_DeprecatedWidgets.h
MYGUI_LOG
#define MYGUI_LOG(level, text)
Definition MyGUI_Diagnostic.h:17
MyGUI_EditBox.h
MyGUI_FactoryManager.h
MyGUI_FontManager.h
MyGUI_Gui.h
MyGUI_InputManager.h
MyGUI_ItemBox.h
MyGUI_LanguageManager.h
MyGUI_LayoutManager.h
MyGUI_ListBox.h
MyGUI_MultiListBox.h
MyGUI_PluginManager.h
MyGUI_PointerManager.h
MyGUI_Precompiled.h
MyGUI_ProgressBar.h
MyGUI_RenderManager.h
MyGUI_ResourceManager.h
MyGUI_ScrollView.h
MyGUI_SkinManager.h
MyGUI_TabControl.h
MyGUI_TabItem.h
MyGUI_Widget.h
MyGUI_WidgetManager.h
MyGUI_Window.h
MyGUI::Any
Definition MyGUI_Any.h:56
MyGUI::BackwardCompatibility::initialise
static void initialise()
Definition MyGUI_BackwardCompatibility.cpp:1201
MyGUI::BackwardCompatibility::getSkinRename
static std::string_view getSkinRename(std::string_view _skinName)
Definition MyGUI_BackwardCompatibility.cpp:1417
MyGUI::BackwardCompatibility::registerWidgetTypes
static void registerWidgetTypes()
Definition MyGUI_BackwardCompatibility.cpp:1440
MyGUI::BackwardCompatibility::isIgnoreProperty
static bool isIgnoreProperty(std::string_view _key)
Definition MyGUI_BackwardCompatibility.cpp:1086
MyGUI::BackwardCompatibility::getPropertyRename
static std::string_view getPropertyRename(std::string_view _propertyName)
Definition MyGUI_BackwardCompatibility.cpp:1310
MyGUI::BackwardCompatibility::checkProperty
static bool checkProperty(Widget *_owner, std::string &_key, std::string &_value)
Definition MyGUI_BackwardCompatibility.cpp:1095
MyGUI::BackwardCompatibility::getFactoryRename
static std::string_view getFactoryRename(std::string_view _categoryName, std::string_view _factoryName)
Definition MyGUI_BackwardCompatibility.cpp:1320
MyGUI::BackwardCompatibility::shutdown
static void shutdown()
Definition MyGUI_BackwardCompatibility.cpp:1433
MyGUI::Button
widget description should be here.
Definition MyGUI_Button.h:20
MyGUI::Canvas
wrapper over Texture - shows the texture. Implemented: resizing of texture (see TextureResizeMode); r...
Definition MyGUI_Canvas.h:22
MyGUI::Canvas::getClassTypeName
static std::string_view getClassTypeName()
Definition MyGUI_Canvas.h:23
MyGUI::ComboBox
widget description should be here.
Definition MyGUI_ComboBox.h:29
MyGUI::ComboBox::addItem
void addItem(const UString &_name, Any _data=Any::Null)
Add an item to the end of a array.
Definition MyGUI_ComboBox.cpp:470
MyGUI::EditBox
widget description should be here.
Definition MyGUI_EditBox.h:26
MyGUI::EditBox::getClassTypeName
static std::string_view getClassTypeName()
Definition MyGUI_EditBox.h:27
MyGUI::FactoryManager
Definition MyGUI_FactoryManager.h:19
MyGUI::FactoryManager::registerFactory
void registerFactory(std::string_view _category, std::string_view _type, Delegate::IDelegate *_delegate)
Definition MyGUI_FactoryManager.cpp:39
MyGUI::FactoryManager::getInstance
static FactoryManager & getInstance()
MyGUI::FactoryManager::createObject
IObject * createObject(std::string_view _category, std::string_view _type)
Definition MyGUI_FactoryManager.cpp:80
MyGUI::Gui
Definition MyGUI_Gui.h:24
MyGUI::Gui::frameEvent
void frameEvent(float _time) const
Definition MyGUI_Gui.cpp:369
MyGUI::Gui::findWidgetT
Widget * findWidgetT(std::string_view _name, bool _throw=true) const
Definition MyGUI_Gui.cpp:178
MyGUI::Gui::getInstance
static Gui & getInstance()
Definition MyGUI_Gui.cpp:34
MyGUI::HScroll
Definition MyGUI_DeprecatedWidgets.h:31
MyGUI::IObject
Definition MyGUI_IObject.h:17
MyGUI::IObject::castType
Type * castType(bool _throw=true)
Definition MyGUI_IObject.h:18
MyGUI::ImageBox
widget description should be here.
Definition MyGUI_ImageBox.h:22
MyGUI::ImageBox::getClassTypeName
static std::string_view getClassTypeName()
Definition MyGUI_ImageBox.h:23
MyGUI::InputManager::getLastPressedPosition
const IntPoint & getLastPressedPosition(MouseButton _id) const
Definition MyGUI_InputManager.cpp:648
MyGUI::InputManager::injectMousePress
bool injectMousePress(int _absx, int _absy, MouseButton _id)
Definition MyGUI_InputManager.cpp:212
MyGUI::InputManager::injectMouseMove
bool injectMouseMove(int _absx, int _absy, int _absz)
Definition MyGUI_InputManager.cpp:73
MyGUI::InputManager::getInstance
static InputManager & getInstance()
MyGUI::InputManager::injectMouseRelease
bool injectMouseRelease(int _absx, int _absy, MouseButton _id)
Definition MyGUI_InputManager.cpp:285
MyGUI::InputManager::injectKeyPress
bool injectKeyPress(KeyCode _key, Char _text=0)
Definition MyGUI_InputManager.cpp:341
MyGUI::InputManager::injectKeyRelease
bool injectKeyRelease(KeyCode _key)
Definition MyGUI_InputManager.cpp:360
MyGUI::ItemBox
widget description should be here.
Definition MyGUI_ItemBox.h:31
MyGUI::LayerManager::getInstance
static LayerManager & getInstance()
MyGUI::LayerManager::resizeView
void resizeView(const IntSize &_viewSize)
Definition MyGUI_LayerManager.cpp:248
MyGUI::LayoutManager
Definition MyGUI_LayoutManager.h:27
MyGUI::LayoutManager::getInstance
static LayoutManager & getInstance()
MyGUI::ListBox
widget description should be here.
Definition MyGUI_ListBox.h:28
MyGUI::ListBox::addItem
void addItem(const UString &_name, Any _data=Any::Null)
Add an item to the end of a array.
Definition MyGUI_ListBox.cpp:873
MyGUI::ListBox::getClassTypeName
static std::string_view getClassTypeName()
Definition MyGUI_ListBox.h:29
MyGUI::MemberObsolete< Button >::getImageIndex
size_t getImageIndex() const
Definition MyGUI_BackwardCompatibility.cpp:68
MyGUI::MemberObsolete< Button >::setImageIndex
void setImageIndex(size_t _index)
Definition MyGUI_BackwardCompatibility.cpp:63
MyGUI::MemberObsolete< MultiListBox >::addColumn
void addColumn(int _width, const UString &_name)
Definition MyGUI_BackwardCompatibility.cpp:423
MyGUI::MemberObsolete
Definition MyGUI_DeprecatedTypes.h:14
MyGUI::MultiListBox
widget description should be here.
Definition MyGUI_MultiListBox.h:43
MyGUI::MultiListBox::getClassTypeName
static std::string_view getClassTypeName()
Definition MyGUI_MultiListBox.h:44
MyGUI::PointerManager
Definition MyGUI_PointerManager.h:22
MyGUI::PointerManager::isVisible
bool isVisible() const
Definition MyGUI_PointerManager.cpp:271
MyGUI::PointerManager::getInstance
static PointerManager & getInstance()
Definition MyGUI_PointerManager.cpp:25
MyGUI::PointerManager::setVisible
void setVisible(bool _visible)
Definition MyGUI_PointerManager.cpp:121
MyGUI::ProgressBar
widget description should be here.
Definition MyGUI_ProgressBar.h:22
MyGUI::ProgressBar::getClassTypeName
static std::string_view getClassTypeName()
Definition MyGUI_ProgressBar.h:23
MyGUI::RenderManager::getViewSize
virtual const IntSize & getViewSize() const =0
MyGUI::RenderManager::getInstance
static RenderManager & getInstance()
MyGUI::ResourceManager
Definition MyGUI_ResourceManager.h:23
MyGUI::ResourceManager::getCategoryName
const std::string & getCategoryName() const
Definition MyGUI_ResourceManager.cpp:283
MyGUI::ResourceManager::loadFromXmlNode
void loadFromXmlNode(xml::ElementPtr _node, std::string_view _file, Version _version)
Definition MyGUI_ResourceManager.cpp:65
MyGUI::ResourceManager::load
bool load(const std::string &_file)
Definition MyGUI_ResourceManager.cpp:60
MyGUI::ResourceManager::getInstance
static ResourceManager & getInstance()
MyGUI::ResourceManager::addResource
void addResource(IResourcePtr _item)
Definition MyGUI_ResourceManager.cpp:213
MyGUI::ResourceSkin
Definition MyGUI_ResourceSkin.h:22
MyGUI::ResourceSkin::deserialization
void deserialization(xml::ElementPtr _node, Version _version) override
Definition MyGUI_ResourceSkin.cpp:22
MyGUI::ScrollBar::getClassTypeName
static std::string_view getClassTypeName()
Definition MyGUI_ScrollBar.h:25
MyGUI::ScrollView
widget description should be here.
Definition MyGUI_ScrollView.h:21
MyGUI::SkinManager
Definition MyGUI_SkinManager.h:22
MyGUI::TabControl
widget description should be here.
Definition MyGUI_TabControl.h:27
MyGUI::TabControl::getClassTypeName
static std::string_view getClassTypeName()
Definition MyGUI_TabControl.h:32
MyGUI::TabControl::addItem
TabItem * addItem(const UString &_name, Any _data=Any::Null)
Add an item to the end of a array.
Definition MyGUI_TabControl.cpp:647
MyGUI::TabItem
widget description should be here.
Definition MyGUI_TabItem.h:21
MyGUI::TabItem::getClassTypeName
static std::string_view getClassTypeName()
Definition MyGUI_TabItem.h:22
MyGUI::TextBox
widget description should be here.
Definition MyGUI_TextBox.h:20
MyGUI::TextBox::getClassTypeName
static std::string_view getClassTypeName()
Definition MyGUI_TextBox.h:21
MyGUI::UString
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
Definition MyGUI_UString.h:144
MyGUI::VScroll
Definition MyGUI_DeprecatedWidgets.h:20
MyGUI::Version
Definition MyGUI_Version.h:18
MyGUI::Widget
widget description should be here.
Definition MyGUI_Widget.h:40
MyGUI::Widget::setProperty
void setProperty(std::string_view _key, std::string_view _value)
Definition MyGUI_Widget.cpp:1135
MyGUI::WidgetManager
Definition MyGUI_WidgetManager.h:21
MyGUI::WidgetManager::getCategoryName
const std::string & getCategoryName() const
Definition MyGUI_WidgetManager.cpp:194
MyGUI::WidgetManager::getInstance
static WidgetManager & getInstance()
MyGUI::Window
widget description should be here.
Definition MyGUI_Window.h:34
MyGUI::Window::setMinSize
void setMinSize(const IntSize &_value)
Definition MyGUI_Window.cpp:451
MyGUI::Window::setMaxSize
void setMaxSize(const IntSize &_value)
Definition MyGUI_Window.cpp:462
MyGUI::xml::Document
Definition MyGUI_XmlDocument.h:298
MyGUI::xml::Document::createRoot
ElementPtr createRoot(std::string_view _name)
Definition MyGUI_XmlDocument.cpp:827
MyGUI::xml::ElementEnumerator
Definition MyGUI_XmlDocument.h:121
MyGUI::xml::ElementEnumerator::next
bool next()
Definition MyGUI_XmlDocument.cpp:107
MyGUI::xml::ElementEnumerator::current
ElementPtr current()
Definition MyGUI_XmlDocument.cpp:136
MyGUI::xml::Element::findAttribute
bool findAttribute(std::string_view _name, std::string &_value)
Definition MyGUI_XmlDocument.cpp:242
MyGUI::xml::Element::getElementEnumerator
ElementEnumerator getElementEnumerator()
Definition MyGUI_XmlDocument.cpp:348
MyGUI::xml::Element::getName
const std::string & getName() const
Definition MyGUI_XmlDocument.cpp:328
MyGUI::xml::Element::addAttribute
void addAttribute(std::string_view _key, const T &_value)
Definition MyGUI_XmlDocument.h:187
MyGUI::xml::Element::createChild
ElementPtr createChild(std::string_view _name, std::string_view _content={}, ElementType _type=ElementType::Normal)
Definition MyGUI_XmlDocument.cpp:218
MyGUI::utility::parseValue
T parseValue(std::string_view _value)
Definition MyGUI_StringUtility.h:60
MyGUI::xml::ElementPtr
Element * ElementPtr
Definition MyGUI_XmlDocument.h:112
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::SetString
std::set< std::string, std::less<> > SetString
Definition MyGUI_BackwardCompatibility.cpp:1079
MyGUI::IntRect
types::TRect< int > IntRect
Definition MyGUI_Types.h:33
MyGUI::mPropertyRename
static MapString mPropertyRename
Definition MyGUI_BackwardCompatibility.cpp:1080
MyGUI::IntPoint
types::TPoint< int > IntPoint
Definition MyGUI_Types.h:27
MyGUI::IResourcePtr
IResource * IResourcePtr
Definition MyGUI_IResource.h:19
MyGUI::convertAlignToDirection
static std::string_view convertAlignToDirection(std::string_view _value)
Definition MyGUI_BackwardCompatibility.cpp:1060
MyGUI::MapString
std::map< std::string, std::string, std::less<> > MapString
Definition MyGUI_Types.h:40
MyGUI::convertRectToCoord
static std::string convertRectToCoord(std::string_view _value)
Definition MyGUI_BackwardCompatibility.cpp:1072
MyGUI::mPropertyIgnore
static SetString mPropertyIgnore
Definition MyGUI_BackwardCompatibility.cpp:1081
MyGUI::Char
unsigned int Char
Definition MyGUI_Types.h:50
MyGUI::ITEM_NONE
constexpr size_t ITEM_NONE
Definition MyGUI_Macros.h:19
MyGUI::IntCoord
types::TCoord< int > IntCoord
Definition MyGUI_Types.h:36
MyGUI::IntSize
types::TSize< int > IntSize
Definition MyGUI_Types.h:30
MyGUI::mSkinRename
static MapString mSkinRename
Definition MyGUI_BackwardCompatibility.cpp:1082
MyGUI::VectorWidgetPtr
std::vector< Widget * > VectorWidgetPtr
Definition MyGUI_WidgetDefines.h:20
MyGUI::Align
Definition MyGUI_Align.h:20
MyGUI::Align::Left
@ Left
Definition MyGUI_Align.h:27
MyGUI::Align::Bottom
@ Bottom
Definition MyGUI_Align.h:32
MyGUI::Align::Right
@ Right
Definition MyGUI_Align.h:28
MyGUI::Align::Top
@ Top
Definition MyGUI_Align.h:31
MyGUI::Colour
Definition MyGUI_Colour.h:17
MyGUI::FlowDirection
Definition MyGUI_FlowDirection.h:19
MyGUI::FlowDirection::TopToBottom
@ TopToBottom
Definition MyGUI_FlowDirection.h:24
MyGUI::FlowDirection::RightToLeft
@ RightToLeft
Definition MyGUI_FlowDirection.h:23
MyGUI::FlowDirection::BottomToTop
@ BottomToTop
Definition MyGUI_FlowDirection.h:25
MyGUI::FlowDirection::LeftToRight
@ LeftToRight
Definition MyGUI_FlowDirection.h:22
MyGUI::FlowDirection::print
std::string_view print() const
Definition MyGUI_FlowDirection.h:83
MyGUI::KeyCode
Definition MyGUI_KeyCode.h:16
MyGUI::MouseButton
Definition MyGUI_MouseButton.h:16
MyGUI::MouseButton::Right
@ Right
Definition MyGUI_MouseButton.h:22
MyGUI::MouseButton::Left
@ Left
Definition MyGUI_MouseButton.h:21
MyGUI::types::TCoord::print
std::string print() const
Definition MyGUI_TCoord.h:176
MyGUI::types::TRect::right
T right
Definition MyGUI_TRect.h:21
MyGUI::types::TRect::height
T height() const
Definition MyGUI_TRect.h:88
MyGUI::types::TRect::left
T left
Definition MyGUI_TRect.h:19
MyGUI::types::TRect::bottom
T bottom
Definition MyGUI_TRect.h:22
MyGUI::types::TRect::width
T width() const
Definition MyGUI_TRect.h:83
MyGUI::types::TRect::top
T top
Definition MyGUI_TRect.h:20
MyGUI::types::TRect< int >::parse
static TRect< int > parse(std::string_view _value)
Definition MyGUI_TRect.h:142
MyGUI::types::TSize::width
T width
Definition MyGUI_TSize.h:19
MyGUI::types::TSize::height
T height
Definition MyGUI_TSize.h:20