Inkscape
Vector Graphics Editor
|
#include <selected-style.h>
Public Member Functions | |
RotateableSwatch (SelectedStyle *parent, guint mode) | |
~RotateableSwatch () override | |
std::pair< double, double > | color_adjust (Colors::Color const &cc, double by, guint state) |
void | do_motion (double by, guint state) override |
void | do_release (double by, guint state) override |
void | do_scroll (double by, guint state) override |
![]() | |
Rotateable () | |
~Rotateable () override | |
Private Attributes | |
guint | fillstroke |
SelectedStyle * | parent |
std::optional< Colors::Color > | startcolor |
gchar const * | undokey = "ssrot1" |
int | cursor_state = -1 |
Additional Inherited Members | |
![]() | |
double | axis |
double | current_axis |
double | maxdecl |
bool | scrolling |
Definition at line 74 of file selected-style.h.
Inkscape::UI::Widget::RotateableSwatch::RotateableSwatch | ( | SelectedStyle * | parent, |
guint | mode | ||
) |
Definition at line 987 of file selected-style.cpp.
|
overridedefault |
std::pair< double, double > Inkscape::UI::Widget::RotateableSwatch::color_adjust | ( | Colors::Color const & | cc, |
double | by, | ||
guint | state | ||
) |
Definition at line 996 of file selected-style.cpp.
References Inkscape::Colors::Color::converted(), css, fillstroke, Inkscape::UI::Widget::SelectedStyle::getDesktop(), Inkscape::Colors::Color::getSpace(), Inkscape::Colors::Space::HSL, map, Inkscape::UI::Widget::Rotateable::modifier, parent, sp_desktop_set_style(), sp_repr_css_attr_new(), sp_repr_css_attr_unref(), sp_repr_css_set_property_double(), sp_repr_css_set_property_string(), and Inkscape::UI::Widget::SS_FILL.
Referenced by do_motion(), and do_release().
|
override |
Definition at line 1019 of file selected-style.cpp.
References Inkscape::UI::Widget::SelectedStyle::_mode, Inkscape::UI::Widget::SelectedStyle::_thisselected, color_adjust(), cursor_state, Inkscape::UI::Widget::SelectedStyle::dragging, fillstroke, Inkscape::UI::Widget::SelectedStyle::getDesktop(), SPDesktop::getDocument(), SPDesktop::getTool(), Inkscape::IMMEDIATE_MESSAGE, Inkscape::DocumentUndo::maybeDone(), Inkscape::UI::Tools::ToolBase::message_context, Inkscape::UI::Widget::Rotateable::modifier, parent, Inkscape::UI::Widget::Rotateable::scrolling, Inkscape::set_svg_cursor(), Inkscape::UI::Widget::SS_COLOR, startcolor, and undokey.
Referenced by do_scroll().
|
override |
Definition at line 1082 of file selected-style.cpp.
References Inkscape::UI::Widget::SelectedStyle::_mode, color_adjust(), cursor_state, Inkscape::UI::Widget::SelectedStyle::dragging, fillstroke, Inkscape::UI::Widget::SelectedStyle::getDesktop(), SPDesktop::getDocument(), SPDesktop::getTool(), Inkscape::DocumentUndo::maybeDone(), Inkscape::UI::Tools::ToolBase::message_context, Inkscape::UI::Widget::Rotateable::modifier, parent, Inkscape::UI::Widget::SS_COLOR, startcolor, and undokey.
Referenced by do_scroll().
|
override |
Definition at line 1076 of file selected-style.cpp.
References do_motion(), do_release(), and Inkscape::UI::Widget::Rotateable::modifier.
|
private |
Definition at line 94 of file selected-style.h.
Referenced by do_motion(), and do_release().
|
private |
Definition at line 86 of file selected-style.h.
Referenced by color_adjust(), do_motion(), and do_release().
|
private |
Definition at line 88 of file selected-style.h.
Referenced by color_adjust(), do_motion(), and do_release().
|
private |
Definition at line 90 of file selected-style.h.
Referenced by do_motion(), and do_release().
|
private |
Definition at line 92 of file selected-style.h.
Referenced by do_motion(), and do_release().