|
| TrayBase (SurfaceBase &icon, StringParam tooltip) |
| Create an icon to be placed in the operating system's tray, or equivalent.
|
|
void | SetIcon (SurfaceBase &icon) |
| Updates the system tray icon's icon.
|
|
void | SetTooltip (StringParam tooltip) |
| Updates the system tray icon's tooltip.
|
|
TrayMenu | CreateMenu () |
| Create a menu for a system tray.
|
|
TrayMenu | GetMenu () const |
| Gets a previously created tray menu.
|
|
constexpr | Resource (T resource={}) |
| Constructs the underlying resource.
|
|
constexpr | Resource (std::nullptr_t) |
| Equivalent to default ctor.
|
|
constexpr | Resource (std::nullopt_t) |
| Equivalent to default ctor.
|
|
| Resource (const Resource &other)=delete |
|
| Resource (Resource &&other)=delete |
|
constexpr | Resource (SDL_Tray * resource={}) |
| Constructs the underlying resource.
|
|
constexpr | Resource (std::nullptr_t) |
| Equivalent to default ctor.
|
|
constexpr | Resource (std::nullopt_t) |
| Equivalent to default ctor.
|
|
| Resource (const Resource &other)=delete |
|
| Resource (Resource &&other)=delete |
|
Resource & | operator= (const Resource &other)=delete |
|
Resource & | operator= (Resource &&other)=delete |
|
constexpr | operator bool () const |
| True if contains a valid resource.
|
|
constexpr bool | operator== (const Resource &other) const=default |
| Comparison.
|
|
constexpr bool | operator== (std::nullopt_t) const |
| Comparison.
|
|
constexpr bool | operator== (std::nullptr_t) const |
| Comparison.
|
|
constexpr SDL_Tray * | get () const |
| Return contained resource;.
|
|
constexpr SDL_Tray * | release (SDL_Tray * newResource={}) |
| Return contained resource and empties or replace value.
|
|
constexpr const SDL_Tray * | operator-> () const |
| Access to fields.
|
|
constexpr SDL_Tray * | operator-> () |
| Access to fields.
|
|