HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions
v1::resource_view Class Referenceabstract

#include <hikogui/resource_view.hpp>

Inheritance diagram for v1::resource_view:
v1::static_resource_view v1::writable_resource_view v1::file_view

Public Member Functions

 resource_view (resource_view const &other)=default
 
 resource_view (resource_view &&other)=default
 
resource_viewoperator= (resource_view const &other)=default
 
resource_viewoperator= (resource_view &&other)=default
 
virtual std::size_t offset () const noexcept=0
 Offset into the resource file.
 
virtual const_void_span span () const noexcept=0
 Get a span to the memory mapping.
 

Detailed Description

A read-only memory mapping of a resource.

Member Function Documentation

◆ offset()

virtual std::size_t v1::resource_view::offset ( ) const
pure virtualnoexcept

Offset into the resource file.

Returns
offset into the resource file.

Implemented in v1::file_view, and v1::static_resource_view.

◆ span()

virtual const_void_span v1::resource_view::span ( ) const
pure virtualnoexcept

Get a span to the memory mapping.

Implemented in v1::file_view, and v1::static_resource_view.


The documentation for this class was generated from the following file: