ngscopeclient 0.1-dev+51fbda87c
Public Member Functions | Static Public Member Functions | Friends | List of all members
Preference Class Reference

Public Member Functions

 Preference (PreferenceType type, std::string identifier)
 
 Preference (const Preference &)=delete
 
 Preference (Preference &&other)
 
Preferenceoperator= (const Preference &)=delete
 
Preferenceoperator= (Preference &&other)
 
const std::string & GetIdentifier () const
 
const std::string & GetLabel () const
 
const std::string & GetDescription () const
 
void SetFont (const FontDescription &font)
 
FontDescription GetFont () const
 
std::int64_t GetEnumRaw () const
 
void SetEnumRaw (std::int64_t value)
 
PreferenceType GetType () const
 
bool GetBool () const
 
double GetReal () const
 
std::int64_t GetInt () const
 
const std::string & GetString () const
 
std::string ToString () const
 
bool GetIsVisible () const
 
ImU32 GetColor () const
 
const impl::ColorGetColorRaw () const
 
void SetBool (bool value)
 
void SetReal (double value)
 
void SetInt (std::int64_t value)
 
void SetString (std::string value)
 
void SetColor (const ImU32 &value)
 
void SetColorRaw (const impl::Color &value)
 
void SetLabel (std::string label)
 
void SetDescription (std::string description)
 
bool HasUnit ()
 
UnitGetUnit ()
 
const EnumMappingGetMapping () const
 
template<typename E >
GetEnum () const
 
template<typename E >
void SetEnum (E value)
 

Static Public Member Functions

static impl::PreferenceBuilder Int (std::string identifier, int64_t defaultValue)
 
static impl::PreferenceBuilder Real (std::string identifier, double defaultValue)
 
static impl::PreferenceBuilder Bool (std::string identifier, bool defaultValue)
 
static impl::PreferenceBuilder String (std::string identifier, std::string defaultValue)
 
static impl::PreferenceBuilder Color (std::string identifier, const ImU32 &defaultValue)
 
static impl::PreferenceBuilder EnumRaw (std::string identifier, std::int64_t defaultValue)
 
static impl::PreferenceBuilder Font (std::string identifier, FontDescription defaultValue)
 
template<typename E >
static impl::PreferenceBuilder Enum (std::string identifier, E defaultValue)
 

Friends

class impl::PreferenceBuilder
 

The documentation for this class was generated from the following files: