Class: Sketchup::OverlaysManager
- Inherits:
-
Object
- Object
- Sketchup::OverlaysManager
- Includes:
- Enumerable
- Defined in:
- lib/sketchup-api-stubs/stubs/Sketchup/OverlaysManager.rb
Overview
An overlay added to a model is invalidated once it’s removed from the model. It cannot be re-added or added to another model. Create another unique instance for that.
Contains the registered overlays for a model along with methods to manage them.
A model can not have multiple overlays with the same id.
Instance Method Summary collapse
- #[](index) ⇒ Sketchup::Overlay (also: #at)
-
#add(service) ⇒ Boolean
false
if an overlay with the same id already exists. - #each {|overlay| ... } ⇒ nil
- #remove(service) ⇒ Boolean
- #size ⇒ Integer (also: #length)
Instance Method Details
#[](index) ⇒ Sketchup::Overlay Also known as: at
41 42 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/OverlaysManager.rb', line 41 def [](index) end |
#add(service) ⇒ Boolean
Returns false
if an overlay with the same id already exists.
63 64 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/OverlaysManager.rb', line 63 def add(service) end |
#each {|overlay| ... } ⇒ nil
79 80 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/OverlaysManager.rb', line 79 def each end |
#remove(service) ⇒ Boolean
100 101 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/OverlaysManager.rb', line 100 def remove(service) end |
#size ⇒ Integer Also known as: length
112 113 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/OverlaysManager.rb', line 112 def size end |