mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:50:05 +00:00
47 lines
1.3 KiB
C++
47 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include <scwx/qt/settings/settings_category.hpp>
|
|
#include <scwx/qt/settings/settings_variable.hpp>
|
|
#include <scwx/qt/types/text_types.hpp>
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
namespace scwx::qt::settings
|
|
{
|
|
|
|
class TextSettings : public SettingsCategory
|
|
{
|
|
public:
|
|
explicit TextSettings();
|
|
~TextSettings();
|
|
|
|
TextSettings(const TextSettings&) = delete;
|
|
TextSettings& operator=(const TextSettings&) = delete;
|
|
|
|
TextSettings(TextSettings&&) noexcept;
|
|
TextSettings& operator=(TextSettings&&) noexcept;
|
|
|
|
SettingsVariable<std::string>&
|
|
font_family(types::FontCategory fontCategory) const;
|
|
SettingsVariable<std::string>&
|
|
font_style(types::FontCategory fontCategory) const;
|
|
SettingsVariable<double>&
|
|
font_point_size(types::FontCategory fontCategory) const;
|
|
|
|
SettingsVariable<std::int64_t>& hover_text_wrap() const;
|
|
SettingsVariable<bool>& placefile_text_drop_shadow_enabled() const;
|
|
SettingsVariable<bool>& radar_site_hover_text_enabled() const;
|
|
SettingsVariable<std::string>& tooltip_method() const;
|
|
|
|
static TextSettings& Instance();
|
|
|
|
friend bool operator==(const TextSettings& lhs, const TextSettings& rhs);
|
|
|
|
private:
|
|
class Impl;
|
|
|
|
std::unique_ptr<Impl> p;
|
|
};
|
|
|
|
} // namespace scwx::qt::settings
|