1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:47:37 +00:00

LibGUI: Put all classes in the GUI namespace and remove the leading G

This took me a moment. Welcome to the new world of GUI::Widget! :^)
This commit is contained in:
Andreas Kling 2020-02-02 15:07:41 +01:00
parent 2d39da5405
commit c5bd9d4ed1
337 changed files with 5400 additions and 4816 deletions

View file

@ -53,8 +53,8 @@ public:
Rect rect() const { return m_rect; }
void set_rect(const Rect& rect) { m_rect = rect; }
GButton* button() { return m_button; }
void set_button(GButton* button) { m_button = button; }
GUI::Button* button() { return m_button; }
void set_button(GUI::Button* button) { m_button = button; }
void set_active(bool active) { m_active = active; }
bool is_active() const { return m_active; }
@ -68,7 +68,7 @@ private:
WindowIdentifier m_identifier;
String m_title;
Rect m_rect;
RefPtr<GButton> m_button;
RefPtr<GUI::Button> m_button;
RefPtr<GraphicsBitmap> m_icon;
bool m_active { false };
bool m_minimized { false };
@ -89,7 +89,7 @@ public:
Window& ensure_window(const WindowIdentifier&);
void remove_window(const WindowIdentifier&);
Function<NonnullRefPtr<GButton>(const WindowIdentifier&)> aid_create_button;
Function<NonnullRefPtr<GUI::Button>(const WindowIdentifier&)> aid_create_button;
private:
HashMap<WindowIdentifier, NonnullOwnPtr<Window>> m_windows;