Class: Layout::Layer
| Relationships | |
| Inherits: | Object |
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
-
SHARELAYERACTION_CLEAR =
# File 'lib/sketchup-api-stubs/stubs/Layout/Layer.rb', line 20
Constants
nil -
SHARELAYERACTION_KEEPONEPAGE =
# File 'lib/sketchup-api-stubs/stubs/Layout/Layer.rb', line 21
Stub value.
nil -
SHARELAYERACTION_MERGEALLPAGES =
# File 'lib/sketchup-api-stubs/stubs/Layout/Layer.rb', line 22
Stub value.
nil -
UNSHARELAYERACTION_CLEAR =
# File 'lib/sketchup-api-stubs/stubs/Layout/Layer.rb', line 24
Stub value.
nil -
UNSHARELAYERACTION_COPYTOALLPAGES =
# File 'lib/sketchup-api-stubs/stubs/Layout/Layer.rb', line 25
Stub value.
nil -
UNSHARELAYERACTION_COPYTOONEPAGE =
# File 'lib/sketchup-api-stubs/stubs/Layout/Layer.rb', line 26
Stub value.
nil
Instance Attribute Summary
-
#locked=(locked)
rw
The #locked= method sets whether the
Layeris locked. -
#locked? ⇒ Boolean
rw
The #locked? method returns whether the
Layeris locked. -
#name ⇒ String
rw
The #name method returns the name of the
Layer. -
#name=(name)
rw
The #name= sets the name of the
Layer. -
#shared? ⇒ Boolean
readonly
The #shared? method returns whether the
Layeris shared.
Instance Method Summary
-
#==(other) ⇒ Boolean
The #== method checks to see if the two
Layers are equal. - #document ⇒ Layout::Document
-
#layer_instance ⇒ Layout::LayerInstance
The #layer_instance method returns a
LayerInstancefrom theLayer. -
#set_nonshared(page, unshare_action)
The #set_nonshared method sets the
Layerto non-shared. -
#set_shared(page, share_action)
The #set_shared method sets the
Layerto shared.
Instance Attribute Details
#locked=(locked) (rw)
The #locked= method sets whether the Layer is locked.
#locked? ⇒ Boolean (rw)
The #locked? method returns whether the Layer is locked.
#name ⇒ String (rw)
The #name method returns the name of the Layer.
#name=(name) (rw)
The #name= sets the name of the Layer.
Instance Method Details
#==(other) ⇒ Boolean
The #== method checks to see if the two 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 Layer belongs to.
#layer_instance ⇒ Layout::LayerInstance
#layer_instance(page) ⇒ Layout::LayerInstance
The #layer_instance method returns a LayerInstance from the Layer. If the Layer is shared, a Page does not have to be provided.