PsdTypeTool class final

Editable contents of a Photoshop TySh tagged block.

Constructors

PsdTypeTool({required PsDescriptor textDescriptor, required PsDescriptor warpDescriptor, int version = 1, PsdTextTransform transform = PsdTextTransform.identity, int textVersion = 50, int textDescriptorVersion = 16, int warpVersion = 1, int warpDescriptorVersion = 16, PsdTextBounds bounds = PsdTextBounds.zero, Uint8List? trailingData})
Creates editable type-tool data.
PsdTypeTool.fromText({required PsdTextContent content, PsdTextTransform transform = PsdTextTransform.identity, PsdTextBounds bounds = PsdTextBounds.zero, PsdTextDescriptorBounds? descriptorBounds, PsdTextDescriptorBounds? boundingBox, PsdTextWarp? warp, int textIndex = 0})
Creates a complete editable type-tool record from semantic content.
factory

Properties

antiAlias → PsdTextAntiAlias
Antialiasing mode stored by the type-tool descriptor.
no setter
boundingBox → PsdTextDescriptorBounds?
Optional rendered bounding box from the text descriptor.
no setter
bounds → PsdTextBounds
Legacy single-precision bounds stored after the two descriptors.
final
content → PsdTextContent
Semantic text, styles, and paragraphs suitable for application models.
no setter
descriptorBounds → PsdTextDescriptorBounds?
Optional layout bounds from the text descriptor.
no setter
engineData → Uint8List?
Raw Adobe text-engine program stored under EngineData.
no setter
gridding → PsdTextGridding
Pixel-grid behavior stored by the type-tool descriptor.
no setter
hashCode → int
The hash code for this object.
no setterinherited
orientation → PsdTextOrientation
Layout direction stored by the type-tool descriptor.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
Plain Unicode text stored under the Txt descriptor key.
no setter
textDescriptor → PsDescriptor
Descriptor containing text, orientation, antialiasing, and engine data.
final
textDescriptorVersion → int
Action-descriptor version for textDescriptor, normally 16.
final
textIndex → int
Photoshop text object index.
no setter
textVersion → int
Text record version, normally 50.
final
trailingData → Uint8List
Bytes from newer Photoshop versions that follow the documented bounds.
final
transform → PsdTextTransform
Transform from text coordinates into layer coordinates.
final
version → int
Type-tool structure version, normally 1.
final
warp → PsdTextWarp
Common warp properties decoded from warpDescriptor.
no setter
warpDescriptor → PsDescriptor
Descriptor containing text warp settings.
final
warpDescriptorVersion → int
Action-descriptor version for warpDescriptor, normally 16.
final
warpVersion → int
Warp record version, normally 1.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
withContent(PsdTextContent content) → PsdTypeTool
Returns a semantic rewrite of this type tool using content.
withText(String text) → PsdTypeTool
Returns a copy containing text in both descriptor text fields.
withWarp(PsdTextWarp warp) → PsdTypeTool
Returns a copy with common warp properties updated.

Operators

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