MyGUI: MyGUI_BackwardCompatibility.cpp Source File

MyGUI 3.4.2

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files
- Examples

- File List
- Globals

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