Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::LivePathEffect::ColorPickerParam Class Reference

#include <colorpicker.h>

Inheritance diagram for Inkscape::LivePathEffect::ColorPickerParam:
Inkscape::LivePathEffect::Parameter

Public Member Functions

 ColorPickerParam (const Glib::ustring &label, const Glib::ustring &tip, const Glib::ustring &key, Inkscape::UI::Widget::Registry *wr, Effect *effect, std::optional< Colors::Color >={})
 
 ~ColorPickerParam () override=default
 
Gtk::Widget * param_newWidget () override
 
bool param_readSVGValue (const gchar *strvalue) override
 
void param_update_default (const gchar *default_value) override
 
Glib::ustring param_getSVGValue () const override
 
Glib::ustring param_getDefaultSVGValue () const override
 
void param_setValue (std::optional< Colors::Color > newvalue)
 
void param_set_default () override
 
std::optional< Colors::Colorget_value () const
 
ParamType paramType () const override
 
- Public Member Functions inherited from Inkscape::LivePathEffect::Parameter
 Parameter (Glib::ustring label, Glib::ustring tip, Glib::ustring key, Inkscape::UI::Widget::Registry *wr, Effect *effect)
 
virtual ~Parameter ()
 
 Parameter (const Parameter &)=delete
 
Parameteroperator= (const Parameter &)=delete
 
virtual bool param_readSVGValue (char const *strvalue)=0
 
virtual void param_widget_is_visible (bool is_visible)
 
virtual void param_widget_is_enabled (bool is_enabled)
 
void write_to_SVG ()
 
void read_from_SVG ()
 
void setUpdating (bool updating)
 
bool getUpdating () const
 
virtual void param_update_default (char const *default_value)=0
 
Glib::ustring const * param_getTooltip () const
 
virtual bool providesKnotHolderEntities () const
 
virtual void addKnotHolderEntities (KnotHolder *, SPItem *)
 
virtual void addCanvasIndicators (SPLPEItem const *, std::vector< Geom::PathVector > &)
 
virtual void param_editOncanvas (SPItem *, SPDesktop *)
 
virtual void param_setup_nodepath (Inkscape::NodePath::Path *)
 
virtual void param_transform_multiply (Geom::Affine const &, bool set)
 
virtual std::vector< SPObject * > param_get_satellites ()
 
void param_higlight (bool highlight)
 
void change_selection (Inkscape::Selection *selection)
 
void update_satellites ()
 
EffectType effectType () const
 
void connect_selection_changed ()
 

Private Member Functions

 ColorPickerParam (const ColorPickerParam &)=delete
 
ColorPickerParamoperator= (const ColorPickerParam &)=delete
 

Private Attributes

std::optional< Colors::Colorvalue
 
std::optional< Colors::Colordefvalue
 

Additional Inherited Members

- Public Attributes inherited from Inkscape::LivePathEffect::Parameter
sigc::scoped_connection selection_changed_connection
 
Glib::ustring param_key
 
Glib::ustring param_tooltip
 
Inkscape::UI::Widget::Registryparam_wr
 
Glib::ustring param_label
 
bool oncanvas_editable
 
bool widget_is_visible
 
bool widget_is_enabled
 
- Protected Member Functions inherited from Inkscape::LivePathEffect::Parameter
void param_write_to_repr (const char *svgd)
 
- Protected Attributes inherited from Inkscape::LivePathEffect::Parameter
bool _updating = false
 
Inkscape::Display::TemporaryItemownerlocator = nullptr
 
Effectparam_effect
 

Detailed Description

Definition at line 18 of file colorpicker.h.

Constructor & Destructor Documentation

◆ ColorPickerParam() [1/2]

Inkscape::LivePathEffect::ColorPickerParam::ColorPickerParam ( const Glib::ustring &  label,
const Glib::ustring &  tip,
const Glib::ustring &  key,
Inkscape::UI::Widget::Registry wr,
Effect effect,
std::optional< Colors::Color default_color = {} 
)

Definition at line 26 of file colorpicker.cpp.

◆ ~ColorPickerParam()

Inkscape::LivePathEffect::ColorPickerParam::~ColorPickerParam ( )
overridedefault

◆ ColorPickerParam() [2/2]

Inkscape::LivePathEffect::ColorPickerParam::ColorPickerParam ( const ColorPickerParam )
privatedelete

Member Function Documentation

◆ get_value()

◆ operator=()

ColorPickerParam & Inkscape::LivePathEffect::ColorPickerParam::operator= ( const ColorPickerParam )
privatedelete

◆ param_getDefaultSVGValue()

Glib::ustring Inkscape::LivePathEffect::ColorPickerParam::param_getDefaultSVGValue ( ) const
overridevirtual

Implements Inkscape::LivePathEffect::Parameter.

Definition at line 61 of file colorpicker.cpp.

References defvalue.

◆ param_getSVGValue()

Glib::ustring Inkscape::LivePathEffect::ColorPickerParam::param_getSVGValue ( ) const
overridevirtual

Implements Inkscape::LivePathEffect::Parameter.

Definition at line 55 of file colorpicker.cpp.

References value.

◆ param_newWidget()

◆ param_readSVGValue()

bool Inkscape::LivePathEffect::ColorPickerParam::param_readSVGValue ( const gchar *  strvalue)
override

Definition at line 48 of file colorpicker.cpp.

References param_setValue().

◆ param_set_default()

void Inkscape::LivePathEffect::ColorPickerParam::param_set_default ( )
overridevirtual

Implements Inkscape::LivePathEffect::Parameter.

Definition at line 36 of file colorpicker.cpp.

References defvalue, and param_setValue().

◆ param_setValue()

void Inkscape::LivePathEffect::ColorPickerParam::param_setValue ( std::optional< Colors::Color newvalue)

Definition at line 94 of file colorpicker.cpp.

References value.

Referenced by param_readSVGValue(), and param_set_default().

◆ param_update_default()

void Inkscape::LivePathEffect::ColorPickerParam::param_update_default ( const gchar *  default_value)
override

Definition at line 42 of file colorpicker.cpp.

References defvalue.

◆ paramType()

ParamType Inkscape::LivePathEffect::ColorPickerParam::paramType ( ) const
inlineoverridevirtual

Member Data Documentation

◆ defvalue

std::optional<Colors::Color> Inkscape::LivePathEffect::ColorPickerParam::defvalue
private

Definition at line 45 of file colorpicker.h.

Referenced by param_getDefaultSVGValue(), param_set_default(), and param_update_default().

◆ value

std::optional<Colors::Color> Inkscape::LivePathEffect::ColorPickerParam::value
private

Definition at line 44 of file colorpicker.h.

Referenced by get_value(), param_getSVGValue(), param_newWidget(), and param_setValue().


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