MutableGlyphGrid

sealed interface MutableGlyphGrid<T> : GlyphGrid<T>

Inheritors

Properties

Link copied to clipboard
abstract val glyphHeight: Int

The height of each glyph

Link copied to clipboard
abstract val glyphWidth: Int

The width of each glyph.

Link copied to clipboard
abstract override var gridHeight: Int

The height of this grid, i.e. the number of rows.

Link copied to clipboard
abstract override var gridWidth: Int

The width of this grid, i.e. the number of columns.

Functions

Link copied to clipboard
abstract fun create(x: Int, y: Int): T

Creates a new glyph at the specified x and y and returns it. Changes made to the returned glyph will be reflected in this grid.

Link copied to clipboard
abstract operator fun get(x: Int, y: Int): T

Gets the glyph at the specified x and y coordinates.

Link copied to clipboard
abstract operator fun set(x: Int, y: Int, value: T?)

Sets the glyph at the specified x and y coordinates, or removes it if value is null.

Link copied to clipboard
abstract fun toImage(): BufferedImage

Creates a BufferedImage of this grid.