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

LibGUI: Add FontsChanged event and deliver it to windows and widgets

This commit is contained in:
LuK1337 2021-07-12 09:57:34 +02:00 committed by Andreas Kling
parent 9318d9f284
commit b40d771512
7 changed files with 39 additions and 0 deletions

View file

@ -52,6 +52,7 @@ public:
DragMove,
Drop,
ThemeChange,
FontsChange,
ScreenRectsChange,
ActionEnter,
ActionLeave,
@ -425,6 +426,14 @@ public:
}
};
class FontsChangeEvent final : public Event {
public:
FontsChangeEvent()
: Event(Type::FontsChange)
{
}
};
class ScreenRectsChangeEvent final : public Event {
public:
explicit ScreenRectsChangeEvent(const Vector<Gfx::IntRect, 4>& rects, size_t main_screen_index)