TextDesignLayerSettings

class TextDesignLayerSettings

Constructors

TextDesignLayerSettings
Link copied to clipboard
fun TextDesignLayerSettings(stickerConfig: TextDesign)

Types

Companion
Link copied to clipboard
object Companion
Event
Link copied to clipboard
object Event

Functions

createLayer
Link copied to clipboard
open fun createLayer(): <ERROR CLASS>
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
flipHorizontal
Link copied to clipboard

Flips the TextDesign in a horizontal way.

open fun flipHorizontal(): TextDesignLayerSettings
flipVertical
Link copied to clipboard

Flips the TextDesign in a vertical way.

open fun flipVertical(): TextDesignLayerSettings
getColorMatrix
Link copied to clipboard

Returns the color matrix.

open fun getColorMatrix(): <ERROR CLASS>
getInkColor
Link copied to clipboard

Returns the ink color of the TextDesign.

open fun getInkColor(): Int
getLayerToolId
Link copied to clipboard

Returns the unique identifier of the TextDesign option tool.

open fun getLayerToolId(): String
getScaleDownFactor
Link copied to clipboard
open fun getScaleDownFactor(): Float
getStickerRotation
Link copied to clipboard

Returns the rotation of the TextDesign.

open fun getStickerRotation(): Float
getStickerX
Link copied to clipboard

Returns the horizontal position of the TextDesign center.

open fun getStickerX(): Double
getStickerY
Link copied to clipboard

Returns the vertical position of the TextDesign center.

open fun getStickerY(): Double
getTintColor
Link copied to clipboard

Returns the tint color of the TextDesign.

open fun getTintColor(): Int
hashCode
Link copied to clipboard
open override fun hashCode(): Int
hasInitialPosition
Link copied to clipboard

Returns true if the TextDesign has an initial position.

fun hasInitialPosition(): Boolean
hasNonDefaults
Link copied to clipboard
open fun hasNonDefaults(): Boolean
hasStickerConstraintWidth
Link copied to clipboard

Returns true if the TextDesign has a constraint width. This happens if the serializeAspect is 0.

fun hasStickerConstraintWidth(): Boolean
isAllowedWithLicensed
Link copied to clipboard
open fun isAllowedWithLicensed(): Boolean
isHorizontalFlipped
Link copied to clipboard

Returns true if the TextDesign is flipped in a horizontal way.

open fun isHorizontalFlipped(): Boolean
isSingleton
Link copied to clipboard
open fun isSingleton(): Boolean
layerCanvasMode
Link copied to clipboard
open fun layerCanvasMode(): Int?
newSeed
Link copied to clipboard

Sets a new seed.

fun newSeed()
revertState
Link copied to clipboard
open fun revertState()
open fun revertState(saveState: <ERROR CLASS>)
setColorMatrix
Link copied to clipboard
open fun setColorMatrix(filter: <ERROR CLASS>): TextDesignLayerSettings
setPosition
Link copied to clipboard

Sets the position of the TextDesign.

open fun setPosition(stickerX: Double, stickerY: Double, stickerAngle: Float, stickerSize: Double): TextDesignLayerSettings
setPostConcatColorMatrix
Link copied to clipboard

Sets the post concatenating color matrix.

fun setPostConcatColorMatrix(postConcatColorMatrix: <ERROR CLASS>?)
setPreConcatColorMatrix
Link copied to clipboard

Sets the pre concatenating color matrix.

fun setPreConcatColorMatrix(preConcatColorMatrix: <ERROR CLASS>?)
setSeed
Link copied to clipboard

Sets the seed to calculate the TextDesign.

fun setSeed(seed: Long?)
setStickerInk
Link copied to clipboard

Sets the TextDesign ink color.

open fun setStickerInk(color: Int)
setStickerRotation
Link copied to clipboard

Sets the rotation of the TextDesign.

open fun setStickerRotation(stickerRotation: Float): TextDesignLayerSettings
setStickerTint
Link copied to clipboard

Sets the TextDesign tint color.

open fun setStickerTint(color: Int)
toString
Link copied to clipboard
open override fun toString(): String

Properties

color
Link copied to clipboard

The color of the TextDesign.

var color: <ERROR CLASS>
destination
Link copied to clipboard
val destination: <ERROR CLASS>
isInverted
Link copied to clipboard

Indicates if the TextDesign is inverted.

var isInverted: Boolean
padding
Link copied to clipboard

The size of the padding around the TextDesign. This value is relative to the TextDesign!

var padding: <ERROR CLASS>
paddingRelativeToImageSmallerSide
Link copied to clipboard

The padding around the TextDesign relative to the smaller side.

var paddingRelativeToImageSmallerSide: Double
relativeWidth
Link copied to clipboard

The relative width of the TextDesign.

val relativeWidth: Double
seed
Link copied to clipboard

The seed which is use for the random calculation of the TextDesign.

var seed: <ERROR CLASS>
serializeAspect
Link copied to clipboard

The serialized aspect of the TextDesign. Default is -1.0.

var serializeAspect: Double
stickerConfig
Link copied to clipboard

The TextDesign configuration.

var stickerConfig: TextDesign
stickerSize
Link copied to clipboard

The size of the sticker.

var stickerSize: Double
text
Link copied to clipboard

The text content of the TextDesign.

var text: String