Keyboard key event.
More...
#include <key_event.h>
◆ KeyEvent()
clan::KeyEvent::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 |
|
) |
| |
|
inline |
◆ alt_down()
bool clan::KeyEvent::alt_down |
( |
| ) |
const |
|
inline |
True if the alt key was down.
◆ cmd_down()
bool clan::KeyEvent::cmd_down |
( |
| ) |
const |
|
inline |
True if the command key was down.
◆ ctrl_down()
bool clan::KeyEvent::ctrl_down |
( |
| ) |
const |
|
inline |
True if the control key was down.
◆ key()
Key clan::KeyEvent::key |
( |
| ) |
const |
|
inline |
Key relevant for the event.
◆ pointer_pos()
Pointf clan::KeyEvent::pointer_pos |
( |
View * |
view | ) |
const |
Cursor position returned in local content coordinates for the view specified.
◆ repeat_count()
int clan::KeyEvent::repeat_count |
( |
| ) |
const |
|
inline |
Key press repeat counter for key being held down.
◆ shift_down()
bool clan::KeyEvent::shift_down |
( |
| ) |
const |
|
inline |
True if the shift key was down.
◆ text()
const std::string& clan::KeyEvent::text |
( |
| ) |
const |
|
inline |
Unicode characters generated by this event.
◆ type()
The documentation for this class was generated from the following file: