Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::Display::SnapIndicator Class Reference

#include <snap-indicator.h>

Public Member Functions

 SnapIndicator (SPDesktop *desktop)
 
virtual ~SnapIndicator ()
 
void set_new_snaptarget (Inkscape::SnappedPoint const &p, bool pre_snap=false)
 
void remove_snaptarget (bool only_if_presnap=false)
 
void set_new_snapsource (Inkscape::SnapCandidatePoint const &p)
 
void remove_snapsource ()
 
void set_new_debugging_point (Geom::Point const &p)
 
void remove_debugging_points ()
 

Protected Attributes

TemporaryItem_snaptarget
 
TemporaryItem_snaptarget_tooltip
 
TemporaryItem_snaptarget_bbox
 
TemporaryItem_snapsource
 
std::list< TemporaryItem * > _alignment_snap_indicators
 
std::list< TemporaryItem * > _distribution_snap_indicators
 
std::list< TemporaryItem * > _debugging_points
 
bool _snaptarget_is_presnap
 
SPDesktop_desktop
 

Private Member Functions

 SnapIndicator (const SnapIndicator &)=delete
 
SnapIndicatoroperator= (const SnapIndicator &)=delete
 
void make_distribution_indicators (SnappedPoint const &p, double fontsize, double scale)
 
void make_alignment_indicator (Geom::Point const &p1, Geom::Point const &p2, guint32 color, double fontsize, double scale)
 
guint32 get_guide_color (SnapTargetType t)
 
Inkscape::CanvasItemCurvemake_stub_line_h (Geom::Point const &p)
 
Inkscape::CanvasItemCurvemake_stub_line_v (Geom::Point const &p)
 

Detailed Description

Definition at line 34 of file snap-indicator.h.

Constructor & Destructor Documentation

◆ SnapIndicator() [1/2]

Inkscape::Display::SnapIndicator::SnapIndicator ( SPDesktop desktop)

Definition at line 110 of file snap-indicator.cpp.

◆ ~SnapIndicator()

Inkscape::Display::SnapIndicator::~SnapIndicator ( )
virtual

Definition at line 120 of file snap-indicator.cpp.

References remove_snapsource(), and remove_snaptarget().

◆ SnapIndicator() [2/2]

Inkscape::Display::SnapIndicator::SnapIndicator ( const SnapIndicator )
privatedelete

Member Function Documentation

◆ get_guide_color()

◆ make_alignment_indicator()

◆ make_distribution_indicators()

◆ make_stub_line_h()

Inkscape::CanvasItemCurve * Inkscape::Display::SnapIndicator::make_stub_line_h ( Geom::Point const &  p)
private

◆ make_stub_line_v()

Inkscape::CanvasItemCurve * Inkscape::Display::SnapIndicator::make_stub_line_v ( Geom::Point const &  p)
private

◆ operator=()

SnapIndicator & Inkscape::Display::SnapIndicator::operator= ( const SnapIndicator )
privatedelete

◆ remove_debugging_points()

void Inkscape::Display::SnapIndicator::remove_debugging_points ( )

◆ remove_snapsource()

void Inkscape::Display::SnapIndicator::remove_snapsource ( )

◆ remove_snaptarget()

◆ set_new_debugging_point()

void Inkscape::Display::SnapIndicator::set_new_debugging_point ( Geom::Point const &  p)

◆ set_new_snapsource()

◆ set_new_snaptarget()

void Inkscape::Display::SnapIndicator::set_new_snaptarget ( Inkscape::SnappedPoint const &  p,
bool  pre_snap = false 
)

Member Data Documentation

◆ _alignment_snap_indicators

std::list<TemporaryItem *> Inkscape::Display::SnapIndicator::_alignment_snap_indicators
protected

Definition at line 54 of file snap-indicator.h.

Referenced by make_alignment_indicator(), and remove_snaptarget().

◆ _debugging_points

std::list<TemporaryItem *> Inkscape::Display::SnapIndicator::_debugging_points
protected

Definition at line 56 of file snap-indicator.h.

Referenced by remove_debugging_points(), and set_new_debugging_point().

◆ _desktop

◆ _distribution_snap_indicators

std::list<TemporaryItem *> Inkscape::Display::SnapIndicator::_distribution_snap_indicators
protected

Definition at line 55 of file snap-indicator.h.

Referenced by make_distribution_indicators(), and remove_snaptarget().

◆ _snapsource

TemporaryItem* Inkscape::Display::SnapIndicator::_snapsource
protected

Definition at line 52 of file snap-indicator.h.

Referenced by remove_snapsource(), and set_new_snapsource().

◆ _snaptarget

TemporaryItem* Inkscape::Display::SnapIndicator::_snaptarget
protected

Definition at line 49 of file snap-indicator.h.

Referenced by remove_snaptarget(), and set_new_snaptarget().

◆ _snaptarget_bbox

TemporaryItem* Inkscape::Display::SnapIndicator::_snaptarget_bbox
protected

Definition at line 51 of file snap-indicator.h.

Referenced by remove_snaptarget(), and set_new_snaptarget().

◆ _snaptarget_is_presnap

bool Inkscape::Display::SnapIndicator::_snaptarget_is_presnap
protected

Definition at line 57 of file snap-indicator.h.

Referenced by remove_snaptarget(), and set_new_snaptarget().

◆ _snaptarget_tooltip

TemporaryItem* Inkscape::Display::SnapIndicator::_snaptarget_tooltip
protected

Definition at line 50 of file snap-indicator.h.

Referenced by remove_snaptarget(), and set_new_snaptarget().


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