mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:57:45 +00:00
PixelPaint: Remove hand-rolled type information in favor of RTTI
This commit is contained in:
parent
ef5e9af6d3
commit
167906d02b
12 changed files with 2 additions and 22 deletions
|
@ -38,8 +38,6 @@ class Tool {
|
|||
public:
|
||||
virtual ~Tool();
|
||||
|
||||
virtual const char* class_name() const = 0;
|
||||
|
||||
virtual void on_mousedown(Layer&, GUI::MouseEvent&, GUI::MouseEvent&) { }
|
||||
virtual void on_mousemove(Layer&, GUI::MouseEvent&, GUI::MouseEvent&) { }
|
||||
virtual void on_mouseup(Layer&, GUI::MouseEvent&, GUI::MouseEvent&) { }
|
||||
|
@ -50,8 +48,6 @@ public:
|
|||
virtual void on_keyup(GUI::KeyEvent&) { }
|
||||
virtual GUI::Widget* get_properties_widget() { return nullptr; }
|
||||
|
||||
virtual bool is_move_tool() const { return false; }
|
||||
|
||||
void clear() { m_editor = nullptr; }
|
||||
void setup(ImageEditor&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue