Public Member Functions | |
HICON | getIcon () const |
Getter for the underlying HICON. | |
Icon (const SmartUtil::tstring &filePath) | |
RAII Constructor loading a icon from a file on disc. | |
Icon (unsigned resourceId) | |
RAII Constructor loading a icon from a resource ID. | |
Icon (HICON icon) | |
RAII Constructor taking a HICON. | |
~Icon () | |
Frees the contained HICON. |
Use this class if you need RAII semantics encapsulating an HICON
Icon | ( | HICON | icon | ) | [explicit] |
RAII Constructor taking a HICON.
Note!
Class takes "control" of HICON meaning it will automatically free the contained HICON upon destruction
Icon | ( | unsigned | resourceId | ) | [explicit] |
RAII Constructor loading a icon from a resource ID.
Note!
Class takes "control" of HICON meaning it will automatically free the contained HICON upon destruction
Icon | ( | const SmartUtil::tstring & | filePath | ) | [explicit] |
RAII Constructor loading a icon from a file on disc.
Note!
Class takes "control" of HICON meaning it will automatically free the contained HICON upon destruction
~Icon | ( | ) |
Frees the contained HICON.
Frees the contained HICON meaning it will no longer be accessible or it will be destroyed
HICON getIcon | ( | ) | const |
Getter for the underlying HICON.
Use when you need to access the underlying HICON