ReactionIcon

data class ReactionIcon(val painter: Painter, val selectedPainter: Painter)

Contains Painters for normal and selected states of the reaction icon.

Parameters

painter

The Painter used to render the reaction in its normal state.

selectedPainter

The Painter used to render the reaction in its selected state.

Constructors

Link copied to clipboard
constructor(painter: Painter, selectedPainter: Painter)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun getPainter(isSelected: Boolean): Painter

Returns either one of the Painters depending on the reaction state.