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;
Key
Enumeration of keyboard keys recognized on ClanLib.
Definition: keys.h:39
const std::string & text() const
Unicode characters generated by this event.
Definition: key_event.h:65
KeyEventType type() const
Key event type.
Definition: key_event.h:56
bool ctrl_down() const
True if the control key was down.
Definition: key_event.h:77
2D (x,y) point structure - Float
Definition: point.h:73
Pointf pointer_pos(View *view) const
Cursor position returned in local content coordinates for the view specified.
int repeat_count() const
Key press repeat counter for key being held down.
Definition: key_event.h:62
bool cmd_down() const
True if the command key was down.
Definition: key_event.h:80
View for an area of the user interface.
Definition: view.h:62
Key key() const
Key relevant for the event.
Definition: key_event.h:59
Base class for events being dispatched through the view hiarchy.
Definition: UI/Events/event.h:48
KeyEventType
Keyboard key event type.
Definition: key_event.h:40
bool alt_down() const
True if the alt key was down.
Definition: key_event.h:71
bool shift_down() const
True if the shift key was down.
Definition: key_event.h:74
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
Keyboard key event.
Definition: key_event.h:48