Finality Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
EditorTheme.h
Go to the documentation of this file.
1
6
#pragma once
7
8
#include <
Core/Core.h
>
9
#include <filesystem>
10
#include <imgui.h>
11
#include <string>
12
#include <vector>
13
14
namespace
FINALITY
15
{
17
struct
ThemeChoice
18
{
19
std::string
ID
;
20
std::string
Name
;
21
};
22
24
class
FAPI
EditorTheme
25
{
26
public
:
27
static
std::vector<ThemeChoice>
List
(
const
std::filesystem::path &engineAssets,
28
const
std::filesystem::path &project);
29
static
bool
Load
(
const
std::string &
id
,
const
std::filesystem::path &engineAssets,
30
const
std::filesystem::path &project, ImGuiStyle &style, std::string &error);
31
static
bool
Apply
(
const
std::string &
id
,
const
std::filesystem::path &engineAssets,
32
const
std::filesystem::path &project, std::string &error);
33
static
bool
Export
(
const
std::filesystem::path &path,
const
std::string &name, std::string &error);
34
};
35
}
Core.h
FAPI
#define FAPI
Definition
Core.h:22
FINALITY::EditorTheme
Definition
EditorTheme.h:25
FINALITY::EditorTheme::List
static std::vector< ThemeChoice > List(const std::filesystem::path &engineAssets, const std::filesystem::path &project)
FINALITY::EditorTheme::Export
static bool Export(const std::filesystem::path &path, const std::string &name, std::string &error)
FINALITY::EditorTheme::Apply
static bool Apply(const std::string &id, const std::filesystem::path &engineAssets, const std::filesystem::path &project, std::string &error)
FINALITY::EditorTheme::Load
static bool Load(const std::string &id, const std::filesystem::path &engineAssets, const std::filesystem::path &project, ImGuiStyle &style, std::string &error)
FINALITY
Definition
Asset.h:12
FINALITY::ThemeChoice
Definition
EditorTheme.h:18
FINALITY::ThemeChoice::ID
std::string ID
Definition
EditorTheme.h:19
FINALITY::ThemeChoice::Name
std::string Name
Definition
EditorTheme.h:20
FinalityEngine
src
ImGUI
EditorTheme.h
Generated by
1.18.0