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

#include <text.h>

Inheritance diagram for Inkscape::LivePathEffect::TextParam:
Inkscape::LivePathEffect::Parameter Inkscape::LivePathEffect::TextParamInternal

Public Member Functions

 TextParam (const Glib::ustring &label, const Glib::ustring &tip, const Glib::ustring &key, Inkscape::UI::Widget::Registry *wr, Effect *effect, const Glib::ustring default_value="")
 
 ~TextParam () override
 
Gtk::Widget * param_newWidget () override
 
bool param_readSVGValue (const gchar *strvalue) override
 
Glib::ustring param_getSVGValue () const override
 
Glib::ustring param_getDefaultSVGValue () const override
 
void param_setValue (Glib::ustring newvalue)
 
void param_hide_canvas_text ()
 
void setTextParam (Inkscape::UI::Widget::RegisteredText *rsu)
 
void param_set_default () override
 
void param_update_default (const gchar *default_value) override
 
void setPos (Geom::Point pos)
 
void setPosAndAnchor (const Geom::Piecewise< Geom::D2< Geom::SBasis > > &pwd2, const double t, const double length, bool use_curvature=false)
 
void setAnchor (double x_value, double y_value)
 
const Glib::ustring get_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

 TextParam (const TextParam &)=delete
 
TextParamoperator= (const TextParam &)=delete
 

Private Attributes

double anchor_x
 
double anchor_y
 
Glib::ustring value
 
Glib::ustring defvalue
 
CanvasItemPtr< CanvasItemTextcanvas_text
 

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 28 of file text.h.

Constructor & Destructor Documentation

◆ TextParam() [1/2]

Inkscape::LivePathEffect::TextParam::TextParam ( const Glib::ustring &  label,
const Glib::ustring &  tip,
const Glib::ustring &  key,
Inkscape::UI::Widget::Registry wr,
Effect effect,
const Glib::ustring  default_value = "" 
)

Definition at line 30 of file text.cpp.

References canvas_text, desktop, and SPDesktop::getCanvasTemp().

◆ ~TextParam()

Inkscape::LivePathEffect::TextParam::~TextParam ( )
overridedefault

◆ TextParam() [2/2]

Inkscape::LivePathEffect::TextParam::TextParam ( const TextParam )
privatedelete

Member Function Documentation

◆ get_value()

const Glib::ustring Inkscape::LivePathEffect::TextParam::get_value ( ) const
inline

Definition at line 54 of file text.h.

References value.

◆ operator=()

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

◆ param_getDefaultSVGValue()

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

Implements Inkscape::LivePathEffect::Parameter.

Definition at line 113 of file text.cpp.

References defvalue.

◆ param_getSVGValue()

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

◆ param_hide_canvas_text()

void Inkscape::LivePathEffect::TextParam::param_hide_canvas_text ( )

◆ param_newWidget()

◆ param_readSVGValue()

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

Definition at line 100 of file text.cpp.

References param_setValue().

◆ param_set_default()

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

Implements Inkscape::LivePathEffect::Parameter.

Definition at line 45 of file text.cpp.

References defvalue, and param_setValue().

◆ param_setValue()

◆ param_update_default()

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

Definition at line 51 of file text.cpp.

References defvalue.

Referenced by Inkscape::LivePathEffect::LPEMeasureSegments::LPEMeasureSegments().

◆ paramType()

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

Implements Inkscape::LivePathEffect::Parameter.

Definition at line 55 of file text.h.

References Inkscape::LivePathEffect::TEXT.

◆ setAnchor()

void Inkscape::LivePathEffect::TextParam::setAnchor ( double  x_value,
double  y_value 
)

Definition at line 90 of file text.cpp.

References anchor_x, anchor_y, and canvas_text.

Referenced by Inkscape::LivePathEffect::LPETextLabel::doEffect_pwd2().

◆ setPos()

void Inkscape::LivePathEffect::TextParam::setPos ( Geom::Point  pos)

Definition at line 64 of file text.cpp.

References canvas_text.

Referenced by Inkscape::LivePathEffect::LPETextLabel::doEffect_pwd2().

◆ setPosAndAnchor()

void Inkscape::LivePathEffect::TextParam::setPosAndAnchor ( const Geom::Piecewise< Geom::D2< Geom::SBasis > > &  pwd2,
const double  t,
const double  length,
bool  use_curvature = false 
)

◆ setTextParam()

void Inkscape::LivePathEffect::TextParam::setTextParam ( Inkscape::UI::Widget::RegisteredText rsu)

Member Data Documentation

◆ anchor_x

double Inkscape::LivePathEffect::TextParam::anchor_x
private

Definition at line 60 of file text.h.

Referenced by setAnchor().

◆ anchor_y

double Inkscape::LivePathEffect::TextParam::anchor_y
private

Definition at line 61 of file text.h.

Referenced by setAnchor().

◆ canvas_text

CanvasItemPtr<CanvasItemText> Inkscape::LivePathEffect::TextParam::canvas_text
private

◆ defvalue

Glib::ustring Inkscape::LivePathEffect::TextParam::defvalue
private

Definition at line 63 of file text.h.

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

◆ value

Glib::ustring Inkscape::LivePathEffect::TextParam::value
private

Definition at line 62 of file text.h.

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


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