|
TachyonUI 1.1.0
High-performance UI for building tools.
|
#include <gui_core/gui_result.h>#include <cstddef>#include <cstdint>#include <span>#include <string>#include <string_view>Go to the source code of this file.
Namespaces | |
| namespace | tachyon |
Enumerations | |
| enum class | tachyon::PathCaseCheck : uint8_t { tachyon::PathCaseCheck::Off , tachyon::PathCaseCheck::Warn , tachyon::PathCaseCheck::Fail } |
| What the library does when a resource file it opens is named in a case other than the one it has on disk. More... | |
Functions | |
| void | tachyon::SetPathCaseCheck (PathCaseCheck mode) |
| Sets how resource paths are checked; see PathCaseCheck. Thread safe. | |
| PathCaseCheck | tachyon::GetPathCaseCheck () |
| std::string | tachyon::FindPathCaseMismatch (std::string_view path) |
| The spelling on disk of the file or folder at path when it exists under a name that differs from path in case only: "Images/logo" gives "images/logo" on a file system that ignores case. | |
| bool | tachyon::CheckPathCase (std::string_view path) |
| Applies the PathCaseCheck mode to a resource file about to be opened: false only in Fail mode when path is in the wrong case. | |
| std::span< const std::byte > | tachyon::FindBuiltInResource (std::string_view path) |
| The copy of a resource compiled into the library: the default themes (dark.css, light.css, styles.css) and fonts (Inter, JetBrains Mono), unless the library was built with TACHYON_EMBED_RESOURCES off. | |
| Result< std::string > | tachyon::ReadResource (std::string_view path) |
| A resource's contents: the file at path when it exists, else its built-in copy (which is logged, so a theme file that went missing shows up). | |