Widgets Additions and sketch3d new gui
This commit is contained in:
parent
aecc75828b
commit
762268387e
44 changed files with 1015 additions and 322 deletions
18
Widgets/public/widgets/ColorPickerWidget.hpp
Normal file
18
Widgets/public/widgets/ColorPickerWidget.hpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include "Widget.hpp"
|
||||
|
||||
namespace tp {
|
||||
class RGBPickerWidget : public Widget {
|
||||
public:
|
||||
RGBPickerWidget() = default;
|
||||
|
||||
void process(const EventHandler& events) override;
|
||||
void draw(Canvas& canvas) override;
|
||||
|
||||
[[nodiscard]] bool processesEvents() const override { return true; }
|
||||
|
||||
public:
|
||||
Canvas::ColorWheel mColorWheel;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue