Serenity Operating System
1/*
2 * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
3 * Copyright (c) 2022, the SerenityOS developers.
4 *
5 * SPDX-License-Identifier: BSD-2-Clause
6 */
7
8#include <LibGUI/LazyWidget.h>
9
10REGISTER_WIDGET(GUI, LazyWidget)
11
12namespace GUI {
13
14void LazyWidget::show_event(ShowEvent&)
15{
16 if (m_has_been_shown)
17 return;
18 m_has_been_shown = true;
19
20 VERIFY(on_first_show);
21 on_first_show(*this);
22}
23
24}