Inkscape
Vector Graphics Editor
|
#include <dash-selector.h>
Public Member Functions | |
DashSelector () | |
~DashSelector () final | |
void | set_dash_pattern (const std::vector< double > &dash, double offset) |
const std::vector< double > & | get_dash_pattern () |
double | get_offset () |
Public Attributes | |
sigc::signal< void()> | changed_signal |
Private Member Functions | |
void | update (int position) |
void | activate (Gtk::GridView *grid, unsigned int position) |
void | setup_listitem_cb (const Glib::RefPtr< Gtk::ListItem > &list_item) |
void | bind_listitem_cb (const Glib::RefPtr< Gtk::ListItem > &list_item) |
void | draw_pattern (const Cairo::RefPtr< Cairo::Context > &cr, int width, int height, const std::vector< double > &pattern) |
void | draw_text (const Cairo::RefPtr< Cairo::Context > &cr, int width, int height) |
Private Attributes | |
std::vector< double > | dash_pattern |
double | offset = 0 |
Glib::RefPtr< Gtk::SingleSelection > | selection |
Gtk::DrawingArea * | drawing_area = nullptr |
Gtk::Popover * | popover = nullptr |
Glib::RefPtr< Gtk::Adjustment > | adjustment |
Definition at line 36 of file dash-selector.h.
Inkscape::UI::Widget::DashSelector::DashSelector | ( | ) |
Definition at line 90 of file dash-selector.cpp.
References activate(), adjustment, Inkscape::append(), bind_listitem_cb(), changed_signal, dash_pattern, draw_pattern(), drawing_area, offset, popover, selection, setup_listitem_cb(), and sp_dialog_defocus_on_enter().
|
finaldefault |
|
private |
Definition at line 209 of file dash-selector.cpp.
References changed_signal, dash_pattern, item, popover, and update().
Referenced by DashSelector().
|
private |
Definition at line 230 of file dash-selector.cpp.
References dash_pattern, draw_pattern(), draw_text(), and drawing_area.
Referenced by DashSelector().
|
private |
Definition at line 243 of file dash-selector.cpp.
References Inkscape::UI::Widget::height, and width.
Referenced by bind_listitem_cb(), DashSelector(), and update().
|
private |
Definition at line 256 of file dash-selector.cpp.
References Inkscape::UI::Widget::height.
Referenced by bind_listitem_cb(), and update().
|
inline |
Definition at line 43 of file dash-selector.h.
References dash_pattern.
Referenced by Inkscape::UI::Widget::StrokeStyle::setStrokeDash(), and Inkscape::UI::Widget::StrokeStyle::StrokeStyle().
|
inline |
Definition at line 44 of file dash-selector.h.
References offset.
Referenced by Inkscape::UI::Widget::StrokeStyle::setStrokeDash(), and Inkscape::UI::Widget::StrokeStyle::StrokeStyle().
void Inkscape::UI::Widget::DashSelector::set_dash_pattern | ( | const std::vector< double > & | dash, |
double | offset | ||
) |
Definition at line 156 of file dash-selector.cpp.
References Geom::are_near(), dash_pattern, delta, index, item, offset, selection, and update().
Referenced by Inkscape::UI::Widget::StrokeStyle::setDashSelectorFromStyle(), and Inkscape::UI::Widget::StrokeStyle::StrokeStyle().
|
private |
Definition at line 222 of file dash-selector.cpp.
References drawing_area.
Referenced by DashSelector().
|
private |
Definition at line 194 of file dash-selector.cpp.
References adjustment, dash_pattern, draw_pattern(), draw_text(), drawing_area, and offset.
Referenced by activate(), and set_dash_pattern().
|
private |
Definition at line 69 of file dash-selector.h.
Referenced by DashSelector(), and update().
sigc::signal<void ()> Inkscape::UI::Widget::DashSelector::changed_signal |
Definition at line 46 of file dash-selector.h.
Referenced by activate(), DashSelector(), and Inkscape::UI::Widget::StrokeStyle::StrokeStyle().
|
private |
Definition at line 62 of file dash-selector.h.
Referenced by activate(), bind_listitem_cb(), DashSelector(), get_dash_pattern(), set_dash_pattern(), and update().
|
private |
Definition at line 67 of file dash-selector.h.
Referenced by bind_listitem_cb(), DashSelector(), setup_listitem_cb(), and update().
|
private |
Definition at line 63 of file dash-selector.h.
Referenced by DashSelector(), get_offset(), set_dash_pattern(), and update().
|
private |
Definition at line 68 of file dash-selector.h.
Referenced by activate(), and DashSelector().
|
private |
Definition at line 66 of file dash-selector.h.
Referenced by DashSelector(), and set_dash_pattern().