Boost.UI
User Interface Boost library
|
Go to the documentation of this file.
8 #ifndef BOOST_UI_EVENT_HPP
9 #define BOOST_UI_EVENT_HPP
13 #ifdef BOOST_HAS_PRAGMA_ONCE
19 #include <boost/function.hpp>
27 template <
class NativeEvent,
class UIEvent>
28 class event_functor_event;
70 template <
class NativeEvent,
class UIEvent>
71 friend class native::event_functor_event;
81 keyboard_state() : m_ctrl(
false), m_shift(
false), m_alt(
false), m_meta(
false) {}
84 bool ctrl()
const {
return m_ctrl; }
87 bool shift()
const {
return m_shift; }
90 bool alt()
const {
return m_alt; }
93 bool meta()
const {
return m_meta; }
102 template <
class NativeEvent,
class UIEvent>
103 friend class native::event_functor_event;
122 #ifndef BOOST_NO_CXX11_CHAR32_T
134 template <
class NativeEvent,
class UIEvent>
135 friend class native::event_functor_event;
159 bool left()
const {
return m_left; }
160 bool right()
const {
return m_right; }
172 template <
class NativeEvent,
class UIEvent>
173 friend class native::event_functor_event;
202 template <
class NativeEvent,
class UIEvent>
203 friend class native::event_functor_event;
210 #endif // BOOST_UI_EVENT_HPP
coord_type y() const
Returns y mouse coordinate relative to the parent widget client area.
Definition: event.hpp:153
2D point data structure with custom coordinates type
Definition: coord.hpp:119
bool right() const
Returns true if mouse button is pressed or was unpressed in this event.
Definition: event.hpp:160
bool ctrl() const
Returns true only if Control key is pressed.
Definition: event.hpp:84
coord_type delta_y() const
Returns wheel vertical move delta.
Definition: event.hpp:195
Event class that holds some index in container.
Definition: event.hpp:55
bool alt() const
Returns true only if Alt key is pressed.
Definition: event.hpp:90
Boost C++ libraries namespace.
Definition: window.hpp:19
int key_code() const
Returns associated key code.
Definition: event.hpp:119
coord_type delta_x() const
Returns wheel horizontal move delta.
Definition: event.hpp:192
Mouse event class that holds information about mouse when event was generated.
Definition: event.hpp:144
bool left() const
Returns true if mouse button is pressed or was unpressed in this event.
Definition: event.hpp:159
bool shift() const
Returns true only if Shift key is pressed.
Definition: event.hpp:87
Base class for all events.
Definition: event.hpp:37
bool vertical() const
Returns true only if wheel move is vertical.
Definition: event.hpp:189
basic_point< coord_type > point
2D point coordinates
Definition: coord.hpp:420
point pos() const
Returns mouse position relative to the parent widget client area.
Definition: event.hpp:156
int coord_type
Widget coordinates signed number type.
Definition: coord.hpp:412
coord_type x() const
Returns x mouse coordinate relative to the parent widget client area.
Definition: event.hpp:150
Mouse wheel event class.
Definition: event.hpp:180
Keyboard event class that holds information about keyboard when event was generated.
Definition: event.hpp:113
size_type index() const
Returns index of the associated item in the container.
Definition: event.hpp:64
index_type size_type
Integral type.
Definition: event.hpp:59
bool meta() const
Returns true only if Meta key is pressed.
Definition: event.hpp:93
bool horizontal() const
Returns true only if wheel move is horizontal.
Definition: event.hpp:186
Keyboard state class.
Definition: event.hpp:78
bool middle() const
Returns true if mouse button is pressed or was unpressed in this event.
Definition: event.hpp:161
char32_t get_char() const
Returns associated character.
Definition: event.hpp:127