mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-27 01:50:24 +00:00
d6abfbdc5a
Now that CObject is fully ref-counted, just use RefPtr everywhere! :^)
20 lines
463 B
C++
20 lines
463 B
C++
#pragma once
|
|
|
|
#include <LibGUI/GFrame.h>
|
|
|
|
class PaintableWidget;
|
|
|
|
class PaletteWidget final : public GFrame {
|
|
C_OBJECT(PaletteWidget)
|
|
public:
|
|
explicit PaletteWidget(PaintableWidget&, GWidget* parent);
|
|
virtual ~PaletteWidget() override;
|
|
|
|
void set_primary_color(Color);
|
|
void set_secondary_color(Color);
|
|
|
|
private:
|
|
PaintableWidget& m_paintable_widget;
|
|
RefPtr<GFrame> m_primary_color_widget;
|
|
RefPtr<GFrame> m_secondary_color_widget;
|
|
};
|