mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-05 15:27:04 +00:00
LibGUI: Add Window::on_font_change() hook
This commit is contained in:
committed by
Andreas Kling
parent
b7cac829ae
commit
7304556ff2
@@ -618,6 +618,9 @@ void Window::handle_fonts_change_event(FontsChangeEvent& event)
|
||||
|
||||
if (is_auto_shrinking())
|
||||
schedule_relayout();
|
||||
|
||||
if (on_font_change)
|
||||
on_font_change();
|
||||
}
|
||||
|
||||
void Window::handle_screen_rects_change_event(ScreenRectsChangeEvent& event)
|
||||
|
||||
@@ -99,6 +99,7 @@ public:
|
||||
Close,
|
||||
};
|
||||
|
||||
Function<void()> on_font_change;
|
||||
Function<void()> on_close;
|
||||
Function<CloseRequestDecision()> on_close_request;
|
||||
Function<void(bool is_preempted)> on_input_preemption_change;
|
||||
|
||||
Reference in New Issue
Block a user