1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

LibGUI: Hook up GWindow event dispatch for paint and mouse events.

This commit is contained in:
Andreas Kling 2019-01-20 07:03:38 +01:00
parent dbe83f3a83
commit ea6678b7b3
9 changed files with 72 additions and 30 deletions

View file

@ -73,7 +73,7 @@ public:
return m_window;
}
void setWindow(GWindow*);
void set_window(GWindow*);
GWidget* parentWidget() { return static_cast<GWidget*>(parent()); }
const GWidget* parentWidget() const { return static_cast<const GWidget*>(parent()); }
@ -84,7 +84,7 @@ public:
const Font& font() const { return *m_font; }
void setFont(RetainPtr<Font>&&);
virtual GraphicsBitmap* backing();
GraphicsBitmap* backing();
private:
GWindow* m_window { nullptr };