7
This file is part of MyGUI.
9
MyGUI is free software: you can redistribute it and/or modify
10
it under the terms of the GNU Lesser General Public License as published by
11
the Free Software Foundation, either version 3 of the License, or
12
(at your option) any later version.
14
MyGUI is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU Lesser General Public License for more details.
19
You should have received a copy of the GNU Lesser General Public License
20
along with MyGUI. If not, see <http://www.gnu.org/licenses/>.
22
#ifndef __MYGUI_ITEM_INFO_H__
23
#define __MYGUI_ITEM_INFO_H__
25
#include "MyGUI_Prerequest.h"
30
// структура информации об отображении элемента
31
/** Info about ItemBox item*/
32
struct MYGUI_EXPORT IBDrawItemInfo
46
IBDrawItemInfo(size_t _index, size_t _select, size_t _active, size_t _accept, size_t _refuse, bool _update, bool _drag) :
49
select(_index == _select),
50
active(_index == _active),
52
drop_accept(_index == _accept),
53
drop_refuse(_index == _refuse)
57
/** Index of element */
59
/** State and interdan data changed */
61
/** Is widget selected */
63
/** Is widget active */
65
/** Is widget able to be dragged */
67
/** Is widget accepting drop */
69
/** Is widget refuseing drop */
73
struct MYGUI_EXPORT IBNotifyItemData
83
IBNotifyItemData(size_t _index, NotifyItem _notify, int _x, int _y, MouseButton _id) :
94
IBNotifyItemData(size_t _index, NotifyItem _notify, KeyCode _code, Char _key) :
99
id(MouseButton::None),
105
IBNotifyItemData(size_t _index, NotifyItem _notify, KeyCode _code) :
110
id(MouseButton::None),
120
/** If Mouse* notify type - mouse x position, else 0 */
122
/** If Mouse* notify type - mouse y position, else 0 */
124
/** If Mouse* notify type - mouse button id position, else 0 */
126
/** If Key* notify type - key code, else 0 */
128
/** If Key* notify type - mouse button id position, else 0 */
134
#endif // __MYGUI_ITEM_INFO_H__
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)
7
#ifndef __MYGUI_ITEM_INFO_H__
8
#define __MYGUI_ITEM_INFO_H__
10
#include "MyGUI_Prerequest.h"
15
// структура информации об отображении элемента
16
/** Info about ItemBox item*/
17
struct MYGUI_EXPORT IBDrawItemInfo
31
IBDrawItemInfo(size_t _index, size_t _select, size_t _active, size_t _accept, size_t _refuse, bool _update, bool _drag) :
34
select(_index == _select),
35
active(_index == _active),
37
drop_accept(_index == _accept),
38
drop_refuse(_index == _refuse)
42
/** Index of element */
44
/** State and interdan data changed */
46
/** Is widget selected */
48
/** Is widget active */
50
/** Is widget able to be dragged */
52
/** Is widget accepting drop */
54
/** Is widget refuseing drop */
58
struct MYGUI_EXPORT IBNotifyItemData
68
IBNotifyItemData(size_t _index, NotifyItem _notify, int _x, int _y, MouseButton _id) :
79
IBNotifyItemData(size_t _index, NotifyItem _notify, KeyCode _code, Char _key) :
84
id(MouseButton::None),
90
IBNotifyItemData(size_t _index, NotifyItem _notify, KeyCode _code) :
95
id(MouseButton::None),
105
/** If Mouse* notify type - mouse x position, else 0 */
107
/** If Mouse* notify type - mouse y position, else 0 */
109
/** If Mouse* notify type - mouse button id position, else 0 */
111
/** If Key* notify type - key code, else 0 */
113
/** If Key* notify type - mouse button id position, else 0 */
119
#endif // __MYGUI_ITEM_INFO_H__