VCV Rack API v2
Loading...
Searching...
No Matches
rack::widget::Widget::SelectKeyEvent Struct Reference

Occurs when a key is pressed, released, or repeated while a Widget is selected. More...

#include <Widget.hpp>

Inheritance diagram for rack::widget::Widget::SelectKeyEvent:
[legend]
Collaboration diagram for rack::widget::Widget::SelectKeyEvent:
[legend]

Additional Inherited Members

- Public Member Functions inherited from rack::widget::BaseEvent
void stopPropagating () const
 Prevents the event from being handled by more Widgets.
 
bool isPropagating () const
 
void setTarget (Widget *w) const
 Tells the event handler that a particular Widget consumed the event.
 
WidgetgetTarget () const
 
void consume (Widget *w) const
 Sets the target Widget and stops propagating.
 
void unconsume () const
 
bool isConsumed () const
 
- Public Attributes inherited from rack::widget::BaseEvent
EventContextcontext = NULL
 
- Public Attributes inherited from rack::widget::Widget::KeyBaseEvent
int key
 The key corresponding to what it would be called in its position on a QWERTY US keyboard.
 
int scancode
 Platform-dependent "software" key code.
 
std::string keyName
 String containing the lowercase key name, if it produces a printable character.
 
int action
 The type of event occurring with the key.
 
int mods
 Bitwise OR of key modifiers, such as Ctrl or Shift.
 

Detailed Description

Occurs when a key is pressed, released, or repeated while a Widget is selected.

Must consume to prevent HoverKey from being triggered.


The documentation for this struct was generated from the following file: