Inkscape
Vector Graphics Editor
|
Widget adjustable by dragging it to rotate away from a zero-change axis. More...
#include <rotateable.h>
Public Member Functions | |
Rotateable () | |
~Rotateable () override | |
Public Attributes | |
double | axis |
double | current_axis |
double | maxdecl |
bool | scrolling |
Private Member Functions | |
Gtk::EventSequenceState | on_click (Gtk::GestureClick const &click, int n_press, double x, double y) |
Gtk::EventSequenceState | on_release (Gtk::GestureClick const &click, int n_press, double x, double y) |
void | on_motion (Gtk::EventControllerMotion const &motion, double x, double y) |
bool | on_scroll (Gtk::EventControllerScroll const &scroll, double dx, double dy) |
virtual void | do_motion (double, unsigned) |
virtual void | do_release (double, unsigned) |
virtual void | do_scroll (double, unsigned) |
Static Private Member Functions | |
static unsigned | get_single_modifier (unsigned old, unsigned state) |
Private Attributes | |
double | drag_started_x |
double | drag_started_y |
unsigned | modifier |
bool | dragging |
bool | working |
Widget adjustable by dragging it to rotate away from a zero-change axis.
Definition at line 29 of file rotateable.h.
Inkscape::UI::Widget::Rotateable::Rotateable | ( | ) |
Definition at line 23 of file rotateable.cpp.
References on_click(), on_motion(), on_release(), on_scroll(), and Inkscape::UI::Controller::use_state().
|
overridedefault |
|
inlineprivatevirtual |
Definition at line 56 of file rotateable.h.
Referenced by on_motion().
|
inlineprivatevirtual |
Definition at line 57 of file rotateable.h.
Referenced by on_motion(), and on_release().
|
inlineprivatevirtual |
Definition at line 58 of file rotateable.h.
Referenced by on_scroll().
|
staticprivate |
Definition at line 61 of file rotateable.cpp.
Referenced by on_click(), on_motion(), and on_scroll().
|
private |
Definition at line 48 of file rotateable.cpp.
References axis, current_axis, drag_started_x, drag_started_y, dragging, get_single_modifier(), modifier, and working.
Referenced by Rotateable().
|
private |
Definition at line 99 of file rotateable.cpp.
References current_axis, do_motion(), do_release(), drag_started_x, drag_started_y, dragging, get_single_modifier(), Inkscape::UI::Tools::gobble_motion_events(), Geom::L2(), maxdecl, modifier, and working.
Referenced by Rotateable().
|
private |
Definition at line 131 of file rotateable.cpp.
References axis, current_axis, do_release(), drag_started_x, drag_started_y, dragging, maxdecl, modifier, and working.
Referenced by Rotateable().
|
private |
Definition at line 152 of file rotateable.cpp.
References axis, current_axis, do_scroll(), drag_started_x, drag_started_y, dragging, get_single_modifier(), modifier, scrolling, and working.
Referenced by Rotateable().
double Inkscape::UI::Widget::Rotateable::axis |
Definition at line 35 of file rotateable.h.
Referenced by on_click(), on_release(), and on_scroll().
double Inkscape::UI::Widget::Rotateable::current_axis |
Definition at line 36 of file rotateable.h.
Referenced by on_click(), on_motion(), on_release(), and on_scroll().
|
private |
Definition at line 41 of file rotateable.h.
Referenced by on_click(), on_motion(), on_release(), and on_scroll().
|
private |
Definition at line 42 of file rotateable.h.
Referenced by on_click(), on_motion(), on_release(), and on_scroll().
|
private |
Definition at line 44 of file rotateable.h.
Referenced by on_click(), on_motion(), on_release(), and on_scroll().
double Inkscape::UI::Widget::Rotateable::maxdecl |
Definition at line 37 of file rotateable.h.
Referenced by on_motion(), and on_release().
|
private |
Definition at line 43 of file rotateable.h.
Referenced by Inkscape::UI::Widget::RotateableSwatch::color_adjust(), Inkscape::UI::Widget::RotateableSwatch::do_motion(), Inkscape::UI::Widget::RotateableStrokeWidth::do_motion(), Inkscape::UI::Widget::RotateableSwatch::do_release(), Inkscape::UI::Widget::RotateableStrokeWidth::do_release(), Inkscape::UI::Widget::RotateableSwatch::do_scroll(), Inkscape::UI::Widget::RotateableStrokeWidth::do_scroll(), on_click(), on_motion(), on_release(), and on_scroll().
bool Inkscape::UI::Widget::Rotateable::scrolling |
Definition at line 38 of file rotateable.h.
Referenced by Inkscape::UI::Widget::RotateableSwatch::do_motion(), and on_scroll().
|
private |
Definition at line 45 of file rotateable.h.
Referenced by on_click(), on_motion(), on_release(), and on_scroll().