PsdLayerProtection class final

Editing locks stored in the lspf block.

Photoshop also locks transparency through bit 0 of the layer-record flags; PsdLayer.protection merges both sources.

Constructors

PsdLayerProtection({int flags = 0})
Creates protection from raw flags.
const
PsdLayerProtection.create({bool transparency = false, bool pixels = false, bool position = false, bool artboardNesting = false, bool all = false})
Creates protection from individual locks.
factory
PsdLayerProtection.decode(PsdTaggedBlock? block)
Decodes an optional lspf block.
factory

Properties

all → bool
Whether every property is locked.
no setter
artboardNesting → bool
Whether automatic artboard nesting is prevented.
no setter
flags → int
Raw 32-bit flags, including bits not interpreted by this release.
final
hashCode → int
The hash code for this object.
no setterinherited
pixels → bool
Whether image pixels are locked.
no setter
position → bool
Whether the layer position is locked.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transparency → bool
Whether transparent pixels are locked.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBlock() → PsdTaggedBlock
Encodes this protection as an lspf block.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

allBit → const int
Bit locking every property at once.
artboardNestingBit → const int
Bit preventing automatic nesting into or out of artboards.
pixelsBit → const int
Bit locking image pixels.
positionBit → const int
Bit locking the layer position.
transparencyBit → const int
Bit locking transparent pixels.