|
HikoGUI
A low latency retained GUI
|
#include <TTauri/Foundation/StaticResourceView.hpp>
Public Member Functions | |
| StaticResourceView (std::string const &filename) | |
| StaticResourceView (StaticResourceView const &other)=default | |
| StaticResourceView & | operator= (StaticResourceView const &other)=default |
| StaticResourceView (StaticResourceView &&other)=default | |
| StaticResourceView & | operator= (StaticResourceView &&other)=default |
| size_t | offset () const noexcept override |
| Offset into the resource file. | |
| size_t | size () const noexcept override |
| Size of the memory mapping. | |
| std::byte const * | data () const noexcept override |
| Pointer to the memory mapping. | |
| nonstd::span< std::byte const > | bytes () const noexcept override |
| Get a span to the memory mapping. | |
| std::string_view | string_view () const noexcept override |
| Get a span to the memory mapping. | |
Public Member Functions inherited from tt::ResourceView | |
| ResourceView (ResourceView const &other)=default | |
| ResourceView (ResourceView &&other)=default | |
| ResourceView & | operator= (ResourceView const &other)=default |
| ResourceView & | operator= (ResourceView &&other)=default |
| operator std::string_view () const noexcept | |
Static Public Member Functions | |
| static std::unique_ptr< ResourceView > | loadView (std::string const &location) |
A resource that was included in the executable.
|
inlineoverridevirtualnoexcept |
Get a span to the memory mapping.
Implements tt::ResourceView.
|
inlineoverridevirtualnoexcept |
Pointer to the memory mapping.
Implements tt::ResourceView.
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
Size of the memory mapping.
Implements tt::ResourceView.
|
inlineoverridevirtualnoexcept |
Get a span to the memory mapping.
Implements tt::ResourceView.