Class: Layout::LayerInstance
- Inherits:
-
Object
- Object
- Layout::LayerInstance
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.
↑ #definition ⇒ Layout::Layer
The #definition method returns the Layout::Layer of the Layout::LayerInstance.
↑ #entities ⇒ Layout::Entities
The #entities method returns the Entities on the Layout::LayerInstance.
↑ #entity_index(entity) ⇒ Integer
The #entity_index method returns the index of the Entity on the Layout::LayerInstance.
↑ #reorder_entity(entity, index) ⇒ Object
The #reorder_entity method moves the Entity to the specified index.