blob: 527320d2ff3c1f9939622f76184680da1eee9e9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* Copyright (c) 2022, kleines Filmröllchen <filmroellchen@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include "Image.h"
#include <LibCore/Object.h>
#include <LibGUI/Frame.h>
namespace PixelPaint {
class ScopeWidget
: public GUI::Frame
, public ImageClient {
C_OBJECT_ABSTRACT(ScopeWidget);
public:
virtual ~ScopeWidget() override;
void set_image(Image*);
virtual void image_changed() = 0;
void set_color_at_mouseposition(Color);
protected:
virtual void paint_event(GUI::PaintEvent&) override = 0;
Color m_color_at_mouseposition = Color::Transparent;
RefPtr<Image> m_image;
};
}
|