Class: Layout::Layer
- Inherits:
-
Object
- Object
- Layout::Layer
Overview
This is the interface to a LayOut Layer Definition. A layer definition specifies the document-wide information about a layer. To access the entities on a layer for a given page, use LayerInstance.
Constant Summary #
- Layout::Layer::UNSHARELAYERACTION_CLEAR
- Layout::Layer::UNSHARELAYERACTION_COPYTOONEPAGE
- Layout::Layer::UNSHARELAYERACTION_COPYTOALLPAGES
- Layout::Layer::SHARELAYERACTION_CLEAR
- Layout::Layer::SHARELAYERACTION_KEEPONEPAGE
- Layout::Layer::SHARELAYERACTION_MERGEALLPAGES
Instance Method Summary # collapse
- #==(other) ⇒ Boolean
- #document ⇒ Layout::Document
-
#layer_instance(page) ⇒ Object
The #layer_instance method returns a LayerInstance from the Layer.
- #locked=(locked) ⇒ Object
- #locked? ⇒ Boolean
- #name ⇒ String
- #name=(name) ⇒ Object
-
#set_nonshared(page, unshare_action) ⇒ Object
The #set_nonshared method sets the Layer to non-shared.
-
#set_shared(page, share_action) ⇒ Object
The #set_shared method sets the Layer to shared.
- #shared? ⇒ Boolean
Instance Method Details
↑ #==(other) ⇒ Boolean
The #== method checks to see if the two Layout::Layers 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 Layout::Layer belongs to.
↑ #layer_instance ⇒ Layout::LayerInstance #layer_instance(page) ⇒ Layout::LayerInstance
The #layer_instance method returns a Layout::LayerInstance from the Layout::Layer. If the Layout::Layer is shared, a Page does not have to be provided.
↑ #locked=(locked) ⇒ Object
The #locked= method sets whether the Layout::Layer is locked.
↑ #locked? ⇒ Boolean
The #locked? method returns whether the Layout::Layer is locked.
↑ #name ⇒ String
The #name method returns the name of the Layout::Layer.
↑ #name=(name) ⇒ Object
The #name= sets the name of the Layout::Layer.
↑ #set_nonshared(page, unshare_action) ⇒ Object
The #set_nonshared method sets the Layout::Layer to non-shared.
The unshare action can be one of the following values:
Layout::Layer::UNSHARELAYERACTION_CLEAR
Layout::Layer::UNSHARELAYERACTION_COPYTOONEPAGE
Layout::Layer::UNSHARELAYERACTION_COPYTOALLPAGES
↑ #set_shared(page, share_action) ⇒ Object
The #set_shared method sets the Layout::Layer to shared.
The share action can be one of the following values:
Layout::Layer::SHARELAYERACTION_CLEAR
Layout::Layer::SHARELAYERACTION_KEEPONEPAGE
Layout::Layer::SHARELAYERACTION_MERGEALLPAGES
↑ #shared? ⇒ Boolean
The #shared? method returns whether the Layout::Layer is shared.