Class: Layout::LayerInstance
Relationships | |
Inherits: | Object |
Overview
References an instance of a Layer
. A LayerInstance
provides access to the Entity
s that are on it, as well as their draw order. Group
s are not included in the list of Entity
s 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 LayerInstance
s are unique per Page
, while shared LayerInstance
s are shared across all Page
s of the Document
.
Instance Method Summary
-
#==(other) ⇒ Boolean
The #== method checks to see if the two
LayerInstance
s are equal. -
#definition ⇒ Layout::Layer
The #definition method returns the
Layer
of theLayerInstance
. - #entities ⇒ Layout::Entities
-
#entity_index(entity) ⇒ Integer
The #entity_index method returns the index of the
Entity
on theLayerInstance
. -
#reorder_entity(entity, index)
The #reorder_entity method moves the
Entity
to the specified index.
Instance Method Details
#==(other) ⇒ Boolean
The #==
method checks to see if the two LayerInstance
s 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.