|
HikoGUI
A low latency retained GUI
|
#include <hikogui/resource_view.hpp>
Public Member Functions | |
| 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 |
| virtual std::size_t | offset () const noexcept=0 |
| Offset into the resource file. | |
| virtual std::span< std::byte const > | bytes () const noexcept=0 |
| Get a span to the memory mapping. | |
| virtual std::string_view | string_view () const noexcept=0 |
| Get a span to the memory mapping. | |
| operator std::span< std::byte const > () const noexcept | |
| virtual std::size_t | size () const noexcept=0 |
| Size of the memory mapping. | |
| virtual std::byte const * | data () const noexcept=0 |
| Pointer to the memory mapping. | |
A read-only memory mapping of a resource.
|
pure virtualnoexcept |
Get a span to the memory mapping.
Implemented in v1::file_view, and v1::static_resource_view.
|
pure virtualnoexcept |
Pointer to the memory mapping.
Implemented in v1::file_view, and v1::static_resource_view.
|
pure virtualnoexcept |
Offset into the resource file.
Implemented in v1::file_view, and v1::static_resource_view.
|
pure virtualnoexcept |
Size of the memory mapping.
Implemented in v1::file_view, and v1::static_resource_view.
|
pure virtualnoexcept |
Get a span to the memory mapping.
Implemented in v1::file_view, and v1::static_resource_view.