RadioButton

Implements a single radio button. Needs to be grouped to used. Equality is checked by comparing source, so give each RadioButton a different source value.

Constructors

this
this(Text text, string source, Box position, IRadioButtonGroup group)
Undocumented in source.
this
this(dstring text, string source, Box position, IRadioButtonGroup group)
this(string iconLatched, string iconUnlatched, string source, Box position, IRadioButtonGroup group)

Sets the icon for unlatched positions

Members

Functions

draw
void draw()
Undocumented in source. Be warned that the author may not have intended to support it.
equals
bool equals(IRadioButton rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
isLeftSide
bool isLeftSide()

Returns true if left side justified, false otherwise.

isLeftSide
bool isLeftSide(bool val)

Sets the small button to the left side if true.

isSmallButtonHeight
bool isSmallButtonHeight(int height)
Undocumented in source. Be warned that the author may not have intended to support it.
latchOff
void latchOff()

If the radio button is pressed, then it sets to unpressed. Does nothing otherwise.

latchOn
void latchOn()

Sets the radio button into its pressed state.

passMCE
void passMCE(MouseEventCommons mec, MouseClickEvent mce)
Undocumented in source. Be warned that the author may not have intended to support it.
setGroup
void setGroup(IRadioButtonGroup group)

Sets the group of the radio button.

value
string value()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

group
IRadioButtonGroup group;

The group which this object belongs to.

iconLatched
string iconLatched;

Sets the icon for latched positions

iconUnlatched
string iconUnlatched;

Sets the icon for unlatched positions

Meta