Sub Tile Graphics
class SubTileGraphics(rect: Rect, backend: InternalTileGraphics) : InternalTileGraphics
Content copied to clipboard
Represents a sub-section of a TileGraphics. This class can be used to restrict edits to the original TileGraphics. Note that the contents of the two TileGraphics are shared so edits will be visible for both.
Constructors
SubTileGraphics
Link copied to clipboard
Functions
applyStyle
Link copied to clipboard
createCopy
Link copied to clipboard
draw
Link copied to clipboard
Same as draw with 3 parameters, with the difference that size will be used for
drawArea
, and Position.zero as drawPosition
open override fun draw(tileComposite: TileComposite, drawPosition: Position)
Content copied to clipboard
open override fun draw(tileComposite: TileComposite, drawPosition: Position, drawArea: Size)
Content copied to clipboard
fill
Link copied to clipboard
getTileAtOrNull
Link copied to clipboard
toLayer
Link copied to clipboard
Creates a newLayer from the contents of this TileGraphics.
toResized
Link copied to clipboard
Returns a copy of this TileGraphics resized to a new size and using Tile.empty if the new size is larger than the old and it needs to fill in empty areas.
toSubTileGraphics
Link copied to clipboard
toTileImage
Link copied to clipboard
Properties
state
Link copied to clipboard
Holds a snapshot of the current state of this InternalTileGraphics.
tileset
Link copied to clipboard
tilesetProperty
Link copied to clipboard
Sources
(source)
Link copied to clipboard