载入中...
搜索中...
未找到
#include "ui/Theme.h"#include <imgui.h>#include <algorithm>#include <cctype>#include <unordered_map>#include <unordered_set>命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::ui |
函数 | |
| StyleClassStatus | eve::ui::defineStyleClass (const std::string &name, const std::string &parent="") |
| Declares or replaces one sparse style class. @thread UI thread only. @reentrancy Does not invoke callbacks. | |
| StyleClassStatus | eve::ui::setStyleClassColor (const std::string &name, const std::string &property, float r, float g, float b, float a) |
| Sets text/background/border/accent RGBA on an existing style class. | |
| StyleClassStatus | eve::ui::setStyleClassMetric (const std::string &name, const std::string &property, float x, float y=0.f) |
| Sets padding, rounding, or alpha on an existing style class. | |
| StyleClassStatus | eve::ui::resolveStyleClass (const std::string &name, StyleClass *out) |
| Resolves inheritance into a sparse class and reports an explicit lookup status. | |
| void | eve::ui::clearStyleClasses () |
| Clears user-defined style classes. Intended for runtime/test teardown. | |
| const char * | eve::ui::styleClassStatusName (StyleClassStatus status) |
| Stable script-facing spelling of a mutation status. | |
| Theme & | eve::ui::globalTheme () |
| Global theme. | |
| const std::string & | eve::ui::globalThemeName () |
| Current preset name: "dark", "light", or "custom". | |
| void | eve::ui::setGlobalTheme (const Theme &theme) |
| Sets the global theme. | |
| void | eve::ui::setGlobalTheme (const Theme &theme, const std::string &name) |
| Sets the global theme. | |
| bool | eve::ui::setThemeByName (const std::string &name) |
| Apply a named preset ("dark" / "light"). Case-insensitive. Returns false if unknown. | |
| void | eve::ui::setThemeUiScale (float scale) |
| Logical (point-space) UI scale. Default 1.0. | |
| float | eve::ui::themeUiScale () |
| Theme ui scale. | |
| void | eve::ui::setThemeDpiScale (float dpiScale) |
| Sets the theme dpi scale. | |
| float | eve::ui::themeDpiScale () |
| Theme dpi scale. | |
| void | eve::ui::applyThemeToImGui (const Theme &theme) |
| Push tokens into ImGui style. Metrics are multiplied by uiScale (default: themeUiScale()). | |
| void | eve::ui::applyThemeToImGui (const Theme &theme, float uiScale) |
| Applies theme to im gui. | |