public final class ButtonState
Enumerator to be used with the drawButton* functions.
Fields
Name | Description |
---|---|
ALL | All viable flags in the bit mask. |
CHECKED | Button has a checked or latched appearance. |
FLAT | Button has a flat, two-dimensional appearance. |
INACTIVE | Button is disabled. |
NORMAL | Button is drawn normally. |
PUSHED | Button is pressed. |
Methods
Name | Description |
---|---|
ensureValid(int value) | Throws an exception if the given value is not possible for this class. |
valid(int value) | Determines whether the given value is allowed by this class. |
Throws an exception if the given value is not possible for this class.
Returns true if the value is valid; otherwise, returns false.
Determines whether the given value is allowed by this class.