ladybird/Applications/PaintBrush/PaletteWidget.h
Andreas Kling d6abfbdc5a LibCore: Remove ObjectPtr in favor of RefPtr
Now that CObject is fully ref-counted, just use RefPtr everywhere! :^)
2019-09-22 00:31:54 +02:00

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;
};