Tile Grid
interface TileGrid : AnimationRunner, Clearable, Closeable, DrawSurface, Layerable, ShutdownHook, TypingSupport, UIEventSource, ViewContainer
Content copied to clipboard
The TileGrid is the most fundamental interface in Zircon. It is an abstraction which lets you manage a 2D grid composed of Tiles. It also supports layering, cursor handling, character printing, event handling, simple Tile drawing operations and many more.
You can consider a TileGrid as an easy to use facade for all of your tile grid needs.
Note That all TileGrids have a Layer at index 0
which is used for implementing the DrawSurface operations and it can't be removed from the grid.
See also
Functions
addLayer
Link copied to clipboard
applyStyle
Link copied to clipboard
dock
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
abstract fun draw(tileComposite: TileComposite, drawPosition: Position, drawArea: Size)
Content copied to clipboard
fill
Link copied to clipboard
getLayerAt
Link copied to clipboard
getTileAtOrNull
Link copied to clipboard
handleKeyboardEvents
Link copied to clipboard
abstract fun handleKeyboardEvents(eventType: KeyboardEventType, handler: (event: KeyboardEvent, phase: UIEventPhase) -> UIEventResponse): Subscription
Content copied to clipboard
handleMouseEvents
Link copied to clipboard
abstract fun handleMouseEvents(eventType: MouseEventType, handler: (event: MouseEvent, phase: UIEventPhase) -> UIEventResponse): Subscription
Content copied to clipboard
insertLayerAt
Link copied to clipboard
moveCursorBackward
Link copied to clipboard
abstract fun moveCursorBackward()
Content copied to clipboard
Moves the cursor one Position to the left.
moveCursorForward
Link copied to clipboard
abstract fun moveCursorForward()
Content copied to clipboard
Moves the cursor one Position to the right.
onShutdown
Link copied to clipboard
processKeyboardEvents
Link copied to clipboard
abstract fun processKeyboardEvents(eventType: KeyboardEventType, handler: (event: KeyboardEvent, phase: UIEventPhase) -> Unit): Subscription
Content copied to clipboard
processMouseEvents
Link copied to clipboard
abstract fun processMouseEvents(eventType: MouseEventType, handler: (event: MouseEvent, phase: UIEventPhase) -> Unit): Subscription
Content copied to clipboard
setLayerAt
Link copied to clipboard
Properties
closedValue
Link copied to clipboard
cursorPosition
Link copied to clipboard
heightInPixels
Link copied to clipboard
isCursorAtTheEndOfTheLine
Link copied to clipboard
isCursorAtTheFirstRow
Link copied to clipboard
isCursorAtTheLastRow
Link copied to clipboard
isCursorAtTheStartOfTheLine
Link copied to clipboard
isCursorVisible
Link copied to clipboard
tileset
Link copied to clipboard
tilesetProperty
Link copied to clipboard
widthInPixels
Link copied to clipboard
Inheritors
Extensions
Sources
(source)
Link copied to clipboard