BaseSliderTool (object)¶
Members¶
Boolean | enabled | Handler is enabled. |
Key | enableKey | Enable key. |
HandlerExclusivity | handlerExclusivity | Handler exclusivity. |
Boolean | isIndependent | HandlerExclusivity local override. |
Boolean | takeAllEvents | It true, the handler takes all the events. |
Boolean | alwaysEnabled | It true, the handler takes all the events. |
Boolean | isOwnedByDispatcher | Checks if the handler is owned by a handlerDispatcher. In most of the cases, the dispatcher owns the handlers. However, it’s not true in DFG graphs where the handlers are owns by the nodes. |
Ref<HandlerDispatcher> | dispatcher | Reference to the dispatcher. |
ToolTarget | target | Tool target. |
Boolean | performing | True if the tool is performing an action. |
Float32 | value | Slider value. |
Boolean | isVertical | Translation axis, vertical or horizontal. |
Vec3 | mouseNormalizedPos | Normalized mouse position. |
Float32 | translationSpeedFactor | Translation speed factor. |
Methods¶
BaseSliderTool ( in BaseSliderTool other ) | |
BaseSliderTool () | |
BaseSliderTool | clone ? () |
Boolean | getOrientation ? () |
init ! ( in SliderTarget target, in Float32 translationSpeedFactor, in Boolean isVertical, in Key enableKey, in HandlerExclusivity exclusivity, in Boolean isOwnedByDisatcher ) | |
move ! ( io MouseEvent mouseEvent ) | |
onEvent ! ( io Event event ) | |
press ! ( io MouseEvent mouseEvent ) | |
setOrientation ! ( in Boolean isVertical ) | |
updateFromTarget ! () | |
valueChanged ! ( in Float32 delta ) |
Methods in detail¶
BaseSliderTool ( in BaseSliderTool other )
copy constructor
default constructor
BaseSliderTool BaseSliderTool.clone? ()
clone method
Boolean BaseSliderTool.getOrientation? ()
Gets the slider’s orientation.
BaseSliderTool.init! ( in SliderTarget target, in Float32 translationSpeedFactor, in Boolean isVertical, in Key enableKey, in HandlerExclusivity exclusivity, in Boolean isOwnedByDisatcher )
Initializes a BaseSliderTool, by default independent.
target | Tool target. |
translationSpeedFactor | Speed factor. |
isVertical | If true, vertical orientation. |
enableKey | Key to enable to tool. |
exclusivity | Handler exclusivity. |
isOwnedByDispatcher | If true, the handler is owned by the dispatcher. |
BaseSliderTool.move! ( io MouseEvent mouseEvent )
Implementation of Tool.
BaseSliderTool.onEvent! ( io Event event )
Implementation of EventHandler.
BaseSliderTool.press! ( io MouseEvent mouseEvent )
Implementation of Tool.
BaseSliderTool.setOrientation! ( in Boolean isVertical )
Sets the slider’s orientation.
isVertical | If true, vertical orientation. |
BaseSliderTool.updateFromTarget! ()
Implementation of Tool. To override.
BaseSliderTool.valueChanged! ( in Float32 delta )
Implementation of SliderTool. To override.