IceShard
1
A personal game engine project, with development focused on 2D/2.5D games.
Toggle main menu visibility
Loading...
Searching...
No Matches
devui
public
ice
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
9
namespace
ImGui
10
{
11
12
enum class
OkLCHPickerFlags
:
ice::u8
13
{
14
None
= 0,
15
NoAlpha
= 1 << 0,
16
// Exclusive flags
17
Chroma_NoClip
= 1 << 1,
18
Chroma_ClipToMax
= 1 << 2,
19
Chroma_ClipGreedy
= 1 << 3,
// TODO: No effect
20
All
=
NoAlpha
|
Chroma_NoClip
|
Chroma_ClipToMax
|
Chroma_ClipGreedy
,
21
};
22
23
bool
ColorPickerOkLCH
(
24
ice::String
label,
25
ice::Color
& inout_color,
26
ImGui::OkLCHPickerFlags
flags =
OkLCHPickerFlags::None
,
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
colors.hxx
devui_imgui.hxx
ImGui
Definition
devui_imgui.hxx:20
ImGui::OkLCHPickerFlags
OkLCHPickerFlags
Definition
devui_widgets.hxx:13
ImGui::OkLCHPickerFlags::None
@ None
Definition
devui_widgets.hxx:14
ImGui::OkLCHPickerFlags::Chroma_ClipToMax
@ Chroma_ClipToMax
Definition
devui_widgets.hxx:18
ImGui::OkLCHPickerFlags::Chroma_NoClip
@ Chroma_NoClip
Definition
devui_widgets.hxx:17
ImGui::OkLCHPickerFlags::All
@ All
Definition
devui_widgets.hxx:20
ImGui::OkLCHPickerFlags::Chroma_ClipGreedy
@ Chroma_ClipGreedy
Definition
devui_widgets.hxx:19
ImGui::OkLCHPickerFlags::NoAlpha
@ NoAlpha
Definition
devui_widgets.hxx:15
ImGui::ColorPickerOkLCH
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::String
ice::BasicString< char > String
Definition
string.hxx:82
ice::Color
ice::color::OkLCH Color
Definition
colors.hxx:34
ice::f32
float f32
Definition
types.hxx:16
ice::u8
std::uint8_t u8
Definition
types.hxx:24
string.hxx
Generated by
1.18.0