#include <src/imgui/imgui.h>
|
| static ImColor | HSV (float h, float s, float v, float a=1.0f) |
| |
◆ ImColor() [1/5]
ImVec4 Value
Definition imgui.h:2188
float x
Definition imgui.h:259
float y
Definition imgui.h:259
float z
Definition imgui.h:259
float w
Definition imgui.h:259
◆ ImColor() [2/5]
| ImColor::ImColor |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a = 255 |
|
) |
| |
|
inline |
2191{
float sc = 1.0f / 255.0f;
Value.
x = (float)r * sc;
Value.
y = (float)g * sc;
Value.
z = (float)b * sc;
Value.
w = (float)a * sc; }
◆ ImColor() [3/5]
| ImColor::ImColor |
( |
ImU32 |
rgba | ) |
|
|
inline |
◆ ImColor() [4/5]
| ImColor::ImColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a = 1.0f |
|
) |
| |
|
inline |
◆ ImColor() [5/5]
EIGEN_DEVICE_FUNC ColXpr col(Index i)
This is the const version of col().
Definition BlockMethods.h:838
References col().
◆ HSV()
| static ImColor ImColor::HSV |
( |
float |
h, |
|
|
float |
s, |
|
|
float |
v, |
|
|
float |
a = 1.0f |
|
) |
| |
|
inlinestatic |
2200{
float r, g,
b;
ImGui::ColorConvertHSVtoRGB(h, s, v, r, g, b);
return ImColor(r, g, b, a); }
IMGUI_API void ColorConvertHSVtoRGB(float h, float s, float v, float &out_r, float &out_g, float &out_b)
Definition imgui.cpp:1843
ImColor()
Definition imgui.h:2190
References ImGui::ColorConvertHSVtoRGB().
Referenced by ShowDemoWindowLayout(), and ShowDemoWindowWidgets().
◆ operator ImU32()
| ImColor::operator ImU32 |
( |
| ) |
const |
|
inline |
◆ operator ImVec4()
| ImColor::operator ImVec4 |
( |
| ) |
const |
|
inline |
◆ SetHSV()
| void ImColor::SetHSV |
( |
float |
h, |
|
|
float |
s, |
|
|
float |
v, |
|
|
float |
a = 1.0f |
|
) |
| |
|
inline |
◆ Value
The documentation for this struct was generated from the following file: