TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_resources.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <cstddef>
6#include <span>
7#include <string>
8#include <string_view>
9
10namespace tachyon
11{
14
19 std::span<const std::byte> FindBuiltInResource(std::string_view path);
20
25 Result<std::string> ReadResource(std::string_view path);
26
28}
A value, or the Error saying why there is none.
Definition gui_result.h:36
Result< std::string > ReadResource(std::string_view path)
A resource's contents: the file at path when it exists, else its built-in copy (which is logged,...
std::span< const std::byte > FindBuiltInResource(std::string_view path)
The copy of a resource compiled into the library: the default themes (dark.css, light....
Definition gui_logging.h:24