/* * Copyright (c) 2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace GUI { class FontPicker final : public GUI::Dialog { C_OBJECT(FontPicker); public: virtual ~FontPicker() override; RefPtr font() const { return m_font; } void set_font(const Gfx::Font*); private: FontPicker(Window* parent_window = nullptr, const Gfx::Font* current_font = nullptr, bool fixed_width_only = false); void update_font(); const bool m_fixed_width_only; RefPtr m_font; RefPtr m_family_list_view; RefPtr m_variant_list_view; RefPtr m_size_list_view; RefPtr m_size_spin_box; RefPtr