Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::UI::Widget::RegisteredTransformedPoint Class Reference

#include <registered-widget.h>

Inheritance diagram for Inkscape::UI::Widget::RegisteredTransformedPoint:
Inkscape::UI::Widget::RegisteredWidget< Point > Inkscape::UI::Widget::Point Inkscape::UI::Widget::Labelled

Public Member Functions

 RegisteredTransformedPoint (Glib::ustring const &label, Glib::ustring const &tip, Glib::ustring const &key, Registry &wr, Inkscape::XML::Node *repr_in=nullptr, SPDocument *doc_in=nullptr)
 
void setValue (Geom::Point const &p)
 
void setTransform (Geom::Affine const &canvas_to_svg)
 
- Public Member Functions inherited from Inkscape::UI::Widget::RegisteredWidget< Point >
void set_undo_parameters (Glib::ustring _event_description, Glib::ustring _icon_name, std::string undo_id="")
 
void set_xml_target (Inkscape::XML::Node *xml_node, SPDocument *document)
 
bool is_updating () const
 
- Public Member Functions inherited from Inkscape::UI::Widget::Point
 Point (Glib::ustring const &label, Glib::ustring const &tooltip, Glib::ustring const &icon={}, bool mnemonic=true)
 Construct a Point Widget.
 
 Point (Glib::ustring const &label, Glib::ustring const &tooltip, unsigned digits, Glib::ustring const &icon={}, bool mnemonic=true)
 Construct a Point Widget.
 
 Point (Glib::ustring const &label, Glib::ustring const &tooltip, Glib::RefPtr< Gtk::Adjustment > const &adjust, unsigned digits=0, Glib::ustring const &icon={}, bool mnemonic=true)
 Construct a Point Widget.
 
unsigned getDigits () const
 Fetches the precision of the spin button.
 
double getStep () const
 Gets the current step increment used by the spin button.
 
double getPage () const
 Gets the current page increment used by the spin button.
 
double getRangeMin () const
 Gets the minimum range value allowed for the spin button.
 
double getRangeMax () const
 Gets the maximum range value allowed for the spin button.
 
bool getSnapToTicks () const
 
double getXValue () const
 Get the value in the spin_button.
 
double getYValue () const
 
Geom::Point getValue () const
 
int getXValueAsInt () const
 Get the value spin_button represented as an integer.
 
int getYValueAsInt () const
 
void setDigits (unsigned digits)
 Sets the precision to be displayed by the spin button.
 
void setIncrements (double step, double page)
 Sets the step and page increments for the spin button.
 
void setRange (double min, double max)
 Sets the minimum and maximum range allowed for the spin button.
 
void setValue (Geom::Point const &p)
 Sets the value of the spin button.
 
void update ()
 Manually forces an update of the spin button.
 
Glib::SignalProxy< void()> signal_x_value_changed ()
 Signal raised when the spin button's value changes.
 
Glib::SignalProxy< void()> signal_y_value_changed ()
 
bool setProgrammatically ()
 Check 'setProgrammatically' of both scalar widgets.
 
void clearProgrammatically ()
 
- Public Member Functions inherited from Inkscape::UI::Widget::Labelled
 Labelled (Glib::ustring const &label, Glib::ustring const &tooltip, Gtk::Widget *widget, Glib::ustring const &icon={}, bool mnemonic=true)
 Construct a Labelled Widget.
 
Gtk::Widget const * getWidget () const
 
Gtk::Widget * getWidget ()
 
Gtk::Label const * getLabel () const
 
Gtk::Label * getLabel ()
 

Protected Member Functions

void on_value_changed ()
 
- Protected Member Functions inherited from Inkscape::UI::Widget::RegisteredWidget< Point >
 RegisteredWidget (Args &&...args)
 
void init_parent (Glib::ustring const &key, Registry &wr, Inkscape::XML::Node *const repr_in, SPDocument *const doc_in)
 
void write_to_xml (const char *const svgstr)
 

Private Attributes

sigc::scoped_connection _value_x_changed_connection
 
sigc::scoped_connection _value_y_changed_connection
 
Geom::Affine to_svg
 

Additional Inherited Members

- Protected Attributes inherited from Inkscape::UI::Widget::RegisteredWidget< Point >
Registry_wr
 
Glib::ustring _key
 
Inkscape::XML::Noderepr
 
SPDocumentdoc
 
Glib::ustring event_description
 
Glib::ustring icon_name
 
bool write_undo
 
std::string _undo_id
 
- Protected Attributes inherited from Inkscape::UI::Widget::Point
Scalar xwidget
 
Scalar ywidget
 

Detailed Description

Definition at line 326 of file registered-widget.h.

Constructor & Destructor Documentation

◆ RegisteredTransformedPoint()

Inkscape::UI::Widget::RegisteredTransformedPoint::RegisteredTransformedPoint ( Glib::ustring const &  label,
Glib::ustring const &  tip,
Glib::ustring const &  key,
Registry wr,
Inkscape::XML::Node repr_in = nullptr,
SPDocument doc_in = nullptr 
)

Member Function Documentation

◆ on_value_changed()

◆ setTransform()

void Inkscape::UI::Widget::RegisteredTransformedPoint::setTransform ( Geom::Affine const &  canvas_to_svg)

Definition at line 529 of file registered-widget.cpp.

References Geom::identity(), Geom::Affine::isSingular(), and to_svg.

◆ setValue()

void Inkscape::UI::Widget::RegisteredTransformedPoint::setValue ( Geom::Point const &  p)

Definition at line 522 of file registered-widget.cpp.

References Geom::Affine::inverse(), and to_svg.

Member Data Documentation

◆ _value_x_changed_connection

sigc::scoped_connection Inkscape::UI::Widget::RegisteredTransformedPoint::_value_x_changed_connection
private

Definition at line 344 of file registered-widget.h.

Referenced by RegisteredTransformedPoint().

◆ _value_y_changed_connection

sigc::scoped_connection Inkscape::UI::Widget::RegisteredTransformedPoint::_value_y_changed_connection
private

Definition at line 345 of file registered-widget.h.

Referenced by RegisteredTransformedPoint().

◆ to_svg

Geom::Affine Inkscape::UI::Widget::RegisteredTransformedPoint::to_svg
private

Definition at line 346 of file registered-widget.h.

Referenced by on_value_changed(), setTransform(), and setValue().


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