31 #include "../../Core/Text/string_format.h"
32 #include "../../Core/Math/cl_math.h"
33 #include "../../Core/Math/color.h"
34 #include "style_get_value.h"
61 template <
class Arg1,
typename... Values>
76 clamp((
int)std::round(c.
x * 255), 0, 255),
77 clamp((
int)std::round(c.
y * 255), 0, 255),
78 clamp((
int)std::round(c.
z * 255), 0, 255),
83 std::unique_ptr<StyleImpl> impl;
std::string string_format(const std::string &format)
See uicore::StringFormat for details.
Definition: string_format.h:147
Type x
Definition: vec4.h:74
Style & operator=(const Style &)=delete
Floating point color description class (for float).
Definition: color.h:630
Style property set.
Definition: style.h:43
static std::string to_rgba(const Colorf &c)
Static helper that generates a "rgba(%1,%2,%3,%4)" string for the given color.
Definition: style.h:72
void set(const std::string &properties)
Type y
Definition: vec4.h:75
Type w
Definition: vec4.h:77
void set(const std::string &properties, Arg1 arg1, Values...values)
Definition: style.h:62
StyleGetValue declared_value(const char *property_name) const
Retrieve the declared value for a property.
Style value returned by style classes.
Definition: style_get_value.h:39
Type z
Definition: vec4.h:76
StyleGetValue declared_value(const std::string &property_name) const
Definition: style.h:69
Definition: Application/application.h:35