Provides the client's UI images: the per-component icons (decoded once from embedded PNG data and cached) and the alert-level glyphs from the platform's art provider.
More...
#include <ResourceManager.h>
|
| static wxImage | GetComponentImage (RumPi::EComponentType theImageType) |
| | Gets the icon for a component type, decoding it from its embedded PNG data on first request and caching it for subsequent calls. More...
|
| |
| static wxBitmapBundle | GetAlertLevelImage (const RumPi::EAlertLevel &alertLevel) |
| | Gets the alert-level glyph (tick / warning / error) from the platform's art provider, sized for a list control. More...
|
| |
|
| static std::map< RumPi::EComponentType, wxImage > | myComponentImageMap |
| | Cache of decoded component icons, keyed by component type. More...
|
| |
Provides the client's UI images: the per-component icons (decoded once from embedded PNG data and cached) and the alert-level glyphs from the platform's art provider.
- Author
- Eddie O'Hagan
- Date
- 8/13/2026
◆ GetAlertLevelImage()
| wxBitmapBundle ResourceManager::GetAlertLevelImage |
( |
const RumPi::EAlertLevel & |
alertLevel | ) |
|
|
static |
Gets the alert-level glyph (tick / warning / error) from the platform's art provider, sized for a list control.
- Author
- Eddie O'Hagan
- Date
- 8/13/2026
static wxBitmapBundle GetAlertLevelImage(const RumPi::EAlertLevel &alertLevel)
Gets the alert-level glyph (tick / warning / error) from the platform's art provider,...
Definition: ResourceManager.cpp:259
- Parameters
-
| [in] | alertLevel | The alert level whose glyph to get. |
- Returns
- The glyph for the alert level.
◆ GetComponentImage()
| wxImage ResourceManager::GetComponentImage |
( |
RumPi::EComponentType |
theImageType | ) |
|
|
static |
Gets the icon for a component type, decoding it from its embedded PNG data on first request and caching it for subsequent calls.
- Author
- Eddie O'Hagan
- Date
- 8/13/2026
static wxImage GetComponentImage(RumPi::EComponentType theImageType)
Gets the icon for a component type, decoding it from its embedded PNG data on first request and cachi...
Definition: ResourceManager.cpp:58
- Parameters
-
| [in] | theImageType | The component type whose icon to get. |
- Returns
- The component's icon, or an empty wxImage if the PNG failed to decode.
◆ myComponentImageMap
| std::map< RumPi::EComponentType, wxImage > ResourceManager::myComponentImageMap |
|
staticprotected |
Cache of decoded component icons, keyed by component type.
The documentation for this class was generated from the following files: