HexGridDrawable

class HexGridDrawable(grid: Grid? = null) : Drawable

The Drawable version of the library's hex grid.

Similar in operation to the other versions, except:

  • This one doesn't support cell Views, because it's a Drawable.

  • It's not inherently interactive; i.e., it has no click listener interface.

  • It can't wrap its content; it simply uses the bounds and mode as set.

Constructors

Link copied to clipboard
constructor(grid: Grid? = null)

Properties

Link copied to clipboard

Whether to clip the grid, or let it draw out of bounds, if it's big enough to do so.

Link copied to clipboard

The HexGridDrawable's current CrossMode.

Link copied to clipboard

Color of the cells' interior normally.

Link copied to clipboard

The HexGridDrawable's current FitMode.

Link copied to clipboard
var grid: Grid

The HexGridDrawable's current Grid.

Link copied to clipboard

The HexGridDrawable's current HexOrientation.

Link copied to clipboard

Color of the cells' interior when its selected state is true.

Link copied to clipboard

Whether to show each cell's column index.

Link copied to clipboard

Whether to show each cell's row index.

Link copied to clipboard

Color of the cells' outlines.

Link copied to clipboard

The HexGridDrawable's current stroke width for the cells' outline.

Functions

Link copied to clipboard
open override fun draw(canvas: Canvas)
Link copied to clipboard
open override fun getOpacity(): Int
Link copied to clipboard
open override fun setAlpha(alpha: Int)
Link copied to clipboard
open override fun setColorFilter(colorFilter: ColorFilter?)