|
CeresEngine 0.2.0
A game development framework
|
An item in a UIToolBar.
More...
#include <CeresEngine/UI/UIToolBar.hpp>
Public Member Functions | |
| UIToolBarItem (const String &itemIdentifier) | |
| Creates a new toolbar item with the given identifier. | |
| virtual | ~UIToolBarItem () |
| const String & | getItemIdentifier () const noexcept |
| The receiver's identifier. | |
| UIToolBar * | getToolBar () const noexcept |
| The toolbar that is using the receiver. | |
| const String & | getLabel () const noexcept |
| The receiver's label. | |
| void | setLabel (const String &label) |
| The receiver's label. | |
| const String & | getToolTip () const noexcept |
| The tooltip used when the receiver is displayed in the toolbar. | |
| void | setToolTip (const String &toolTip) |
| The tooltip used when the receiver is displayed in the toolbar. | |
| const String & | getTitle () const noexcept |
| The title of the toolbar item. | |
| void | setTitle (const String &title) |
| The title of the toolbar item. | |
| bool | isBordered () const noexcept |
| A Boolean value that determines whether the toolbar item has a bordered style. | |
| void | setBordered (bool bordered) |
| A Boolean value that determines whether the toolbar item has a bordered style. | |
| bool | isNavigational () const noexcept |
| A Boolean value that indicates whether the item behaves as a navigation item in the toolbar. | |
| void | setNavigational (bool navigational) |
| A Boolean value that indicates whether the item behaves as a navigation item in the toolbar. | |
| bool | isEnabled () const noexcept |
| A Boolean value that indicates whether the receiver is enabled. | |
| void | setEnabled (bool enabled) |
| A Boolean value that indicates whether the receiver is enabled. | |
| const HTexture & | getTexture () const noexcept |
| Generates a hash for the provided type. | |
| void | setTexture (const HTexture &texture) |
| Generates a hash for the provided type. | |
| UIView * | getView () const noexcept |
| The receiver's view. | |
| void | setView (UIView *view) |
| The receiver's view. | |
Public Attributes | |
| Event< void()> | didSelect |
| An event triggered whenever the toolbar item is selected. | |
Private Attributes | |
| String | mItemIdentifier |
| The receiver's identifier. | |
| UIToolBar * | mToolBar = nullptr |
| The toolbar that is using the receiver. | |
| String | mLabel |
| The receiver's label. | |
| String | mToolTip |
| The tooltip used when the receiver is displayed in the toolbar. | |
| String | mTitle |
| The title of the toolbar item. | |
| bool | mBordered = true |
| A Boolean value that determines whether the toolbar item has a bordered style. | |
| bool | mNavigational = false |
| A Boolean value that indicates whether the item behaves as a navigation item in the toolbar. | |
| bool | mEnabled = true |
| A Boolean value that indicates whether the receiver is enabled. | |
| HTexture | mTexture = nullptr |
| The texture of the receiver. | |
| RC< UIView > | mView = nullptr |
| The receiver's view. | |
| RC< UIView > | mActualView = nullptr |
| A private field that holds the actual button view for the toolbar. | |
Friends | |
| class | UIToolBar |
An item in a UIToolBar.
Creates a new toolbar item with the given identifier.
| itemIdentifier | The identifier for the receiver. itemIdentifier is never seen by users and should not be localized. |
|
virtual |
The receiver's identifier.
The identifier is used by the toolbar and its delegate to identify the kind of the toolbar item.
Generates a hash for the provided type.
Type must have a std::hash specialization.
| T | the type to be hashed |
| v | The value to be hashed |
The title of the toolbar item.
|
inlinenoexcept |
The toolbar that is using the receiver.
The tooltip used when the receiver is displayed in the toolbar.
|
inlinenoexcept |
The receiver's view.
|
inlinenoexcept |
A Boolean value that determines whether the toolbar item has a bordered style.
|
inlinenoexcept |
A Boolean value that indicates whether the receiver is enabled.
|
inlinenoexcept |
A Boolean value that indicates whether the item behaves as a navigation item in the toolbar.
A Boolean value that determines whether the toolbar item has a bordered style.
A Boolean value that indicates whether the receiver is enabled.
A Boolean value that indicates whether the item behaves as a navigation item in the toolbar.
Generates a hash for the provided type.
Type must have a std::hash specialization.
| T | the type to be hashed |
| v | The value to be hashed |
The tooltip used when the receiver is displayed in the toolbar.
An event triggered whenever the toolbar item is selected.
A private field that holds the actual button view for the toolbar.
A Boolean value that determines whether the toolbar item has a bordered style.
A Boolean value that indicates whether the receiver is enabled.
|
private |
The receiver's identifier.
The identifier is used by the toolbar and its delegate to identify the kind of the toolbar item.
|
private |
The receiver's label.
A Boolean value that indicates whether the item behaves as a navigation item in the toolbar.
|
private |
The title of the toolbar item.
The toolbar that is using the receiver.
|
private |
The tooltip used when the receiver is displayed in the toolbar.