A button with an arrow in it. More...
Inherits Button.
Public Member Functions | |
| ArrowButton (const String &buttonName, float arrowDirection, const Colour &arrowColour) | |
| Creates an ArrowButton. | |
| ~ArrowButton () | |
| Destructor. | |
Protected Member Functions | |
| void | paintButton (Graphics &g, bool isMouseOverButton, bool isButtonDown) |
| Subclasses should override this to actually paint the button's contents. | |
| void | buttonStateChanged () |
| Called when the button's up/down/over state changes. | |
A button with an arrow in it.
| ArrowButton::ArrowButton | ( | const String & | buttonName, |
| float | arrowDirection, | ||
| const Colour & | arrowColour | ||
| ) |
Creates an ArrowButton.
| buttonName | the name to give the button |
| arrowDirection | the direction the arrow should point in, where 0.0 is pointing right, 0.25 is down, 0.5 is left, 0.75 is up |
| arrowColour | the colour to use for the arrow |
| ArrowButton::~ArrowButton | ( | ) |
Destructor.
| void ArrowButton::paintButton | ( | Graphics & | g, |
| bool | isMouseOverButton, | ||
| bool | isButtonDown | ||
| ) | [protected, virtual] |
Subclasses should override this to actually paint the button's contents.
It's better to use this than the paint method, because it gives you information about the over/down state of the button.
| g | the graphics context to use |
| isMouseOverButton | true if the button is either in the 'over' or 'down' state |
| isButtonDown | true if the button should be drawn in the 'down' position |
Implements Button.
| void ArrowButton::buttonStateChanged | ( | ) | [protected, virtual] |