Icon

interface Icon<in T : Any>

Represents graphical data associated with an item. An example is the icon used by a button to indicate its function.

Author

Nicholas Eddy

Functions

Link copied to clipboard
abstract fun render(view: T, canvas: Canvas, at: Point)

Renders the icon onto the given canvas, with the icon's top-left at the point indicated. The top-left location is that of the icon's bounding-box.

Link copied to clipboard
abstract fun size(view: T): Size

The icon's size for the given value.