|
HikoGUI
A low latency retained GUI
|
#include <hikogui/static_resource_view.hpp>
Public Member Functions | |
| static_resource_view (std::string const &filename) | |
| static_resource_view (static_resource_view const &other)=default | |
| static_resource_view & | operator= (static_resource_view const &other)=default |
| static_resource_view (static_resource_view &&other)=default | |
| static_resource_view & | operator= (static_resource_view &&other)=default |
| std::size_t | offset () const noexcept override |
| Offset into the resource file. | |
| const_void_span | span () const noexcept override |
| Get a span to the memory mapping. | |
Public Member Functions inherited from v1::resource_view | |
| resource_view (resource_view const &other)=default | |
| resource_view (resource_view &&other)=default | |
| resource_view & | operator= (resource_view const &other)=default |
| resource_view & | operator= (resource_view &&other)=default |
Static Public Member Functions | |
| static std::unique_ptr< resource_view > | loadView (std::string const &location) |
| static const_void_span | get_static_resource (std::string const &filename) |
| Get the data of a static resource. | |
A resource that was included in the executable.
|
static |
Get the data of a static resource.
These are resources that where linked into the executable.
| filename | Name of the resource. |
| key_error | Thrown when static resource could not be found. |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
Get a span to the memory mapping.
Implements v1::resource_view.