mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:17:35 +00:00
LibGUI: Make Dialog::ScreenPosition an enum class
This commit is contained in:
parent
cdffe556c8
commit
cd5210a87a
3 changed files with 14 additions and 14 deletions
|
@ -22,7 +22,7 @@ public:
|
|||
Yes = 3,
|
||||
No = 4,
|
||||
};
|
||||
enum ScreenPosition {
|
||||
enum class ScreenPosition {
|
||||
CenterWithinParent = 0,
|
||||
|
||||
Center = 1,
|
||||
|
@ -50,12 +50,12 @@ public:
|
|||
virtual void close() override;
|
||||
|
||||
protected:
|
||||
explicit Dialog(Window* parent_window, ScreenPosition screen_position = CenterWithinParent);
|
||||
explicit Dialog(Window* parent_window, ScreenPosition = ScreenPosition::CenterWithinParent);
|
||||
|
||||
private:
|
||||
OwnPtr<Core::EventLoop> m_event_loop;
|
||||
ExecResult m_result { ExecResult::Aborted };
|
||||
int m_screen_position { CenterWithinParent };
|
||||
ScreenPosition m_screen_position { ScreenPosition::CenterWithinParent };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue