Starting work on moving GUI to event system (doesnt compile)
This commit is contained in:
parent
f1a855edc3
commit
ef7dfcef05
69 changed files with 4296 additions and 3709 deletions
20
src/GUIStuff/Elements/ColorPickerButton.decl.hpp
Normal file
20
src/GUIStuff/Elements/ColorPickerButton.decl.hpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#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;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue