#include <keyboardevent.h>
|
| KeyboardEvent (IvwKey key=IvwKey::Unknown, KeyState state=KeyState::Press, KeyModifiers modifiers=KeyModifiers(flags::empty), uint32_t nativeVirtualKey=0, const std::string &utfText=u8"") |
|
| KeyboardEvent (const KeyboardEvent &rhs)=default |
|
KeyboardEvent & | operator= (const KeyboardEvent &that)=default |
|
virtual KeyboardEvent * | clone () const override |
|
KeyState | state () const |
|
void | setState (KeyState state) |
|
virtual IvwKey | key () const |
|
void | setKey (IvwKey key) |
|
uint32_t | getNativeVirtualKey () const |
|
void | setNativeVirtualKey (uint32_t key) |
|
std::string | text () const |
|
void | setText (const std::string &text) |
|
virtual uint64_t | hash () const override |
|
virtual void | print (std::ostream &ss) const override |
|
| InteractionEvent (KeyModifiers modifiers=KeyModifiers(flags::empty)) |
|
| InteractionEvent (const InteractionEvent &rhs)=default |
|
InteractionEvent & | operator= (const InteractionEvent &that)=default |
|
KeyModifiers | modifiers () const |
|
void | setModifiers (KeyModifiers modifiers) |
|
std::string | modifierNames () const |
|
void | setToolTip (const std::string &tooltip) const |
|
void | setToolTipCallback (ToolTipCallback callback) |
|
const ToolTipCallback & | getToolTipCallback () const |
|
virtual bool | shouldPropagateTo (Inport *inport, Processor *processor, Outport *source) |
|
void | markAsUsed () |
|
bool | hasBeenUsed () const |
|
void | markAsUnused () |
|
void | markAsVisited (Processor *) |
|
void | markAsVisited (Event &) |
|
bool | hasVisitedProcessor (Processor *) const |
|
const std::vector< Processor * > & | getVisitedProcessors () const |
|
template<typename EventType > |
EventType * | getAs () |
|
template<typename EventType > |
const EventType * | getAs () const |
|
|
static constexpr uint64_t | chash () |
|
|
using | ToolTipCallback = std::function< void(const std::string &)> |
|
| Event (const Event &rhs)=default |
|
Event & | operator= (const Event &that)=default |
|
KeyModifiers | modifiers_ |
|
ToolTipCallback | tooltip_ |
|
Generated when keys are pressed and released.
◆ KeyboardEvent()
inviwo::KeyboardEvent::KeyboardEvent |
( |
IvwKey |
key = IvwKey::Unknown , |
|
|
KeyState |
state = KeyState::Press , |
|
|
KeyModifiers |
modifiers = KeyModifiers(flags::empty) , |
|
|
uint32_t |
nativeVirtualKey = 0 , |
|
|
const std::string & |
utfText = u8"" |
|
) |
| |
- Parameters
-
key | Enumerate representation of pressed key |
state | Pressed of released key |
modifiers | Modifier keys, e.g. shift, held while pressing key |
nativeVirtualKey | Platform dependent scancode of pressed key |
utfText | Unicode representation of pressed keys |
The documentation for this class was generated from the following files:
- keyboardevent.h
- keyboardevent.cpp