HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions
tt::StaticResourceView Class Reference

#include <TTauri/Foundation/StaticResourceView.hpp>

Inheritance diagram for tt::StaticResourceView:
tt::ResourceView

Public Member Functions

 StaticResourceView (std::string const &filename)
 
 StaticResourceView (StaticResourceView const &other)=default
 
StaticResourceViewoperator= (StaticResourceView const &other)=default
 
 StaticResourceView (StaticResourceView &&other)=default
 
StaticResourceViewoperator= (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
 
ResourceViewoperator= (ResourceView const &other)=default
 
ResourceViewoperator= (ResourceView &&other)=default
 
 operator std::string_view () const noexcept
 

Static Public Member Functions

static std::unique_ptr< ResourceViewloadView (std::string const &location)
 

Detailed Description

A resource that was included in the executable.

Member Function Documentation

◆ bytes()

nonstd::span< std::byte const > tt::StaticResourceView::bytes ( ) const
inlineoverridevirtualnoexcept

Get a span to the memory mapping.

Implements tt::ResourceView.

◆ data()

std::byte const * tt::StaticResourceView::data ( ) const
inlineoverridevirtualnoexcept

Pointer to the memory mapping.

Implements tt::ResourceView.

◆ offset()

size_t tt::StaticResourceView::offset ( ) const
inlineoverridevirtualnoexcept

Offset into the resource file.

Returns
offset into the resource file.

Implements tt::ResourceView.

◆ size()

size_t tt::StaticResourceView::size ( ) const
inlineoverridevirtualnoexcept

Size of the memory mapping.

Implements tt::ResourceView.

◆ string_view()

std::string_view tt::StaticResourceView::string_view ( ) const
inlineoverridevirtualnoexcept

Get a span to the memory mapping.

Implements tt::ResourceView.


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