serenity/Applications/PaintBrush/ColorDialog.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

21 lines
366 B
C++

#pragma once
#include <LibGUI/GDialog.h>
class GFrame;
class ColorDialog final : public GDialog {
C_OBJECT(ColorDialog)
public:
virtual ~ColorDialog() override;
Color color() const { return m_color; }
private:
explicit ColorDialog(Color, CObject* parent = nullptr);
void build();
Color m_color;
RefPtr<GFrame> m_preview_widget;
};