MyGUI
3.4.3
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
MyGUIEngine
include
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
15
namespace
MyGUI
16
{
17
18
// структура информации об отображении элемента
20
struct
MYGUI_EXPORT
IBDrawItemInfo
21
{
22
IBDrawItemInfo
() :
23
index
(
ITEM_NONE
),
24
update
(false),
25
select
(false),
26
active
(false),
27
drag
(false),
28
drop_accept
(false),
29
drop_refuse
(false)
30
{
31
}
32
33
IBDrawItemInfo
(
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
;
62
bool
drop_accept
;
64
bool
drop_refuse
;
65
};
66
67
struct
MYGUI_EXPORT
IBNotifyItemData
68
{
69
enum
NotifyItem
70
{
71
MousePressed
,
72
MouseReleased
,
73
KeyPressed
,
74
KeyReleased
75
};
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
;
113
NotifyItem
notify
;
115
int
x
;
117
int
y
;
119
MouseButton
id
;
121
KeyCode
code
;
123
Char
key
;
124
};
125
126
}
// namespace MyGUI
127
128
#endif
// MYGUI_ITEM_INFO_H_
MyGUI_KeyCode.h
MyGUI_MouseButton.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition
MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI_Types.h
MyGUI
Definition
MyGUI_ActionController.h:15
MyGUI::Char
unsigned int Char
Definition
MyGUI_Types.h:50
MyGUI::ITEM_NONE
constexpr size_t ITEM_NONE
Definition
MyGUI_Macros.h:19
MyGUI::IBDrawItemInfo::index
size_t index
Definition
MyGUI_IBItemInfo.h:52
MyGUI::IBDrawItemInfo::drop_refuse
bool drop_refuse
Definition
MyGUI_IBItemInfo.h:64
MyGUI::IBDrawItemInfo::select
bool select
Definition
MyGUI_IBItemInfo.h:56
MyGUI::IBDrawItemInfo::update
bool update
Definition
MyGUI_IBItemInfo.h:54
MyGUI::IBDrawItemInfo::drag
bool drag
Definition
MyGUI_IBItemInfo.h:60
MyGUI::IBDrawItemInfo::drop_accept
bool drop_accept
Definition
MyGUI_IBItemInfo.h:62
MyGUI::IBDrawItemInfo::IBDrawItemInfo
IBDrawItemInfo()
Definition
MyGUI_IBItemInfo.h:22
MyGUI::IBDrawItemInfo::active
bool active
Definition
MyGUI_IBItemInfo.h:58
MyGUI::IBDrawItemInfo::IBDrawItemInfo
IBDrawItemInfo(size_t _index, size_t _select, size_t _active, size_t _accept, size_t _refuse, bool _update, bool _drag)
Definition
MyGUI_IBItemInfo.h:33
MyGUI::IBNotifyItemData::y
int y
Definition
MyGUI_IBItemInfo.h:117
MyGUI::IBNotifyItemData::key
Char key
Definition
MyGUI_IBItemInfo.h:123
MyGUI::IBNotifyItemData::IBNotifyItemData
IBNotifyItemData(size_t _index, NotifyItem _notify, int _x, int _y, MouseButton _id)
Definition
MyGUI_IBItemInfo.h:77
MyGUI::IBNotifyItemData::id
MouseButton id
Definition
MyGUI_IBItemInfo.h:119
MyGUI::IBNotifyItemData::IBNotifyItemData
IBNotifyItemData(size_t _index, NotifyItem _notify, KeyCode _code, Char _key)
Definition
MyGUI_IBItemInfo.h:88
MyGUI::IBNotifyItemData::code
KeyCode code
Definition
MyGUI_IBItemInfo.h:121
MyGUI::IBNotifyItemData::NotifyItem
NotifyItem
Definition
MyGUI_IBItemInfo.h:70
MyGUI::IBNotifyItemData::KeyReleased
@ KeyReleased
Definition
MyGUI_IBItemInfo.h:74
MyGUI::IBNotifyItemData::KeyPressed
@ KeyPressed
Definition
MyGUI_IBItemInfo.h:73
MyGUI::IBNotifyItemData::MousePressed
@ MousePressed
Definition
MyGUI_IBItemInfo.h:71
MyGUI::IBNotifyItemData::MouseReleased
@ MouseReleased
Definition
MyGUI_IBItemInfo.h:72
MyGUI::IBNotifyItemData::notify
NotifyItem notify
Definition
MyGUI_IBItemInfo.h:113
MyGUI::IBNotifyItemData::index
size_t index
Definition
MyGUI_IBItemInfo.h:111
MyGUI::IBNotifyItemData::IBNotifyItemData
IBNotifyItemData(size_t _index, NotifyItem _notify, KeyCode _code)
Definition
MyGUI_IBItemInfo.h:99
MyGUI::IBNotifyItemData::x
int x
Definition
MyGUI_IBItemInfo.h:115
MyGUI::KeyCode
Definition
MyGUI_KeyCode.h:16
MyGUI::MouseButton
Definition
MyGUI_MouseButton.h:16
Generated by
1.13.2