Class: Layout::Page
Relationships | |
Inherits: | Object |
Overview
Class for a single page in a LayOut document.
Instance Attribute Summary
-
#in_presentation=(in_presentation)
rw
The #in_presentation= method sets whether the
Page
is included in presentations. -
#in_presentation? ⇒ Boolean
rw
The #in_presentation? method returns whether the
Page
is included in presentations. -
#name ⇒ String
rw
The #name method returns the name of the
Page
. -
#name=(name)
rw
The #name= method sets the name of a page.
Instance Method Summary
-
#==(other) ⇒ Boolean
The #== method checks to see if the two
Page
s are equal. - #document ⇒ Layout::Document
- #entities ⇒ Layout::Entities
-
#layer_instances ⇒ Array<Layout::LayerInstance>
The #layer_instances method returns an array of the
LayerInstance
s for thePage
. -
#layer_visible?(layer) ⇒ Boolean
The #layer_visible? method returns whether a
Layer
is visible on thePage
. -
#nonshared_entities ⇒ Layout::Entities
The #nonshared_entities method returns the
Entities
unique to thePage
. -
#set_layer_visibility(layer, visible) ⇒ Boolean
The #set_layer_visibility method sets whether a
Layer
is visible on thePage
.
Instance Attribute Details
#in_presentation=(in_presentation) (rw)
The #in_presentation=
method sets whether the Page
is included in presentations.
#in_presentation? ⇒ Boolean
(rw)
The #in_presentation?
method returns whether the Page
is included in presentations.
#name ⇒ String (rw)
The #name
method returns the name of the Page
.
#name=(name) (rw)
The #name=
method sets the name of a page.
Instance Method Details
#==(other) ⇒ Boolean
The #==
method checks to see if the two Page
s are equal. This checks whether the Ruby Objects are pointing to the same internal object.
#document ⇒ Layout::Document
The #document
method returns the Document
that the Page
belongs to.
#entities ⇒ Layout::Entities
The #entities
method returns all Entity
s that are on the Page
. This is the equivalent of iterating over all LayerInstance
s and using Layout::LayerInstance.entities
.
#layer_instances ⇒ Array<Layout::LayerInstance>
The #layer_instances
method returns an array of the LayerInstance
s for the Page
.
#layer_visible?(layer) ⇒ Boolean
The #layer_visible?
method returns whether a Layer
is visible on the Page
.
#set_layer_visibility(layer, visible) ⇒ Boolean
The #set_layer_visibility
method sets whether a Layer
is visible on the Page
.