MouseWheelEvent (object)¶
バージョン 1.12.0 で追加.
MouseWheelEvent object used to propagate mouse wheel events into the Manipulation system.
参考
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. |
MouseButton | buttons | The button state when the event was generated. The button state is a combination of MouseButton_LeftButton, MouseButton_RightButton, MouseButton_MidButton using the OR operator. For mouse move events, this is all buttons that are pressed down. For mouse press and double click events this includes the button that caused the event. For mouse release events this excludes the button that caused the event. |
Integer | delta | The distance that the wheel is rotated, in eighths of a degree. A positive value indicates that the wheel was rotated forwards away from the user; a negative value indicates that the wheel was rotated backwards toward the user. |
Vec2 | pos | The cursor position in pixels, relative to the viewport that received the event. |
Methods¶
MouseWheelEvent ( in EventType eventType, in ModiferKey modifiers, in MouseButton buttons, in Integer delta, in Vec2 pos, in Viewport_Virtual viewport ) | |
MouseWheelEvent ( in MouseWheelEvent other ) | |
MouseWheelEvent () | |
MouseWheelEvent | clone ? () |
Methods in detail¶
MouseWheelEvent ( in EventType eventType, in ModiferKey modifiers, in MouseButton buttons, in Integer delta, in Vec2 pos, in Viewport_Virtual viewport )
Constructor.
eventType | The mouse event type (wheel). |
modifiers | The key modifier. |
buttons | The button state. |
delta | The mouse wheel delta. |
pos | The mouse position in the viewport. |
viewport | The viewport from where the event has been emitted. |
MouseWheelEvent ( in MouseWheelEvent other )
copy constructor
default constructor
MouseWheelEvent MouseWheelEvent.clone? ()
clone method