Class: ModraUp::ToolsObserver
- Inherits:
-
Object
- Object
- ModraUp::ToolsObserver
Overview
Tools Observer. Registered with ModraUp::Tools#add_observer. The onActiveToolChanged parameter is (tools, tool_name, tool_id) (consistent with SketchUp).
Instance Method Summary # collapse
-
#onActiveToolChanged(tools, tool_name, tool_id) ⇒ nil
Called when the active tool changes. The built-in move tool has the name "MoveTool" and id 21048.
-
#onToolStateChanged(tools, tool_name, tool_id, tool_state) ⇒ nil
Tool gesture state. 1 for start, 0 for end (this pair of values depends on dynamic component scaling/moving).
-
#onToolListChanged(tools) ⇒ nil
Tool list changed. The current host does not dispatch this.
Instance Method Details
observer.onActiveToolChanged(tools, tool_name, tool_id) ⇒ nil
Called when the active tool changes. The built-in move tool has the name "MoveTool" and id 21048.
observer.onToolStateChanged(tools, tool_name, tool_id, tool_state) ⇒ nil
Tool gesture state. 1 for start, 0 for end (this pair of values depends on dynamic component scaling/moving).
observer.onToolListChanged(tools) ⇒ nil
Tool list changed. The current host does not dispatch this.