ladybird/Userland/Applications/DisplaySettings/FontSettingsWidget.h
Thomas Keppler a1f8c10fe5 FontSettingsWidget: Promote Labels as instance members
In order to not resolve the widgets twice, we capture them in ivars.
2021-05-24 09:08:23 +01:00

30 lines
509 B
C++

/*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGUI/Label.h>
#include <LibGUI/Widget.h>
namespace DisplaySettings {
class FontSettingsWidget : public GUI::Widget {
C_OBJECT(FontSettingsWidget);
public:
virtual ~FontSettingsWidget() override;
void apply_settings();
private:
FontSettingsWidget();
RefPtr<GUI::Label> m_default_font_label;
RefPtr<GUI::Label> m_fixed_width_font_label;
};
}