32 #include "../../Core/Math/point.h"
33 #include "../../Display/Window/keys.h"
51 _type(type), _key(key), _repeat_count(repeat_count), _text(text), _pointer_pos(pointer_pos), _alt_down(alt_down), _shift_down(shift_down), _ctrl_down(ctrl_down), _cmd_down(cmd_down)
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;
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:68
Keyboard key event.
Definition: key_event.h:47
bool ctrl_down() const
True if the control key was down.
Definition: key_event.h:77
Key
Enumeration of keyboard keys recognized on UICore.
Definition: keys.h:37
KeyEventType
Keyboard key event type.
Definition: key_event.h:39
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
const std::string & text() const
Unicode characters generated by this event.
Definition: key_event.h:65
Key key() const
Key relevant for the event.
Definition: key_event.h:59
Pointf pointer_pos(View *view) const
Cursor position returned in local content coordinates for the view specified.
Base class for events being dispatched through the view hiarchy.
Definition: event.h:47
bool shift_down() const
True if the shift key was down.
Definition: key_event.h:74
View for an area of the user interface.
Definition: view.h:68
KeyEventType type() const
Key event type.
Definition: key_event.h:56
bool alt_down() const
True if the alt key was down.
Definition: key_event.h:71
Definition: Application/application.h:35
int repeat_count() const
Key press repeat counter for key being held down.
Definition: key_event.h:62