1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:18:11 +00:00

PixelPaint: Rename Mode to FillMode for Ellipse/Rectangle

The prior commits add the `DrawMode` enum to keep track of where
the shape is being drawn from. With this addition, the prior `Mode`
enum name is confusing, so this commit renames it to `FillMode` to
be more explicit :^)
This commit is contained in:
Mustafa Quraish 2021-08-26 16:03:56 -04:00 committed by Andreas Kling
parent 6ccdc018b4
commit c853bc2ba6
4 changed files with 16 additions and 16 deletions

View file

@ -27,7 +27,7 @@ public:
virtual Gfx::StandardCursor cursor() override { return Gfx::StandardCursor::Crosshair; }
private:
enum class Mode {
enum class FillMode {
Outline,
Fill,
Gradient,
@ -44,7 +44,7 @@ private:
GUI::MouseButton m_drawing_button { GUI::MouseButton::None };
Gfx::IntPoint m_rectangle_start_position;
Gfx::IntPoint m_rectangle_end_position;
Mode m_mode { Mode::Outline };
FillMode m_fill_mode { FillMode::Outline };
DrawMode m_draw_mode { DrawMode::FromCorner };
};