1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:27:46 +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,
};
@ -44,7 +44,7 @@ private:
Gfx::IntPoint m_ellipse_start_position;
Gfx::IntPoint m_ellipse_end_position;
int m_thickness { 1 };
Mode m_mode { Mode::Outline };
FillMode m_fill_mode { FillMode::Outline };
DrawMode m_draw_mode { DrawMode::FromCorner };
};