2#ifndef SNAPPREFERENCES_H_
3#define SNAPPREFERENCES_H_
Storing of snapping preferences.
int _active_mask_targets[Inkscape::SNAPTARGET_MAX_ENUM_VALUE]
bool _simple_snapping[static_cast< int >(Inkscape::SimpleSnap::_MaxEnumValue)]
void setSnapEnabledGlobally(bool enabled)
bool getStrictSnapping() const
bool _snap_postponed_globally
double getObjectTolerance() const
bool isSourceSnappable(Inkscape::SnapSourceType const source) const
bool _snap_enabled_globally
void setGridTolerance(double val)
void setTargetSnappable(Inkscape::SnapTargetType const target, bool enabled)
int _active_snap_targets[Inkscape::SNAPTARGET_MAX_ENUM_VALUE]
bool isAnyDatumSnappable() const
double getGridTolerance() const
void clearTargetMask(int enabled=-1)
Clear the target mask, this should be done in a four step process.
void setObjectTolerance(double val)
double getGuideTolerance() const
SnapTargetType source2target(SnapSourceType source) const
bool get_simple_snap(Inkscape::SimpleSnap option) const
bool getSnapPostponedGlobally() const
double getDistributionTolerance() const
bool getSnapEnabledGlobally() const
void setGuideTolerance(double val)
bool isSnapButtonEnabled(Inkscape::SnapTargetType const target) const
void set_simple_snap(Inkscape::SimpleSnap option, bool enable)
double _distribution_tolerance
void setAlignementTolerance(double val)
bool isTargetSnappable(Inkscape::SnapTargetType const target) const
void setDistributionTolerance(double val)
double _alignment_tolerance
double getAlignmentTolerance() const
void setSnapPostponedGlobally(bool postponed)
void setTargetMask(Inkscape::SnapTargetType const target, int enabled=1)
Set a target mask, which will turn off all other targets except the masked ones.
void _mapTargetToArrayIndex(Inkscape::SnapTargetType &target, bool &always_on, bool &group_on) const
Map snap target to array index.
bool isAnyCategorySnappable() const
Helper class to stream background task notifications as a series of messages.
SnapSourceType
enumerations of snap source types and snap target types.
@ SNAPTARGET_MAX_ENUM_VALUE