infinipaint/src/GUIStuff/Elements/ColorPickerButton.decl.hpp

21 lines
415 B
C++
Raw Normal View History

#pragma once
#include "Element.hpp"
namespace GUIStuff {
struct ColorPickerButtonData {
bool hasAlpha = false;
std::function<void()> onEdit;
};
template <typename T> class ColorPickerButton : public Element {
public:
ColorPickerButton(GUIManager& gui);
void layout(T* val, ColorPickerButtonData& d);
private:
ColorPickerButtonData data;
bool isOpen = false;
};
}