|
ngscopeclient v0.2.2
|
Public Member Functions | |
| Preference (PreferenceType type, std::string identifier) | |
| Preference (const Preference &)=delete | |
| Preference (Preference &&other) | |
| Preference & | operator= (const Preference &)=delete |
| Preference & | operator= (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::Color & | GetColorRaw () const |
| void | SetBool (bool value) |
| void | SetReal (double value) |
| void | SetInt (std::int64_t value) |
| void | SetString (const 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 () |
| void | ResetToDefault () |
| Unit & | GetUnit () |
| const EnumMapping & | GetMapping () const |
| template<typename E > | |
| 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 |