KeyEvent (object)¶
バージョン 1.12.0 で追加.
KeyEvent object is used to propagate keyboard events into the Manipulation system from the host application.
参考
Members¶
| Host | host | The Host object providing a method to query data about the host and propagate data back to the host. |
| Viewport_Virtual | viewport | The viewport that was in focus when the event was generated. |
| EventType | eventType | The id specifying the type of event. |
| Boolean | accepted | A boolean flag indicating that the event has been accepted, and no should not be handled by other handlers or the host DCC application. |
| Boolean | redrawAllViewportsIfAccepted | A boolean flag indicating if all viewports must be redrawn. If false, only event’s viewport must be redrawn. |
| ModiferKey | modifiers | The keyboard modifier keys that were held when the event occurred. |
| String | dfgToolPath | Path of the DFG node containing the tool. Uses to propagate the manipulated value throuht ports. |
| UInt32 | count | The number of keys involved in this event. |
| Boolean | isAutoRepeat | True if this event comes from an auto-repeating key. Returns false if it comes from an initial key press. |
| Key | key | The code of the key that was pressed or released. |
Methods¶
| KeyEvent ( in EventType eventType, in ModiferKey modifiers, in UInt32 count, in Boolean isAutoRepeat, in Key key ) | |
| KeyEvent ( in KeyEvent other ) | |
| KeyEvent () | |
| KeyEvent | clone ? () |
Methods in detail¶
KeyEvent ( in EventType eventType, in ModiferKey modifiers, in UInt32 count, in Boolean isAutoRepeat, in Key key )
Constructor.
| eventType | The key event type (press, release ...). |
| modifiers | The key modifier. |
| count | The number of keys involved in this event. |
| isAutoRepeat | Set this event is auto-repeating. |
| key | The code of the key that was pressed or released. |
KeyEvent ( in KeyEvent other )
copy constructor
KeyEvent ()
default constructor
clone method