32#include "../../Core/Math/point.h"
33#include "../../Display/Window/keys.h"
65 const std::string &
text()
const {
return _text; }
85 int _repeat_count = 0;
88 bool _alt_down =
false;
89 bool _shift_down =
false;
90 bool _ctrl_down =
false;
91 bool _cmd_down =
false;
Base class for events being dispatched through the view hiarchy.
Definition UI/Events/event.h:48
Keyboard key event.
Definition key_event.h:48
Pointf pointer_pos(View *view) const
Cursor position returned in local content coordinates for the view specified.
KeyEvent(KeyEventType type, Key key, int repeat_count, const std::string &text, const Pointf &pointer_pos, bool alt_down, bool shift_down, bool ctrl_down, bool cmd_down)
Definition key_event.h:50
int repeat_count() const
Key press repeat counter for key being held down.
Definition key_event.h:62
KeyEventType type() const
Key event type.
Definition key_event.h:56
Key key() const
Key relevant for the event.
Definition key_event.h:59
bool ctrl_down() const
True if the control key was down.
Definition key_event.h:77
bool alt_down() const
True if the alt key was down.
Definition key_event.h:71
const std::string & text() const
Unicode characters generated by this event.
Definition key_event.h:65
bool shift_down() const
True if the shift key was down.
Definition key_event.h:74
bool cmd_down() const
True if the command key was down.
Definition key_event.h:80
2D (x,y) point structure - Float
Definition point.h:72
View for an area of the user interface.
Definition view.h:66
KeyEventType
Keyboard key event type.
Definition key_event.h:40
Key
Enumeration of keyboard keys recognized on ClanLib.
Definition keys.h:38