|
DUDS
|
Distributed Update of Data from Something
|
Generalized item thingy that holds a bit-per-pixel image as an icon. More...
#include <BppIconItem.hpp>
Public Member Functions | |
| BppIconItem ()=default | |
| Constructs the item without an icon. More... | |
| BppIconItem (const duds::ui::graphics::ConstBppImageSptr &icon) | |
| Constructs the item with the given icon. More... | |
| BppIconItem (duds::ui::graphics::ConstBppImageSptr &&icon) | |
| Constructs the item with the given icon. More... | |
| const duds::ui::graphics::ConstBppImageSptr & | icon () const |
| Returns the item's icon. More... | |
| void | icon (const duds::ui::graphics::ConstBppImageSptr &newimg) |
| Sets the item's icon to the given image. More... | |
| void | icon (duds::ui::graphics::ConstBppImageSptr &&newimg) |
| Sets the item's icon to the given image. More... | |
Private Attributes | |
| duds::ui::graphics::ConstBppImageSptr | img |
| The contained icon image. More... | |
Generalized item thingy that holds a bit-per-pixel image as an icon.
Intended to be used as one of at least two base classes: one class that defines some kind of item, and this one to add an icon.
Definition at line 21 of file BppIconItem.hpp.
|
default |
Constructs the item without an icon.
|
inline |
Constructs the item with the given icon.
| icon | The image for the item's icon. |
Definition at line 35 of file BppIconItem.hpp.
|
inline |
Constructs the item with the given icon.
| icon | The image for the item's icon. The shared pointer is moved into this object. |
Definition at line 41 of file BppIconItem.hpp.
|
inline |
Returns the item's icon.
Definition at line 46 of file BppIconItem.hpp.
Referenced by duds::ui::menu::renderers::GenericBppMenuIconItem::make(), and duds::ui::menu::renderers::BppMenuRenderer::render().
|
inline |
Sets the item's icon to the given image.
| newimg | The new image for the item's icon. |
Definition at line 53 of file BppIconItem.hpp.
|
inline |
Sets the item's icon to the given image.
| newimg | The new image for the item's icon. The shared pointer is moved into this object. |
Definition at line 61 of file BppIconItem.hpp.
|
private |