14#ifndef SEEN_INK_EXTENSION_PARAM_H__
15#define SEEN_INK_EXTENSION_PARAM_H__
116 virtual const std::string &
set(
const std::string &in);
The object that is the basis for the Extension system.
An error class for when a parameter is called on a type it is not.
A class to represent the parameter of an extension.
bool get_bool() const
Wrapper to cast to the object and use its function.
double set_float(double in)
Wrapper to cast to the object and use it's function.
const char * get_optiongroup() const
Wrapper to cast to the object and use it's function.
unsigned int set_color(unsigned int in)
Wrapper to cast to the object and use it's function.
bool get_optiongroup_contains(const char *value) const
char * _name
The name of this parameter.
const char * get_tooltip() const override
unsigned int get_color() const
Wrapper to cast to the object and use it's function.
virtual const std::string & set(const std::string &in)
Calls string_to_value and then saves the result in the prefs.
static InxParameter * make(Inkscape::XML::Node *in_repr, Inkscape::Extension::Extension *in_ext)
Creates a new extension parameter for usage in a prefdialog.
const char * set_optiongroup(const char *in)
Wrapper to cast to the object and use it's function.
virtual std::string value_to_string() const
Gets the current value of the parameter in a string form.
int set_int(int in)
Wrapper to cast to the object and use it's function.
const char * get_string() const
Wrapper to cast to the object and use it's function.
double get_float() const
Wrapper to cast to the object and use it's function.
char const * name() const
char * _description
Extended description of the parameter (currently shown as tooltip on hover).
const char * set_string(const char *in)
Wrapper to cast to the object and use it's function.
int get_int() const
Wrapper to cast to the object and use it's function.
static constexpr int GUI_PARAM_WIDGETS_SPACING
Recommended spacing between the widgets making up a single Parameter (e.g.
Glib::ustring pref_name() const
Build preference name for the current parameter.
InxParameter(Inkscape::XML::Node *in_repr, Inkscape::Extension::Extension *ext)
char * _text
Parameter text to show as the GUI label.
bool set_bool(bool in)
Wrapper to cast to the object and use it's function.
virtual void string_to_value(const std::string &in)
Sets the current value of the parameter from a string.
Interface for refcounted XML nodes.