SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SDL::TrayRef Struct Reference

Semi-safe reference for Tray.

Inheritance diagram for SDL::TrayRef:
Inheritance graph
[legend]
Collaboration diagram for SDL::TrayRef:
Collaboration graph
[legend]

Public Member Functions

 TrayRef (TrayParam resource)
 Constructs from TrayParam. More...
 
 TrayRef (const TrayRef &other)
 Copy constructor.
 
 ~TrayRef ()
 Destructor.
 
- Public Member Functions inherited from SDL::Tray
constexpr Tray ()=default
 Default ctor.
 
constexpr Tray (const TrayRaw resource)
 Constructs from TrayParam. More...
 
constexpr Tray (const Tray &other)=delete
 Copy constructor.
 
constexpr Tray (Tray &&other)
 Move constructor.
 
constexpr Tray (const TrayRef &other)=delete
 
constexpr Tray (TrayRef &&other)=delete
 
 Tray (SurfaceParam icon, StringParam tooltip)
 Create an icon to be placed in the operating system's tray, or equivalent. More...
 
 ~Tray ()
 Destructor.
 
Trayoperator= (Tray other)
 Assignment operator.
 
constexpr TrayRaw get () const
 Retrieves underlying TrayRaw.
 
constexpr TrayRaw release ()
 Retrieves underlying TrayRaw and clear this.
 
constexpr auto operator<=> (const Tray &other) const =default
 Comparison.
 
constexpr bool operator== (std::nullptr_t _) const
 Comparison.
 
constexpr operator bool () const
 Converts to bool.
 
constexpr operator TrayParam () const
 Converts to TrayParam.
 
void Destroy ()
 Destroys a tray object. More...
 
void SetIcon (SurfaceParam icon)
 Updates the system tray icon's icon. More...
 
void SetTooltip (StringParam tooltip)
 Updates the system tray icon's tooltip. More...
 
TrayMenu CreateMenu ()
 Create a menu for a system tray. More...
 
TrayMenu GetMenu () const
 Gets a previously created tray menu. More...
 

Constructor & Destructor Documentation

◆ TrayRef()

SDL::TrayRef::TrayRef ( TrayParam  resource)
inline
Parameters
resourcea TrayRaw or Tray.

This does not takes ownership!


The documentation for this struct was generated from the following file: