TileResponse

data class TileResponse(val height: Int, val widget: WidgetResponse, val width: Int, val xPos: Int, val yPos: Int)

A single tile in the mosaic. The placement and size of the tile are configurable.

Constructors

Link copied to clipboard
fun TileResponse(height: Int, widget: WidgetResponse, width: Int, xPos: Int, yPos: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val height: Int

The height of the tile, measured in grid blocks. Tiles must have a minimum height of 1.

Link copied to clipboard

The informational widget contained in the tile. For example an XyChart.

Link copied to clipboard
val width: Int

The width of the tile, measured in grid blocks. Tiles must have a minimum width of 1.

Link copied to clipboard
val xPos: Int

The zero-indexed position of the tile in grid blocks relative to the left edge of the grid. Tiles must be contained within the specified number of columns. x_pos cannot be negative.

Link copied to clipboard
val yPos: Int

The zero-indexed position of the tile in grid blocks relative to the top edge of the grid. y_pos cannot be negative.