|
|
| ButtonController (const ButtonController &other) |
| | Copy Constructor.
|
| |
|
| ButtonController (ButtonController &&other) |
| | Move Constructor after the move, other is null, other.clear() must be called if it is to be used again.
|
| |
|
virtual ButtonController & | operator= (const ButtonController &other) |
| | Assignment operator.
|
| |
|
virtual ButtonController & | operator= (ButtonController &&other) |
| | Move assignment after the move, other is null, other.clear() must be called if it is to be used again.
|
| |
|
virtual | ~ButtonController () |
| | Destructor By default, this calls the virtual function end()
|
| |
|
virtual void | clear () |
| | Sets all attributes to their default values (same as the default constructor)
|
| |
|
bool | isNull () const |
| | Returns true if the object is null (i.e. it has not been initialized, d_ptr is null)
|
| |
|
virtual bool | isEmpty () const |
| | Checks if all attributes are set to their default values (same as the default constructor)
|
| |
|
virtual bool | operator== (const ButtonController &other) const |
| | Returns true if the two objects are equal.
|
| |
|
virtual bool | operator!= (const ButtonController &other) const |
| | Returns true if the two objects are not equal.
|
| |
|
virtual void | begin () |
| | Configures all ressources needed to use the object.
|
| |
|
virtual void | end () |
| | Releases all ressources used by the object.
|
| |
| virtual int | select (int button)=0 |
| | Selects a button. More...
|
| |
|
virtual void | deselect ()=0 |
| | Deselects the button After the call to this function, isSelected() must return false, and selected() must return -1.
|
| |
|
virtual int | selected () const |
| | Returns the button number that is selected, or -1 if no button is selected.
|
| |
|
virtual bool | isOpen () const |
| | Returns true if begin() has been successfully called.
|
| |
|
virtual bool | isSelected () const |
| | Returns true if a button is selected.
|
| |
|
virtual const String & | name () const |
| | Returns the name of the ButtonController object if it has been set, otherwise it returns an empty string.
|
| |
This class is the base class of all button controllers.
It is an abstract class, and cannot be instantiated. It provides a common interface for all button controllers. This class is copyable and movable.
select() and deselect() are pure virtual functions that must be implemented by derived classes