IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
devui_widgets.hxx
Go to the documentation of this file.
1
3
4#pragma once
5#include <ice/colors.hxx>
6#include <ice/string.hxx>
7#include <ice/devui_imgui.hxx>
8
9namespace ImGui
10{
11
13 {
14 None = 0,
15 NoAlpha = 1 << 0,
16 // Exclusive flags
17 Chroma_NoClip = 1 << 1,
19 Chroma_ClipGreedy = 1 << 3, // TODO: No effect
21 };
22
24 ice::String label,
25 ice::Color& inout_color,
27 ice::Color const* ref_color = nullptr,
28 ice::f32 max_chroma = 0.32f // TODO: Convert to HDR'ish flag. (P3/RC2020 colorspace flags?)
29 ) noexcept;
30
31} // namespace ImGui
Definition devui_imgui.hxx:20
OkLCHPickerFlags
Definition devui_widgets.hxx:13
@ None
Definition devui_widgets.hxx:14
@ Chroma_ClipToMax
Definition devui_widgets.hxx:18
@ Chroma_NoClip
Definition devui_widgets.hxx:17
@ All
Definition devui_widgets.hxx:20
@ Chroma_ClipGreedy
Definition devui_widgets.hxx:19
@ NoAlpha
Definition devui_widgets.hxx:15
bool ColorPickerOkLCH(ice::String label, ice::Color &inout_color, ImGui::OkLCHPickerFlags flags=OkLCHPickerFlags::None, ice::Color const *ref_color=nullptr, ice::f32 max_chroma=0.32f) noexcept
ice::BasicString< char > String
Definition string.hxx:82
ice::color::OkLCH Color
Definition colors.hxx:34
float f32
Definition types.hxx:16
std::uint8_t u8
Definition types.hxx:24