Class: Sketchup::Tools
- Inherits:
-
Object
- Object
- Sketchup::Tools
- Defined in:
- lib/sketchup-api-stubs/stubs/Sketchup/Tools.rb
Overview
The Tools class contains methods to manipulate a collection of SketchUp tools. You access this collection by calling the Model.tools method.
Instance Method Summary collapse
-
#active_tool ⇒ Object?
The #active_tool method is used to obtain the active Ruby tool.
-
#active_tool_id ⇒ Object
The active_tool_id method is used to retrieve the active tool’s id.
-
#active_tool_name ⇒ Object
The active_tool_name method is used to retrieve the active tool’s name.
-
#add_observer(observer) ⇒ Object
The add_observer method is used to add an observer to the current object.
-
#model ⇒ Object
The model method is used to get the model associated with this tools object.
-
#pop_tool ⇒ Object
The pop_tool method is used to pop the last pushed tool on the tool stack.
-
#push_tool(tool) ⇒ Object
The push_tool method is used to push (aka activate) a user-defined tool.
-
#remove_observer(observer) ⇒ Object
The remove_observer method is used to remove an observer from the current object.
Instance Method Details
#active_tool ⇒ Object?
The #active_tool method is used to obtain the active Ruby tool.
24 25 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Tools.rb', line 24 def active_tool end |
#active_tool_id ⇒ Object
The active_tool_id method is used to retrieve the active tool’s id.
36 37 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Tools.rb', line 36 def active_tool_id end |
#active_tool_name ⇒ Object
The active_tool_name method is used to retrieve the active tool’s name.
52 53 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Tools.rb', line 52 def active_tool_name end |
#add_observer(observer) ⇒ Object
The add_observer method is used to add an observer to the current object.
68 69 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Tools.rb', line 68 def add_observer(observer) end |
#model ⇒ Object
The model method is used to get the model associated with this tools object.
81 82 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Tools.rb', line 81 def model end |
#pop_tool ⇒ Object
The pop_tool method is used to pop the last pushed tool on the tool stack.
95 96 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Tools.rb', line 95 def pop_tool end |
#push_tool(tool) ⇒ Object
The push_tool method is used to push (aka activate) a user-defined tool. See the Tool interface for details on creating your own SketchUp tool.
111 112 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Tools.rb', line 111 def push_tool(tool) end |
#remove_observer(observer) ⇒ Object
The remove_observer method is used to remove an observer from the current object.
129 130 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Tools.rb', line 129 def remove_observer(observer) end |