A GenericMenuItem that holds a bit-per-pixel icon to represent the item.
More...
#include <BppIconItem.hpp>
|
| static std::shared_ptr< GenericBppMenuIconItem > | make (const std::string &label, Flags flags=Flags::Zero()) |
| | Makes a shared pointer holding a new GenericBppMenuIconItem. More...
|
| |
| static std::shared_ptr< GenericBppMenuIconItem > | make (const duds::ui::graphics::ConstBppImageSptr &icon, const std::string &label, Flags flags=Flags::Zero()) |
| | Makes a shared pointer holding a new GenericBppMenuIconItem. More...
|
| |
| static std::shared_ptr< GenericBppMenuIconItem > | make (duds::ui::graphics::ConstBppImageSptr &&icon, const std::string &label, Flags flags=Flags::Zero()) |
| | Makes a shared pointer holding a new GenericBppMenuIconItem. More...
|
| |
| static std::shared_ptr< GenericBppMenuIconItem > | make (const std::string &label, const std::string &description, Flags flags=Flags::Zero()) |
| | Makes a shared pointer holding a new GenericBppMenuIconItem. More...
|
| |
| static std::shared_ptr< GenericBppMenuIconItem > | make (const duds::ui::graphics::ConstBppImageSptr &icon, const std::string &label, const std::string &description, Flags flags=Flags::Zero()) |
| | Makes a shared pointer holding a new GenericBppMenuIconItem. More...
|
| |
| static std::shared_ptr< GenericBppMenuIconItem > | make (duds::ui::graphics::ConstBppImageSptr &&icon, const std::string &label, const std::string &description, Flags flags=Flags::Zero()) |
| | Makes a shared pointer holding a new GenericBppMenuIconItem. More...
|
| |
| static std::shared_ptr< GenericBppMenuIconItem > | make (const std::string &label, const std::string &description, const std::string &value, Flags flags=Flags::Zero()) |
| | Makes a shared pointer holding a new GenericBppMenuIconItem. More...
|
| |
| static std::shared_ptr< GenericBppMenuIconItem > | make (const duds::ui::graphics::ConstBppImageSptr &icon, const std::string &label, const std::string &description, const std::string &value, Flags flags=Flags::Zero()) |
| | Makes a shared pointer holding a new GenericBppMenuIconItem. More...
|
| |
| static std::shared_ptr< GenericBppMenuIconItem > | make (duds::ui::graphics::ConstBppImageSptr &&icon, const std::string &label, const std::string &description, const std::string &value, Flags flags=Flags::Zero()) |
| | Makes a shared pointer holding a new GenericBppMenuIconItem. More...
|
| |
|
| | GenericBppMenuIconItem (MenuItemToken, const std::string &label, Flags flags=Flags::Zero()) |
| | Constructs a new GenericBppMenuIconItem. More...
|
| |
| | GenericBppMenuIconItem (MenuItemToken, const duds::ui::graphics::ConstBppImageSptr &icon, const std::string &label, Flags flags=Flags::Zero()) |
| | Constructs a new GenericBppMenuIconItem. More...
|
| |
| | GenericBppMenuIconItem (MenuItemToken, duds::ui::graphics::ConstBppImageSptr &&icon, const std::string &label, Flags flags=Flags::Zero()) |
| | Constructs a new GenericBppMenuIconItem. More...
|
| |
| | GenericBppMenuIconItem (MenuItemToken, const std::string &label, const std::string &description, Flags flags=Flags::Zero()) |
| | Constructs a new GenericBppMenuIconItem. More...
|
| |
| | GenericBppMenuIconItem (MenuItemToken, const duds::ui::graphics::ConstBppImageSptr &icon, const std::string &label, const std::string &description, Flags flags=Flags::Zero()) |
| | Constructs a new GenericBppMenuIconItem. More...
|
| |
| | GenericBppMenuIconItem (MenuItemToken, duds::ui::graphics::ConstBppImageSptr &&icon, const std::string &label, const std::string &description, Flags flags=Flags::Zero()) |
| | Constructs a new GenericBppMenuIconItem. More...
|
| |
| | GenericBppMenuIconItem (MenuItemToken, const std::string &label, const std::string &description, const std::string &value, Flags flags=Flags::Zero()) |
| | Constructs a new GenericBppMenuIconItem with an associated value. More...
|
| |
| | GenericBppMenuIconItem (MenuItemToken, const duds::ui::graphics::ConstBppImageSptr &icon, const std::string &label, const std::string &description, const std::string &value, Flags flags=Flags::Zero()) |
| | Constructs a new GenericBppMenuIconItem with an associated value. More...
|
| |
| | GenericBppMenuIconItem (MenuItemToken, duds::ui::graphics::ConstBppImageSptr &&icon, const std::string &label, const std::string &description, const std::string &value, Flags flags=Flags::Zero()) |
| | Constructs a new GenericBppMenuIconItem with an associated value. More...
|
| |
A GenericMenuItem that holds a bit-per-pixel icon to represent the item.
When using a dynamic_cast from a MenuItem in an attempt to obtain an icon, cast to a BppIconItem.
- Author
- Jeff Jackowski
Definition at line 254 of file BppIconItem.hpp.
◆ GenericBppMenuIconItem() [1/9]
| duds::ui::menu::renderers::GenericBppMenuIconItem::GenericBppMenuIconItem |
( |
MenuItemToken |
, |
|
|
const std::string & |
label, |
|
|
Flags |
flags = Flags::Zero() |
|
) |
| |
|
inlineprotected |
Constructs a new GenericBppMenuIconItem.
- Note
- All GenericBppMenuIconItem objects must be managed by std::shared_ptr.
- Parameters
-
| label | Short text presented to the user as the menu item. |
| flags | The option flags for the item. The default is zero: enabled, visible, no value, and not a toggle. |
Definition at line 265 of file BppIconItem.hpp.
◆ GenericBppMenuIconItem() [2/9]
Constructs a new GenericBppMenuIconItem.
- Note
- All GenericBppMenuIconItem objects must be managed by std::shared_ptr.
- Parameters
-
| icon | The image for the item's icon. |
| label | Short text presented to the user as the menu item. |
| flags | The option flags for the item. The default is zero: enabled, visible, no value, and not a toggle. |
Definition at line 280 of file BppIconItem.hpp.
◆ GenericBppMenuIconItem() [3/9]
Constructs a new GenericBppMenuIconItem.
- Note
- All GenericBppMenuIconItem objects must be managed by std::shared_ptr.
- Parameters
-
| icon | The image for the item's icon. The shared pointer is moved into this object. |
| label | Short text presented to the user as the menu item. |
| flags | The option flags for the item. The default is zero: enabled, visible, no value, and not a toggle. |
Definition at line 297 of file BppIconItem.hpp.
◆ GenericBppMenuIconItem() [4/9]
| duds::ui::menu::renderers::GenericBppMenuIconItem::GenericBppMenuIconItem |
( |
MenuItemToken |
, |
|
|
const std::string & |
label, |
|
|
const std::string & |
description, |
|
|
Flags |
flags = Flags::Zero() |
|
) |
| |
|
inlineprotected |
Constructs a new GenericBppMenuIconItem.
- Note
- All GenericBppMenuIconItem objects must be managed by std::shared_ptr.
- Parameters
-
| label | Short text presented to the user as the menu item. |
| description | Longer text optionally presented to the user to provide a better idea of what the option does. |
| flags | The option flags for the item. The default is zero: enabled, visible, no value, and not a toggle. |
Definition at line 315 of file BppIconItem.hpp.
◆ GenericBppMenuIconItem() [5/9]
Constructs a new GenericBppMenuIconItem.
- Note
- All GenericBppMenuIconItem objects must be managed by std::shared_ptr.
- Parameters
-
| icon | The image for the item's icon. |
| label | Short text presented to the user as the menu item. |
| description | Longer text optionally presented to the user to provide a better idea of what the option does. |
| flags | The option flags for the item. The default is zero: enabled, visible, no value, and not a toggle. |
Definition at line 333 of file BppIconItem.hpp.
◆ GenericBppMenuIconItem() [6/9]
Constructs a new GenericBppMenuIconItem.
- Note
- All GenericBppMenuIconItem objects must be managed by std::shared_ptr.
- Parameters
-
| icon | The image for the item's icon. The shared pointer is moved into this object. |
| label | Short text presented to the user as the menu item. |
| description | Longer text optionally presented to the user to provide a better idea of what the option does. |
| flags | The option flags for the item. The default is zero: enabled, visible, no value, and not a toggle. |
Definition at line 354 of file BppIconItem.hpp.
◆ GenericBppMenuIconItem() [7/9]
| duds::ui::menu::renderers::GenericBppMenuIconItem::GenericBppMenuIconItem |
( |
MenuItemToken |
, |
|
|
const std::string & |
label, |
|
|
const std::string & |
description, |
|
|
const std::string & |
value, |
|
|
Flags |
flags = Flags::Zero() |
|
) |
| |
|
inlineprotected |
Constructs a new GenericBppMenuIconItem with an associated value.
- Note
- All GenericBppMenuIconItem objects must be managed by std::shared_ptr.
- Parameters
-
| label | Short text presented to the user as the menu item. |
| description | Longer text optionally presented to the user to provide a better idea of what the option does. |
| value | The current value associated with the menu item. |
| flags | The option flags for the item. While the default is zero, the MenuItem::HasValue flag will be OR'd with the given value by the constructor. |
Definition at line 375 of file BppIconItem.hpp.
◆ GenericBppMenuIconItem() [8/9]
Constructs a new GenericBppMenuIconItem with an associated value.
- Note
- All GenericBppMenuIconItem objects must be managed by std::shared_ptr.
- Parameters
-
| icon | The image for the item's icon. |
| label | Short text presented to the user as the menu item. |
| description | Longer text optionally presented to the user to provide a better idea of what the option does. |
| value | The current value associated with the menu item. |
| flags | The option flags for the item. While the default is zero, the MenuItem::HasValue flag will be OR'd with the given value by the constructor. |
Definition at line 396 of file BppIconItem.hpp.
◆ GenericBppMenuIconItem() [9/9]
Constructs a new GenericBppMenuIconItem with an associated value.
- Note
- All GenericBppMenuIconItem objects must be managed by std::shared_ptr.
- Parameters
-
| icon | The image for the item's icon. The shared pointer is moved into this object. |
| label | Short text presented to the user as the menu item. |
| description | Longer text optionally presented to the user to provide a better idea of what the option does. |
| value | The current value associated with the menu item. |
| flags | The option flags for the item. While the default is zero, the MenuItem::HasValue flag will be OR'd with the given value by the constructor. |
Definition at line 420 of file BppIconItem.hpp.
◆ make() [1/9]
Makes a shared pointer holding a new GenericBppMenuIconItem.
- Parameters
-
| label | Short text presented to the user as the menu item. |
| flags | The option flags for the item. The default is zero: enabled, visible, no value, and not a toggle. |
- Examples:
- bppmenu.cpp.
Definition at line 435 of file BppIconItem.hpp.
◆ make() [2/9]
Makes a shared pointer holding a new GenericBppMenuIconItem.
- Parameters
-
| icon | The image for the item's icon. |
| label | Short text presented to the user as the menu item. |
| flags | The option flags for the item. The default is zero: enabled, visible, no value, and not a toggle. |
Definition at line 452 of file BppIconItem.hpp.
◆ make() [3/9]
Makes a shared pointer holding a new GenericBppMenuIconItem.
- Parameters
-
| icon | The image for the item's icon. The shared pointer is moved into this object. |
| label | Short text presented to the user as the menu item. |
| flags | The option flags for the item. The default is zero: enabled, visible, no value, and not a toggle. |
Definition at line 472 of file BppIconItem.hpp.
◆ make() [4/9]
| static std::shared_ptr<GenericBppMenuIconItem> duds::ui::menu::renderers::GenericBppMenuIconItem::make |
( |
const std::string & |
label, |
|
|
const std::string & |
description, |
|
|
Flags |
flags = Flags::Zero() |
|
) |
| |
|
inlinestatic |
Makes a shared pointer holding a new GenericBppMenuIconItem.
- Parameters
-
| label | Short text presented to the user as the menu item. |
| description | Longer text optionally presented to the user to provide a better idea of what the option does. |
| flags | The option flags for the item. The default is zero: enabled, visible, no value, and not a toggle. |
Definition at line 492 of file BppIconItem.hpp.
◆ make() [5/9]
Makes a shared pointer holding a new GenericBppMenuIconItem.
- Parameters
-
| icon | The image for the item's icon. |
| label | Short text presented to the user as the menu item. |
| description | Longer text optionally presented to the user to provide a better idea of what the option does. |
| flags | The option flags for the item. The default is zero: enabled, visible, no value, and not a toggle. |
Definition at line 513 of file BppIconItem.hpp.
◆ make() [6/9]
Makes a shared pointer holding a new GenericBppMenuIconItem.
- Parameters
-
| icon | The image for the item's icon. The shared pointer is moved into this object. |
| label | Short text presented to the user as the menu item. |
| description | Longer text optionally presented to the user to provide a better idea of what the option does. |
| flags | The option flags for the item. The default is zero: enabled, visible, no value, and not a toggle. |
Definition at line 537 of file BppIconItem.hpp.
◆ make() [7/9]
| static std::shared_ptr<GenericBppMenuIconItem> duds::ui::menu::renderers::GenericBppMenuIconItem::make |
( |
const std::string & |
label, |
|
|
const std::string & |
description, |
|
|
const std::string & |
value, |
|
|
Flags |
flags = Flags::Zero() |
|
) |
| |
|
inlinestatic |
Makes a shared pointer holding a new GenericBppMenuIconItem.
- Parameters
-
| label | Short text presented to the user as the menu item. |
| description | Longer text optionally presented to the user to provide a better idea of what the option does. |
| value | The current value associated with the menu item. |
| flags | The option flags for the item. The default is zero: enabled, visible, no value, and not a toggle. |
Definition at line 560 of file BppIconItem.hpp.
◆ make() [8/9]
Makes a shared pointer holding a new GenericBppMenuIconItem.
- Parameters
-
| icon | The image for the item's icon. |
| label | Short text presented to the user as the menu item. |
| description | Longer text optionally presented to the user to provide a better idea of what the option does. |
| value | The current value associated with the menu item. |
| flags | The option flags for the item. The default is zero: enabled, visible, no value, and not a toggle. |
Definition at line 584 of file BppIconItem.hpp.
◆ make() [9/9]
Makes a shared pointer holding a new GenericBppMenuIconItem.
- Parameters
-
| icon | The image for the item's icon. The shared pointer is moved into this object. |
| label | Short text presented to the user as the menu item. |
| description | Longer text optionally presented to the user to provide a better idea of what the option does. |
| value | The current value associated with the menu item. |
| flags | The option flags for the item. The default is zero: enabled, visible, no value, and not a toggle. |
Definition at line 611 of file BppIconItem.hpp.
The documentation for this class was generated from the following file: