MyGUI 3.4.3
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 {
24 update(false),
25 select(false),
26 active(false),
27 drag(false),
28 drop_accept(false),
29 drop_refuse(false)
30 {
31 }
32
34 size_t _index,
35 size_t _select,
36 size_t _active,
37 size_t _accept,
38 size_t _refuse,
39 bool _update,
40 bool _drag) :
41 index(_index),
42 update(_update),
43 select(_index == _select),
44 active(_index == _active),
45 drag(_drag),
46 drop_accept(_index == _accept),
47 drop_refuse(_index == _refuse)
48 {
49 }
50
52 size_t index;
54 bool update;
56 bool select;
58 bool active;
60 bool drag;
65 };
66
68 {
76
77 IBNotifyItemData(size_t _index, NotifyItem _notify, int _x, int _y, MouseButton _id) :
78 index(_index),
79 notify(_notify),
80 x(_x),
81 y(_y),
82 id(_id),
83 code(KeyCode::None),
84 key(0)
85 {
86 }
87
88 IBNotifyItemData(size_t _index, NotifyItem _notify, KeyCode _code, Char _key) :
89 index(_index),
90 notify(_notify),
91 x(0),
92 y(0),
93 id(MouseButton::None),
94 code(_code),
95 key(_key)
96 {
97 }
98
99 IBNotifyItemData(size_t _index, NotifyItem _notify, KeyCode _code) :
100 index(_index),
101 notify(_notify),
102 x(0),
103 y(0),
104 id(MouseButton::None),
105 code(_code),
106 key(KeyCode::None)
107 {
108 }
109
111 size_t index;
115 int x;
117 int y;
124 };
125
126} // namespace MyGUI
127
128#endif // MYGUI_ITEM_INFO_H_
#define MYGUI_EXPORT
unsigned int Char
Definition MyGUI_Types.h:50
constexpr size_t ITEM_NONE
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)