Class: Layout::LayerInstance
- Inherits:
-
Object
- Object
- Layout::LayerInstance
- Defined in:
- lib/sketchup-api-stubs/stubs/Layout/LayerInstance.rb
Overview
References an instance of a Layer. A LayerInstance provides access to the Entitys that are on it, as well as their draw order. Groups are not included in the list of Entitys associated with a LayerInstance, since the group hierarchy has no effect on entity draw order. Each Page has one LayerInstance for each Layer in the Document. Non-shared LayerInstances are unique per Page, while shared LayerInstances are shared across all Pages of the Document.
Instance Method Summary collapse
-
#==(other) ⇒ Boolean
The #== method checks to see if the two LayerInstances are equal.
-
#definition ⇒ Layout::Layer
The #definition method returns the Layer of the LayerInstance.
-
#entities ⇒ Layout::Entities
The #entities method returns the Entities on the LayerInstance.
-
#entity_index(entity) ⇒ Integer
The #entity_index method returns the index of the Entity on the LayerInstance.
-
#reorder_entity(entity, index) ⇒ Object
The #reorder_entity method moves the Entity to the specified index.
Instance Method Details
#==(other) ⇒ Boolean
The #== method checks to see if the two Layout::LayerInstances are equal. This checks whether the Ruby Objects are pointing to the same internal object.
46 47 |
# File 'lib/sketchup-api-stubs/stubs/Layout/LayerInstance.rb', line 46 def ==(other) end |
#definition ⇒ Layout::Layer
The #definition method returns the Layout::Layer of the Layout::LayerInstance.
58 59 |
# File 'lib/sketchup-api-stubs/stubs/Layout/LayerInstance.rb', line 58 def definition end |
#entities ⇒ Layout::Entities
The #entities method returns the Entities on the Layout::LayerInstance.
74 75 |
# File 'lib/sketchup-api-stubs/stubs/Layout/LayerInstance.rb', line 74 def entities end |
#entity_index(entity) ⇒ Integer
The #entity_index method returns the index of the Entity on the Layout::LayerInstance.
97 98 |
# File 'lib/sketchup-api-stubs/stubs/Layout/LayerInstance.rb', line 97 def entity_index(entity) end |
#reorder_entity(entity, index) ⇒ Object
The #reorder_entity method moves the Entity to the specified index.
125 126 |
# File 'lib/sketchup-api-stubs/stubs/Layout/LayerInstance.rb', line 125 def reorder_entity(entity, index) end |