ThemeGroup
#include "GUI/Theme/ThemeVariable.h"
Public Functions
Name | |
---|---|
ThemeGroup(const char * name, const char * id, int indent) | |
ThemeGroup & | add(const ThemeVariableKey && key, const char * name, const char * desc =nullptr, const std::optional< ImVec2 > & range =ImVec2(0.0f, FLT_MAX), float speed =1.0f, const char * format ="%.0f")<br>Add a theme variable to the group, restriced to positive values. |
ThemeGroup & | add1(const ThemeVariableKey && key, const char * name, const char * desc =nullptr, const std::optional< ImVec2 > & range =ImVec2(1.0f, FLT_MAX), float speed =1.0f, const char * format ="%.0f")<br>Add a theme variable to the group, restriced to <1, Inf) interval. |
ThemeGroup & | addF(const ThemeVariableKey && key, const char * name, const char * desc =nullptr, const std::optional< ImVec2 > & range =ImVec2(0.0f, FLT_MAX), float speed =0.01f, const char * format ="%.2f")<br>Add a theme variable to the group, restriced to <0, Inf) interval. |
ThemeGroup & | addF01(const ThemeVariableKey && key, const char * name, const char * desc =nullptr, const std::optional< ImVec2 > & range =ImVec2(0.0f, 1.0f), float speed =0.01f, const char * format ="%.2f")<br>Add a theme variable to the group, float restriced to 0-1. |
ThemeGroup & | addF1(const ThemeVariableKey && key, const char * name, const char * desc =nullptr, const std::optional< ImVec2 > & range =ImVec2(1.0f, FLT_MAX), float speed =0.01f, const char * format ="%.2f")<br>Add a theme variable to the group, float restriced to <1, Inf) interval. |
ThemeGroup & | addFN(const ThemeVariableKey && key, const char * name, const char * desc =nullptr, const std::optional< ImVec2 > & range =std::nullopt, float speed =0.01f, const char * format ="%.2f")<br>Add a theme variable to the group, unrestricted float. |
ThemeGroup & | addN(const ThemeVariableKey && key, const char * name, const char * desc =nullptr, const std::optional< ImVec2 > & range =std::nullopt, float speed =1.0f, const char * format ="%.0f")<br>Add a theme variable to the group, unrestricted range. |
Public Attributes
Name | |
---|---|
const char * | id |
int | indent |
const char * | name |
std::vector< ThemeVariable > | variables |
Public Functions Documentation
function ThemeGroup
cpp
inline ThemeGroup(
const char * name,
const char * id,
int indent
)
inline ThemeGroup(
const char * name,
const char * id,
int indent
)
function add
cpp
inline ThemeGroup & add(
const ThemeVariableKey && key,
const char * name,
const char * desc =nullptr,
const std::optional< ImVec2 > & range =ImVec2(0.0f, FLT_MAX),
float speed =1.0f,
const char * format ="%.0f"
)
inline ThemeGroup & add(
const ThemeVariableKey && key,
const char * name,
const char * desc =nullptr,
const std::optional< ImVec2 > & range =ImVec2(0.0f, FLT_MAX),
float speed =1.0f,
const char * format ="%.0f"
)
Add a theme variable to the group, restriced to positive values.
Default speed and format essentially emulates an int variable
function add1
cpp
inline ThemeGroup & add1(
const ThemeVariableKey && key,
const char * name,
const char * desc =nullptr,
const std::optional< ImVec2 > & range =ImVec2(1.0f, FLT_MAX),
float speed =1.0f,
const char * format ="%.0f"
)
inline ThemeGroup & add1(
const ThemeVariableKey && key,
const char * name,
const char * desc =nullptr,
const std::optional< ImVec2 > & range =ImVec2(1.0f, FLT_MAX),
float speed =1.0f,
const char * format ="%.0f"
)
Add a theme variable to the group, restriced to <1, Inf) interval.
See: add()
function addF
cpp
inline ThemeGroup & addF(
const ThemeVariableKey && key,
const char * name,
const char * desc =nullptr,
const std::optional< ImVec2 > & range =ImVec2(0.0f, FLT_MAX),
float speed =0.01f,
const char * format ="%.2f"
)
inline ThemeGroup & addF(
const ThemeVariableKey && key,
const char * name,
const char * desc =nullptr,
const std::optional< ImVec2 > & range =ImVec2(0.0f, FLT_MAX),
float speed =0.01f,
const char * format ="%.2f"
)
Add a theme variable to the group, restriced to <0, Inf) interval.
function addF01
cpp
inline ThemeGroup & addF01(
const ThemeVariableKey && key,
const char * name,
const char * desc =nullptr,
const std::optional< ImVec2 > & range =ImVec2(0.0f, 1.0f),
float speed =0.01f,
const char * format ="%.2f"
)
inline ThemeGroup & addF01(
const ThemeVariableKey && key,
const char * name,
const char * desc =nullptr,
const std::optional< ImVec2 > & range =ImVec2(0.0f, 1.0f),
float speed =0.01f,
const char * format ="%.2f"
)
Add a theme variable to the group, float restriced to 0-1.
function addF1
cpp
inline ThemeGroup & addF1(
const ThemeVariableKey && key,
const char * name,
const char * desc =nullptr,
const std::optional< ImVec2 > & range =ImVec2(1.0f, FLT_MAX),
float speed =0.01f,
const char * format ="%.2f"
)
inline ThemeGroup & addF1(
const ThemeVariableKey && key,
const char * name,
const char * desc =nullptr,
const std::optional< ImVec2 > & range =ImVec2(1.0f, FLT_MAX),
float speed =0.01f,
const char * format ="%.2f"
)
Add a theme variable to the group, float restriced to <1, Inf) interval.
function addFN
cpp
inline ThemeGroup & addFN(
const ThemeVariableKey && key,
const char * name,
const char * desc =nullptr,
const std::optional< ImVec2 > & range =std::nullopt,
float speed =0.01f,
const char * format ="%.2f"
)
inline ThemeGroup & addFN(
const ThemeVariableKey && key,
const char * name,
const char * desc =nullptr,
const std::optional< ImVec2 > & range =std::nullopt,
float speed =0.01f,
const char * format ="%.2f"
)
Add a theme variable to the group, unrestricted float.
function addN
cpp
inline ThemeGroup & addN(
const ThemeVariableKey && key,
const char * name,
const char * desc =nullptr,
const std::optional< ImVec2 > & range =std::nullopt,
float speed =1.0f,
const char * format ="%.0f"
)
inline ThemeGroup & addN(
const ThemeVariableKey && key,
const char * name,
const char * desc =nullptr,
const std::optional< ImVec2 > & range =std::nullopt,
float speed =1.0f,
const char * format ="%.0f"
)
Add a theme variable to the group, unrestricted range.
See: add()
Public Attributes Documentation
variable id
cpp
const char * id;
const char * id;
variable indent
cpp
int indent = 0;
int indent = 0;
variable name
cpp
const char * name;
const char * name;
variable variables
cpp
std::vector< ThemeVariable > variables;
std::vector< ThemeVariable > variables;
Updated on 2025-05-31 at 12:55:30 +0000