Class: Layout::Layer
- Inherits:
-
Object
- Object
- Layout::Layer
Overview
Layer definition. Objects on shared layers are displayed on every page; those on locked or hidden layers cannot be modified.
Constants # collapse
- Layout::Layer::SHARELAYERACTION_CLEAR
#set_shared: Clear the objects on the layer first.
- Layout::Layer::SHARELAYERACTION_KEEPONEPAGE
#set_shared: Keep objects only on the specified page.
- Layout::Layer::SHARELAYERACTION_MERGEALLPAGES
#set_shared: Merge objects from all pages.
- Layout::Layer::UNSHARELAYERACTION_CLEAR
#set_nonshared: Clear the objects on the layer first.
- Layout::Layer::UNSHARELAYERACTION_COPYTOONEPAGE
#set_nonshared: Place the object on the specified page.
- Layout::Layer::UNSHARELAYERACTION_COPYTOALLPAGES
#set_nonshared: Copy the object to every page.
Instance Method Summary # collapse
-
#name ⇒ String
Layer name.
-
#name= ⇒ String
Rename (non-empty, up to 200 characters), one-step undo.
-
#locked? ⇒ Boolean
Returns whether it is locked.
-
#locked= ⇒ Boolean
Lock or unlock, with a single undo step.
-
#shared? ⇒ Boolean
Whether shared (displayed on every page).
-
#set_shared(page, kind) ⇒ Layout::Layer
Change to shared layer, one step undo.
-
#set_nonshared(page, kind) ⇒ Layout::Layer
Change to a regular layer, with one-step undo.
-
#layer_instance(page = nil) ⇒ Layout::LayerInstance
An instance of the layer on the page.
-
#document ⇒ Layout::Document
The owning document.
-
#== ⇒ Boolean
Does the same layer apply.
-
#eql?(other) ⇒ Boolean
Like #==, used as a key in a Hash.
-
#hash ⇒ Integer
Hash value consistent with #eql?.
-
#inspect ⇒ String
A brief description.
Instance Method Details
layer.name ⇒ String
Layer name.
layer.name = name
Rename (non-empty, up to 200 characters), one-step undo.
layer.locked? ⇒ Boolean
Returns whether it is locked.
layer.locked = locked
Lock or unlock, with a single undo step.
layer.layer_instance(page = nil) ⇒ Layout::LayerInstance
An instance of the layer on the page.
layer.document ⇒ Layout::Document
The owning document.
layer == other ⇒ Boolean
Does the same layer apply.
layer.eql?(other) ⇒ Boolean
Like #==, used as a key in a Hash.
layer.hash ⇒ Integer
Hash value consistent with #eql?.
layer.inspect ⇒ String
A brief description.