demotool/ui-colorgrading.hh
Emmanuel BENOîT 4774426962 UI - More refactoring
The idea is to split off all UI/display code from e.g. the parser. This
could take a while.
2017-11-23 14:15:17 +01:00

34 lines
820 B
C++

#pragma once
#ifndef REAL_BUILD
# include "externals.hh"
#endif
namespace ImGui {
// Full color grading controls with 2 tabs (color wheel mode / component mode).
bool ColorGradingControls(
char const* const name ,
float* const red ,
float* const green ,
float* const blue ,
const float base = 0.f ,
const float unit = 1.f ) noexcept;
// Hue/saturation wheel with XY pad. Can also be manipulated using Ctrl+Wheel
// (rotates hue) and Ctrl+Shift+Wheel (changes saturation).
bool HueSaturationPad(
char const* const name ,
float* const hue ,
float* const saturation ,
const float size = 0.f ) noexcept;
// Color selection bar.
bool ColorSelectorBar(
float* const value ,
const float base ,
const float unit ,
const ImVec4 color ,
char const* const label ) noexcept;
} // namespace ImGui