MyGUI 3.4.1
MyGUI_IBItemInfo.h
Go to the documentation of this file.
1/*
2 * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3 * Distributed under the MIT License
4 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5 */
6
7#ifndef MYGUI_ITEM_INFO_H_
8#define MYGUI_ITEM_INFO_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_KeyCode.h"
12#include "MyGUI_MouseButton.h"
13#include "MyGUI_Types.h"
14
15namespace MyGUI
16{
17
18 // структура информации об отображении элемента
21 {
22
24 index(ITEM_NONE),
25 update(false),
26 select(false),
27 active(false),
28 drag(false),
29 drop_accept(false),
30 drop_refuse(false)
31 {
32 }
33
34 IBDrawItemInfo(size_t _index, size_t _select, size_t _active, size_t _accept, size_t _refuse, bool _update, bool _drag) :
35 index(_index),
36 update(_update),
37 select(_index == _select),
38 active(_index == _active),
39 drag(_drag),
40 drop_accept(_index == _accept),
41 drop_refuse(_index == _refuse)
42 {
43 }
44
46 size_t index;
48 bool update;
50 bool select;
52 bool active;
54 bool drag;
59 };
60
62 {
64 {
68 KeyReleased
69 };
70
71 IBNotifyItemData(size_t _index, NotifyItem _notify, int _x, int _y, MouseButton _id) :
72 index(_index),
73 notify(_notify),
74 x(_x),
75 y(_y),
76 id(_id),
77 code(KeyCode::None),
78 key(0)
79 {
80 }
81
82 IBNotifyItemData(size_t _index, NotifyItem _notify, KeyCode _code, Char _key) :
83 index(_index),
84 notify(_notify),
85 x(0),
86 y(0),
87 id(MouseButton::None),
88 code(_code),
89 key(_key)
90 {
91 }
92
93 IBNotifyItemData(size_t _index, NotifyItem _notify, KeyCode _code) :
94 index(_index),
95 notify(_notify),
96 x(0),
97 y(0),
98 id(MouseButton::None),
99 code(_code),
100 key(KeyCode::None)
101 {
102 }
103
105 size_t index;
109 int x;
111 int y;
118 };
119
120} // namespace MyGUI
121
122#endif // MYGUI_ITEM_INFO_H_
#define MYGUI_EXPORT
const size_t ITEM_NONE
Definition: MyGUI_Macros.h:17
unsigned int Char
Definition: MyGUI_Types.h:49
IBDrawItemInfo(size_t _index, size_t _select, size_t _active, size_t _accept, size_t _refuse, bool _update, bool _drag)
IBNotifyItemData(size_t _index, NotifyItem _notify, int _x, int _y, MouseButton _id)
IBNotifyItemData(size_t _index, NotifyItem _notify, KeyCode _code, Char _key)
IBNotifyItemData(size_t _index, NotifyItem _notify, KeyCode _code)