VCF::ToggledButton Class Reference
RadioButtonControl base class for toggled buttons. More...
#include <ToggledButton.h>
Inheritance diagram for VCF::ToggledButton:

Public Member Functions | |
| ToggledButton () | |
| virtual | ~ToggledButton () |
| virtual void | addButtonClickHandler (EventHandler *handler) |
| Adds a new EventHandler for button click events. | |
| virtual void | removeButtonClickHandler (EventHandler *handler) |
| Removes an EventHandler for button click events. | |
| virtual void | click () |
| This represents the user pressing the button, which then invokes whatever command is associated with the button. | |
| virtual void | setDefault (const bool &defaultButton) |
| no-op - ToggledButton's don't support this | |
| virtual bool | isDefault () |
| virtual void | setName (const String &name) |
| sets the name of the component. | |
| virtual void | mouseDown (MouseEvent *event) |
| Called when one (or more) of the mouse buttons are held down. | |
| virtual void | mouseMove (MouseEvent *event) |
| Called when the mouse moves over the control. | |
| virtual void | mouseUp (MouseEvent *event) |
| Called when one (or more) of the mouse buttons are released. | |
| bool | isChecked () |
| virtual void | setChecked (const bool &checked) |
| void | setCaption (const String &caption) |
| String | getCaption () |
| void | setCaptionAlignment (const TextAlignmentType &alignment) |
| TextAlignmentType | getCaptionAlignment () |
Public Attributes | |
| VCF::Delegate | ButtonClicked |
Protected Attributes | |
| String | caption_ |
| TextAlignmentType | captionAlignment_ |
| bool | checked_ |
Detailed Description
RadioButtonControl base class for toggled buttons.This means for a button that stays down if clicked until it is clicked again. This base class is used as base class for RadioButtonControl, but not for the PushButton with a toggled behaviour.
Constructor & Destructor Documentation
|
|
|
|
|
|
Member Function Documentation
|
|
Adds a new EventHandler for button click events.
Implements VCF::Button. |
|
|
This represents the user pressing the button, which then invokes whatever command is associated with the button. It should be called in the implementing controls class whenever the control is "clicked" on (see Control::mouseClick() ), it can also be called programmatically as well. Implements VCF::Button. |
|
|
|
|
|
|
|
|
|
|
|
Implements VCF::Button. |
|
|
Called when one (or more) of the mouse buttons are held down. override this to provide specific behaviours when the mouse buttons are held down Reimplemented from VCF::Control. |
|
|
Called when the mouse moves over the control. override this to provide specific behaviours when the mouse moves over the control. Reimplemented from VCF::Control. |
|
|
Called when one (or more) of the mouse buttons are released. override this to provide specific behaviours when the mouse buttons are released. Reimplemented from VCF::Control. |
|
|
Removes an EventHandler for button click events.
Implements VCF::Button. |
|
|
|
|
|
|
|
|
Reimplemented in VCF::RadioButtonControl. |
|
|
no-op - ToggledButton's don't support this
Implements VCF::Button. |
|
|
sets the name of the component. For naming conventions/rules please see getName(). Reimplemented from VCF::Component. |
Member Data Documentation
|
|
|
|
|
|
|
|
|
|
|
|
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/ToggledButton.h
