Class: Layout::LayerInstance
| Relationships | |
| Inherits: | Object |
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
-
#==(other) ⇒ Boolean
The #== method checks to see if the two
LayerInstances are equal. -
#definition ⇒ Layout::Layer
The #definition method returns the
Layerof theLayerInstance. - #entities ⇒ Layout::Entities
-
#entity_index(entity) ⇒ Integer
The #entity_index method returns the index of the
Entityon theLayerInstance. -
#reorder_entity(entity, index)
The #reorder_entity method moves the
Entityto the specified index.
Instance Method Details
#==(other) ⇒ Boolean
The #== method checks to see if the two LayerInstances are equal.
This checks whether the Ruby Objects are pointing to the same internal
object.
#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)
The #reorder_entity method moves the Entity to the specified
index.