mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
LibGUI: Add FontsChanged event and deliver it to windows and widgets
This commit is contained in:
parent
9318d9f284
commit
b40d771512
Notes:
sideshowbarker
2024-07-18 09:12:36 +09:00
Author: https://github.com/luk1337
Commit: b40d771512
Pull-request: https://github.com/SerenityOS/serenity/pull/8676
7 changed files with 39 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue