SmallButton

SmallButton is used to implement small buttons for toolbars, on window headers, etc. Icons contain the frame of the buttons, etc., and are recalled from the closest available stylesheet.

Constructors

this
this(string iconPressed, string iconUnpressed, string source, Box position)

Creates an instance of SmallButton.

Members

Functions

draw
void draw()
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)

Returns true if the SmallButton is of size height, false otherwise.

Variables

iconPressed
string iconPressed;
iconUnpressed
string iconUnpressed;

Defines what icons will the button use for its states.

Meta