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:
parent
6ccdc018b4
commit
c853bc2ba6
4 changed files with 16 additions and 16 deletions
|
@ -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 };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue