2#ifndef SEEN_RUBBERBAND_H
3#define SEEN_RUBBERBAND_H
14#include <cairomm/pattern.h>
56 std::vector<Geom::Point>
getPoints()
const;
Path - a sequence of contiguous curves.
Cartesian point / 2D vector and related operations.
std::unique_ptr< T, CanvasItemUnlinkDeleter > CanvasItemPtr
Smart pointer used to hold CanvasItems, like std::unique_ptr.
Axis-aligned rectangle that can be empty.
Sequence of contiguous curves, aka spline.
Two-dimensional point that doubles as a vector.
static constexpr auto default_operation
void delete_canvas_items()
CanvasItemCtrlType _handle
CanvasItemCtrlType _invert_handle
void setHandle(CanvasItemCtrlType handle)
static constexpr auto default_mode
std::vector< Geom::Point > getPoints() const
Geom::Path getPath() const
static constexpr auto default_deselect_handle
CanvasItemCtrlType _deselect_handle
void setMode(Rubberband::Mode mode)
Geom::Path _touchpath_curve
static Rubberband * get(SPDesktop *desktop)
void move(Geom::Point const &p)
void setOperation(Rubberband::Operation operation)
static constexpr auto default_handle
Rubberband::Operation _operation
CanvasItemPtr< CanvasItemRect > _rect
Geom::OptRect getRectangle() const
static Rubberband * _instance
Rubberband::Mode getMode() const
CanvasItemCtrlType _get_deselect_handle(CanvasItemCtrlType handle)
static constexpr auto default_invert_handle
CanvasItemCtrlType _get_invert_handle(CanvasItemCtrlType handle)
CanvasItemPtr< CanvasItemBpath > _touchpath
To do: update description of desktop.
Helper class to stream background task notifications as a series of messages.
@ RUBBERBAND_TOUCHPATH_SELECT
@ RUBBERBAND_TOUCHPATH_DESELECT
@ RUBBERBAND_TOUCHPATH_INVERT