mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-11-04 00:00:04 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			52 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
	
		
			1.2 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
 | 
						|
{
 | 
						|
namespace qt
 | 
						|
{
 | 
						|
namespace 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<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 settings
 | 
						|
} // namespace qt
 | 
						|
} // namespace scwx
 |