Inkscape
Vector Graphics Editor
|
Namespaces | |
namespace | MT |
Classes | |
class | ArcTool |
class | Box3dTool |
class | CalligraphicTool |
class | CCToolLayerNodeObserver |
class | CCToolShapeNodeObserver |
class | ConnectorTool |
class | DelayedSnapEvent |
class | DropperTool |
class | DynamicBase |
class | EraserTool |
struct | EraseTarget |
Represents an item to erase. More... | |
class | FloodTool |
class | FreehandBase |
class | GradientTool |
class | InteractiveBooleansTool |
class | LpeTool |
class | MarkerTool |
class | MeasureTool |
class | MeshTool |
class | NodeTool |
class | ObjectPickerTool |
class | PagesTool |
class | PencilTool |
PencilTool: a context for pencil tool events. More... | |
class | PenTool |
PenTool: a context for pen tool events. More... | |
class | RectTool |
class | SelectTool |
class | SpiralTool |
class | SprayTool |
class | StarTool |
class | TextTool |
class | ToolBase |
Base class for Event processors. More... | |
class | TweakTool |
class | ZoomTool |
Functions | |
static void | ensure_persp_in_defs (SPDocument *document) |
static Geom::Point | unsnapped_polar (double angle) |
static void | add_cap (SPCurve &curve, Geom::Point const &from, Geom::Point const &to, double rounding) |
static void | cc_clear_active_knots (SPKnotList k) |
static void | cc_select_handle (SPKnot *knot) |
static void | cc_deselect_handle (SPKnot *knot) |
static bool | cc_item_is_shape (SPItem *item) |
static bool | cc_generic_knot_handler (CanvasEvent const &event, SPKnot *knot) |
static bool | endpt_handler (CanvasEvent const &event, ConnectorTool *cc) |
void | cc_create_connection_point (ConnectorTool *cc) |
bool | cc_item_is_connector (SPItem *item) |
void | cc_selection_set_avoid (SPDesktop *desktop, bool const set_avoid) |
void | cc_remove_connection_point (ConnectorTool *cc) |
double | square (double const x) |
static uint32_t | compose_onto (uint32_t px, uint32_t bg) |
uint32_t | get_pixel (unsigned char *px, int x, int y, int stride) |
Get the pointer to a pixel in a pixel buffer. | |
unsigned char * | get_trace_pixel (unsigned char *trace_px, int x, int y, int width) |
static bool | compare_uint32 (uint32_t a, uint32_t b, uint32_t d) |
Check whether two unsigned integers are close to each other. | |
static bool | compare_pixels (uint32_t check, uint32_t orig, uint32_t merged_orig_pixel, uint32_t dtc, int threshold, PaintBucketChannels method) |
Compare a pixel in a pixel buffer with another pixel to determine if a point should be included in the fill operation. | |
static bool | is_pixel_checked (unsigned char *t) |
static bool | is_pixel_queued (unsigned char *t) |
static bool | is_pixel_paintability_checked (unsigned char *t) |
static bool | is_pixel_paintable (unsigned char *t) |
static bool | is_pixel_colored (unsigned char *t) |
static void | mark_pixel_checked (unsigned char *t) |
static void | mark_pixel_queued (unsigned char *t) |
static void | mark_pixel_paintable (unsigned char *t) |
static void | mark_pixel_not_paintable (unsigned char *t) |
static void | mark_pixel_colored (unsigned char *t) |
static void | clear_pixel_paintability (unsigned char *t) |
static bool | check_if_pixel_is_paintable (unsigned char *px, unsigned char *trace_t, int x, int y, uint32_t orig_color, BitmapCoordsInfo const &bci) |
Check if a pixel can be included in the fill. | |
static void | do_trace (BitmapCoordsInfo const &bci, unsigned char *trace_px, SPDesktop *desktop, Geom::Affine const &transform, unsigned min_x, unsigned max_x, unsigned min_y, unsigned max_y, bool union_with_selection) |
Perform the bitmap-to-vector tracing and place the traced path onto the document. | |
static bool | coords_in_range (unsigned x, unsigned y, BitmapCoordsInfo const &bci) |
Determine if the provided coordinates are within the pixel buffer limits. | |
static unsigned | paint_pixel (unsigned char *px, unsigned char *trace_px, uint32_t orig_color, BitmapCoordsInfo const &bci, unsigned char *original_point_trace_t) |
Paint a pixel or a square (if autogap is enabled) on the trace pixel buffer. | |
static void | push_point_onto_queue (std::deque< Geom::Point > &fill_queue, unsigned max_queue_size, unsigned char *trace_t, unsigned x, unsigned y) |
Push a point to be checked onto the bottom of the rendered pixel buffer check queue. | |
static void | shift_point_onto_queue (std::deque< Geom::Point > &fill_queue, unsigned max_queue_size, unsigned char *trace_t, unsigned x, unsigned y) |
Shift a point to be checked onto the top of the rendered pixel buffer check queue. | |
static ScanlineCheckResult | perform_bitmap_scanline_check (std::deque< Geom::Point > &fill_queue, unsigned char *px, unsigned char *trace_px, uint32_t orig_color, BitmapCoordsInfo bci, unsigned *min_x, unsigned *max_x) |
Scan a row in the rendered pixel buffer and add points to the fill queue as necessary. | |
static bool | sort_fill_queue_vertical (Geom::Point const &a, Geom::Point const &b) |
Sort the rendered pixel buffer check queue vertically. | |
static bool | sort_fill_queue_horizontal (Geom::Point const &a, Geom::Point const &b) |
Sort the rendered pixel buffer check queue horizontally. | |
static void | sp_flood_do_flood_fill (SPDesktop *desktop, Geom::Point const &cursor_pos, bool union_with_selection, bool is_point_fill, bool is_touch_fill) |
Perform a flood fill operation. | |
static void | spdc_flush_white (FreehandBase *dc, std::shared_ptr< SPCurve > gc) |
Flushes white curve(s) and additional curve into object. | |
static void | spdc_free_colors (FreehandBase *dc) |
static void | spdc_paste_curve_as_freehand_shape (Geom::PathVector const &newpath, FreehandBase *dc, SPItem *item) |
void | spdc_apply_style (SPObject *obj) |
static void | spdc_apply_powerstroke_shape (std::vector< Geom::Point > const &points, FreehandBase *dc, SPItem *item) |
static void | spdc_apply_bend_shape (gchar const *svgd, FreehandBase *dc, SPItem *item) |
static void | spdc_apply_simplify (double threshold, FreehandBase *dc, SPItem *item) |
static void | spdc_check_for_and_apply_waiting_LPE (FreehandBase *dc, SPItem *item, SPCurve const *curve, bool is_bend) |
void | spdc_endpoint_snap_rotation (ToolBase *tool, Geom::Point &p, Geom::Point const &o, unsigned state) |
Snaps node or handle to PI/rotationsnapsperpi degree increments. | |
void | spdc_endpoint_snap_free (ToolBase *tool, Geom::Point &p, std::optional< Geom::Point > &start_of_line) |
void | spdc_concat_colors_and_flush (FreehandBase *dc, bool forceclosed) |
Concats red, blue and green. | |
SPDrawAnchor * | spdc_test_inside (FreehandBase *dc, Geom::Point const &p) |
Returns FIRST active anchor (the activated one). | |
void | spdc_create_single_dot (ToolBase *tool, Geom::Point const &pt, char const *path, unsigned event_state) |
Create a single dot represented by a circle. | |
void | spdc_check_for_and_apply_waiting_LPE (FreehandBase *dc, SPItem *item) |
If we have an item and a waiting LPE, apply the effect to the item (spiro spline mode is treated separately). | |
static auto | get_stop_intervals (GrDrag *drag) |
int | lpetool_mode_to_index (LivePathEffect::EffectType const type) |
int | lpetool_item_has_construction (SPItem *item) |
bool | lpetool_try_construction (SPDesktop *desktop, LivePathEffect::EffectType const type) |
std::pair< Geom::Point, Geom::Point > | lpetool_get_limiting_bbox_corners (SPDocument const *document) |
static void | set_pos_and_anchor (CanvasItemText *canvas_text, Geom::Piecewise< Geom::D2< Geom::SBasis > > const &pwd2, double t, double length) |
static char const * | endpoint_to_pref (bool is_start) |
static void | calculate_intersections (SPDesktop *desktop, SPItem *item, Geom::PathVector const &lineseg, SPCurve curve, std::vector< double > &intersections) |
static bool | has_mesh (SPItem *item) |
Inkscape::CanvasItemGroup * | create_control_group (SPDesktop *desktop) |
void | sp_update_helperpath (SPDesktop *desktop) |
static void | gather_items (NodeTool *nt, SPItem *base, SPObject *obj, Inkscape::UI::ShapeRole role, std::set< Inkscape::UI::ShapeRecord > &s) |
Recursively collect ShapeRecords. | |
SPObject * | get_item_at (SPDesktop *desktop, const Geom::Point &point) |
static bool | in_svg_plane (Geom::Point const &p) |
static bool | key_is_a_modifier (guint key) |
static void | sp_select_context_up_one_layer (SPDesktop *desktop) |
double | NormalDistribution (double mu, double sigma) |
This function returns pseudo-random numbers from a normal distribution. | |
static Geom::Affine | transform_around_point (Geom::Point center, Geom::Affine const &affine) |
Transform the affine around the point. | |
static void | transform_keep_center (SPItem *item, Geom::Affine const &affine, Geom::Point const ¢er) |
static void | get_paths (SPItem *item, Geom::PathVector &res, bool root=true) |
static void | sp_spray_extinput (SprayTool *tc, ExtendedInput const &ext) |
static double | get_width (SprayTool *tc) |
static double | get_dilate_radius (SprayTool *tc) |
static double | get_path_mean (SprayTool *tc) |
static double | get_path_standard_deviation (SprayTool *tc) |
static double | get_population (SprayTool *tc) |
static double | get_pressure (SprayTool *tc) |
static double | get_move_mean (SprayTool *tc) |
static double | get_move_standard_deviation (SprayTool *tc) |
static void | random_position (double &radius, double &angle, double &a, double &s, int) |
Method to handle the distribution of the items. | |
static void | sp_spray_transform_path (SPItem *item, Geom::Path &path, Geom::Affine affine, Geom::Point center) |
double | randomize01 (double val, double rand) |
Randomizes val by rand, with 0 < val < 1 and all values (including 0, 1) having the same probability of being displaced. | |
static guint32 | getPickerData (Geom::IntRect area, SPDesktop *desktop) |
static void | showHidden (std::vector< SPItem * > items_down) |
static bool | fit_item (SPDesktop *desktop, Inkscape::ObjectSet *set, SPItem *item, Geom::OptRect bbox, Geom::Point &move, Geom::Point center, gint mode, double angle, double &_scale, double scale, bool picker, bool pick_center, bool pick_inverse_value, bool pick_fill, bool pick_stroke, bool pick_no_overlap, bool over_no_transparent, bool over_transparent, bool no_overlap, double offset, SPCSSAttr *css, bool trace_scale, int pick, bool do_trace, bool single_click, bool pick_to_size, bool pick_to_presence, bool pick_to_color, bool pick_to_opacity, bool invert_picked, double gamma_picked, double rand_picked) |
static bool | sp_spray_recursive (SPDesktop *desktop, Inkscape::ObjectSet *set, SPItem *item, SPItem *&single_path_output, Geom::Point p, Geom::Point, gint mode, double radius, double population, double &scale, double scale_variation, bool, double mean, double standard_deviation, double ratio, double tilt, double rotation_variation, gint _distrib, bool no_overlap, bool picker, bool pick_center, bool pick_inverse_value, bool pick_fill, bool pick_stroke, bool pick_no_overlap, bool over_no_transparent, bool over_transparent, double offset, bool usepressurescale, double pressure, int pick, bool do_trace, bool single_click, double single_angle, double single_scale, bool pick_to_size, bool pick_to_presence, bool pick_to_color, bool pick_to_opacity, bool invert_picked, double gamma_picked, double rand_picked) |
static bool | sp_spray_dilate (SprayTool *tc, Geom::Point p, Geom::Point vector, bool reverse, bool force=false) |
static void | sp_spray_update_area (SprayTool *tc) |
static void | sp_spray_switch_mode (SprayTool *tc, gint mode, bool with_shift) |
static void | hex_to_printable_utf8_buf (char const *const ehex, char *utf8) |
Glib::ustring | get_selected_text (TextTool const &tool) |
Gets the raw characters that comprise the currently selected text, converting line breaks into lf characters. | |
SPCSSAttr * | get_style_at_cursor (TextTool const &tool) |
Text::Layout::iterator const * | get_cursor_position (TextTool const &tool, SPObject const *other_text) |
static void | set_event_location (SPDesktop *desktop, CanvasEvent const &event) |
Shows coordinates on status bar. | |
static void | sp_toggle_selector (SPDesktop *dt) |
Toggles current tool between active tool and selector tool. | |
void | sp_toggle_dropper (SPDesktop *dt) |
Toggles current tool between active tool and dropper tool. | |
static double | accelerate_scroll (KeyEvent const &event, double acceleration) |
Calculates and keeps track of scroll acceleration. | |
void | sp_event_context_read (ToolBase *tool, char const *key) |
Calls virtual set() function of ToolBase. | |
void | sp_event_show_modifier_tip (MessageContext *message_context, KeyEvent const &event, char const *ctrl_tip, char const *shift_tip, char const *alt_tip) |
Show tool context specific modifier tip. | |
static void | update_latin_keys_group () |
Try to determine the keys group of Latin layout. | |
void | init_latin_keys_group () |
Initialize Latin keys group handling. | |
unsigned | get_latin_keyval_impl (unsigned const event_keyval, unsigned const event_keycode, GdkModifierType const event_state, unsigned const event_group, unsigned *consumed_modifiers) |
unsigned | get_latin_keyval (GtkEventControllerKey const *const controller, unsigned const keyval, unsigned const keycode, GdkModifierType const state, unsigned *consumed_modifiers) |
Return the keyval corresponding to the event controller key in Latin group. | |
unsigned | get_latin_keyval (Gtk::EventControllerKey const &controller, unsigned keyval, unsigned keycode, Gdk::ModifierType state, unsigned *consumed_modifiers) |
unsigned | get_latin_keyval (KeyEvent const &event, unsigned *consumed_modifiers) |
SPItem * | sp_event_context_find_item (SPDesktop *desktop, Geom::Point const &p, bool select_under, bool into_groups) |
Returns item at point p in desktop. | |
SPItem * | sp_event_context_over_item (SPDesktop *desktop, SPItem *item, Geom::Point const &p) |
Returns item if it is under point p in desktop, at any depth; otherwise returns NULL. | |
ShapeEditor * | sp_event_context_get_shape_editor (ToolBase *tool) |
int | gobble_key_events (unsigned keyval, unsigned mask) |
void | gobble_motion_events (unsigned mask) |
static bool | is_transform_mode (gint mode) |
static bool | is_color_mode (gint mode) |
static void | sp_tweak_extinput (TweakTool *tc, ExtendedInput const &ext) |
static double | get_dilate_radius (TweakTool *tc) |
static double | get_path_force (TweakTool *tc) |
static double | get_move_force (TweakTool *tc) |
static bool | sp_tweak_dilate_recursive (Inkscape::Selection *selection, SPItem *item, Geom::Point p, Geom::Point vector, gint mode, double radius, double force, double fidelity, bool reverse) |
static Color | tweak_color (guint mode, Color const &color, Color const &goal, double force, bool do_h, bool do_s, bool do_l) |
static void | tweak_stop_color (guint mode, SPStop *stop, Color const &goal, double force, bool do_h, bool do_s, bool do_l) |
static void | tweak_opacity (guint mode, SPIScale24 *style_opacity, double opacity_goal, double force) |
static double | tweak_profile (double dist, double radius) |
static void | tweak_colors_in_gradient (SPItem *item, Inkscape::PaintTarget fill_or_stroke, Color const &goal, Geom::Point p_w, double radius, double force, guint mode, bool do_h, bool do_s, bool do_l, bool) |
static bool | sp_tweak_color_recursive (guint mode, SPItem *item, SPItem *item_at_point, std::optional< Color > &fill_goal, std::optional< Color > &stroke_goal, float opacity_goal, bool do_opacity, bool do_blur, bool reverse, Geom::Point p, double radius, double force, bool do_h, bool do_s, bool do_l, bool do_o) |
static bool | sp_tweak_dilate (TweakTool *tc, Geom::Point event_p, Geom::Point p, Geom::Point vector, bool reverse) |
static void | sp_tweak_update_area (TweakTool *tc) |
static void | sp_tweak_switch_mode (TweakTool *tc, gint mode, bool with_shift) |
static void | sp_tweak_switch_mode_temporarily (TweakTool *tc, gint mode, bool with_shift) |
Variables | |
static constexpr auto | DEFAULT_ERASER_MODE = EraserToolMode::CUT |
static constexpr unsigned char | PIXEL_CHECKED = 1 |
static constexpr unsigned char | PIXEL_QUEUED = 2 |
static constexpr unsigned char | PIXEL_PAINTABLE = 4 |
static constexpr unsigned char | PIXEL_NOT_PAINTABLE = 8 |
static constexpr unsigned char | PIXEL_COLORED = 16 |
static constexpr int | PAINT_DIRECTION_LEFT = 1 |
static constexpr int | PAINT_DIRECTION_RIGHT = 2 |
static constexpr int | PAINT_DIRECTION_UP = 4 |
static constexpr int | PAINT_DIRECTION_DOWN = 8 |
static constexpr int | PAINT_DIRECTION_ALL = 15 |
static ShapeType | previous_shape_type = NONE |
static char const * | gr_handle_descr [] |
static std::optional< Geom::Point > | explicit_base_tmp |
const gchar * | ms_handle_descr [] |
static const auto | fontsize = 12 |
static Geom::Point | pen_drag_origin_w (0, 0) |
static bool | pen_within_tolerance = false |
static Geom::Point | pencil_drag_origin_w (0, 0) |
static bool | pencil_within_tolerance = false |
static gint | rb_escaped = 0 |
static gint | drag_escaped = 0 |
static bool | is_cycling = false |
anonymous enum |
Enumerator | |
---|---|
PICK_COLOR | |
PICK_OPACITY | |
PICK_R | |
PICK_G | |
PICK_B | |
PICK_H | |
PICK_S | |
PICK_L |
Definition at line 67 of file spray-tool.cpp.
anonymous enum |
Enumerator | |
---|---|
SPRAY_MODE_COPY | |
SPRAY_MODE_CLONE | |
SPRAY_MODE_SINGLE_PATH | |
SPRAY_MODE_ERASER | |
SPRAY_OPTION |
Definition at line 39 of file spray-tool.h.
anonymous enum |
Definition at line 29 of file tweak-tool.h.
|
strong |
Enumerator | |
---|---|
DELETE | |
CUT | |
CLIP |
Definition at line 37 of file eraser-tool.h.
Enumerator | |
---|---|
FLOOD_CHANNELS_RGB | |
FLOOD_CHANNELS_R | |
FLOOD_CHANNELS_G | |
FLOOD_CHANNELS_B | |
FLOOD_CHANNELS_H | |
FLOOD_CHANNELS_S | |
FLOOD_CHANNELS_L | |
FLOOD_CHANNELS_ALPHA |
Definition at line 48 of file flood-tool.h.
Enumerator | |
---|---|
SP_PENCIL_CONTEXT_IDLE | |
SP_PENCIL_CONTEXT_ADDLINE | |
SP_PENCIL_CONTEXT_FREEHAND | |
SP_PENCIL_CONTEXT_SKETCH |
Definition at line 38 of file pencil-tool.h.
Enumerator | |
---|---|
PICK_VISIBLE | |
PICK_ACTUAL |
Definition at line 47 of file dropper-tool.cpp.
|
strong |
The possible return states of perform_bitmap_scanline_check().
Enumerator | |
---|---|
OK | |
ABORTED | |
BOUNDARY |
Definition at line 448 of file flood-tool.cpp.
Enumerator | |
---|---|
NONE | |
TRIANGLE_IN | |
TRIANGLE_OUT | |
ELLIPSE | |
CLIPBOARD | |
BEND_CLIPBOARD | |
LAST_APPLIED |
Definition at line 38 of file freehand-base.h.
|
static |
Calculates and keeps track of scroll acceleration.
Subroutine of sp_event_context_private_root_handler().
Definition at line 255 of file tool-base.cpp.
References Inkscape::KeyEvent::keyval, scroll_event_time, scroll_keyval, and scroll_multiply.
|
static |
Definition at line 890 of file calligraphic-tool.cpp.
References add_cap(), DYNA_EPSILON, Geom::L2(), and Geom::rot90().
Referenced by Inkscape::UI::Tools::CalligraphicTool::accumulate(), add_cap(), Inkscape::UI::Tools::CalligraphicTool::draw_temporary_box(), and Inkscape::UI::Tools::CalligraphicTool::fit_and_split().
|
static |
Definition at line 461 of file measure-tool.cpp.
References Geom::crossings(), SPDesktop::d2w(), Geom::delete_duplicates(), desktop, SPDesktop::dt2doc(), Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), SPDesktop::getItemAtPoint(), SPItem::i2doc_affine(), item, and Geom::PathVector::pointAt().
Referenced by Inkscape::UI::Tools::MeasureTool::showCanvasItems().
|
static |
Definition at line 270 of file connector-tool.cpp.
Referenced by Inkscape::UI::Tools::ConnectorTool::_setActiveShape(), and Inkscape::UI::Tools::ConnectorTool::cc_clear_active_shape().
void Inkscape::UI::Tools::cc_create_connection_point | ( | ConnectorTool * | cc | ) |
Definition at line 1158 of file connector-tool.cpp.
References SPKnot::_event_connection, Inkscape::UI::Tools::ConnectorTool::active_shape, Inkscape::CANVAS_ITEM_CTRL_TYPE_SHAPER, cc_create_connection_point(), cc_deselect_handle(), cc_select_handle(), Inkscape::UI::Tools::ToolBase::getDesktop(), Inkscape::UI::Tools::ConnectorTool::selected_handle, SPKnot::show(), SP_CONNECTOR_CONTEXT_IDLE, SP_CONNECTOR_CONTEXT_NEWCONNPOINT, and Inkscape::UI::Tools::ConnectorTool::state.
Referenced by cc_create_connection_point().
|
static |
Definition at line 332 of file connector-tool.cpp.
References SPKnot::ctrl, Inkscape::NORMAL, SPKnot::setAnchor(), SPKnot::setSize(), SP_ANCHOR_CENTER, and SPKnot::updateCtrl().
Referenced by cc_create_connection_point().
|
static |
Definition at line 902 of file connector-tool.cpp.
References cc_generic_knot_handler(), Inkscape::MessageContext::clear(), Inkscape::UI::Tools::ToolBase::defaultMessageContext(), SPKnot::desktop, SPDesktop::getTool(), Inkscape::inspect_event(), Inkscape::NORMAL_MESSAGE, SPKnot::ref(), set, SPKnot::setFlag(), SP_KNOT_MOUSEOVER, and SPKnot::unref().
Referenced by Inkscape::UI::Tools::ConnectorTool::_activeShapeAddKnot(), cc_generic_knot_handler(), and Inkscape::UI::Tools::ConnectorTool::cc_set_active_conn().
bool Inkscape::UI::Tools::cc_item_is_connector | ( | SPItem * | item | ) |
Definition at line 1197 of file connector-tool.cpp.
References cc_item_is_connector(), and item.
Referenced by Inkscape::UI::Tools::ConnectorTool::_selectionChanged(), Inkscape::ObjectSet::applyAffine(), cc_item_is_connector(), Inkscape::UI::Toolbar::ConnectorToolbar::curvature_changed(), Inkscape::UI::Tools::ConnectorTool::item_handler(), Inkscape::UI::Toolbar::ConnectorToolbar::orthogonal_toggled(), and set_active_tool().
|
static |
Definition at line 1178 of file connector-tool.cpp.
References cc_item_is_shape(), Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), and item.
Referenced by cc_item_is_shape(), and cc_selection_set_avoid().
void Inkscape::UI::Tools::cc_remove_connection_point | ( | ConnectorTool * | cc | ) |
|
static |
Definition at line 324 of file connector-tool.cpp.
References SPKnot::ctrl, Inkscape::LARGE, SPKnot::setAnchor(), SPKnot::setSize(), SP_ANCHOR_CENTER, and SPKnot::updateCtrl().
Referenced by cc_create_connection_point().
void Inkscape::UI::Tools::cc_selection_set_avoid | ( | SPDesktop * | desktop, |
bool const | set_avoid | ||
) |
Definition at line 1211 of file connector-tool.cpp.
References cc_item_is_shape(), cc_selection_set_avoid(), desktop, Inkscape::DocumentUndo::done(), Inkscape::MessageStack::flash(), SPItem::getAvoidRef(), SPDesktop::getDocument(), SPDesktop::getSelection(), SPAvoidRef::handleSettingChange(), item, Inkscape::ObjectSet::items(), SPDesktop::messageStack(), SPObject::setAttribute(), and Inkscape::WARNING_MESSAGE.
Referenced by cc_selection_set_avoid(), Inkscape::UI::Toolbar::ConnectorToolbar::path_set_avoid(), and Inkscape::UI::Toolbar::ConnectorToolbar::path_set_ignore().
|
inlinestatic |
Check if a pixel can be included in the fill.
px | The rendered pixel buffer to check. |
trace_t | The pixel in the trace pixel buffer to check or mark. |
x | The X coordinate. |
y | The y coordinate. |
orig_color | The original selected pixel to use as the fill target color. |
bci | The bitmap_coords_info structure. |
Definition at line 313 of file flood-tool.cpp.
References compare_pixels(), get_pixel(), is_pixel_paintability_checked(), is_pixel_paintable(), mark_pixel_not_paintable(), and mark_pixel_paintable().
Referenced by paint_pixel(), perform_bitmap_scanline_check(), and sp_flood_do_flood_fill().
|
inlinestatic |
Definition at line 282 of file flood-tool.cpp.
References PIXEL_NOT_PAINTABLE, and PIXEL_PAINTABLE.
Referenced by sp_flood_do_flood_fill().
|
static |
Compare a pixel in a pixel buffer with another pixel to determine if a point should be included in the fill operation.
check | The pixel in the pixel buffer to check. |
orig | The original selected pixel to use as the fill target color. |
merged_orig_pixel | The original pixel merged with the background. |
dtc | The desktop background color. |
threshold | The fill threshold. |
method | The fill method to use as defined in PaintBucketChannels. |
Definition at line 194 of file flood-tool.cpp.
References compare_uint32(), FLOOD_CHANNELS_ALPHA, FLOOD_CHANNELS_B, FLOOD_CHANNELS_G, FLOOD_CHANNELS_H, FLOOD_CHANNELS_L, FLOOD_CHANNELS_R, FLOOD_CHANNELS_RGB, FLOOD_CHANNELS_S, orig, rc, rd, Inkscape::Colors::Color::set(), and unpremul_alpha().
Referenced by check_if_pixel_is_paintable().
|
static |
Check whether two unsigned integers are close to each other.
[in] | a | The 1st unsigned int |
[in] | b | The 2nd unsigned int |
[in] | d | The threshold for comparison |
Definition at line 180 of file flood-tool.cpp.
Referenced by compare_pixels().
|
inlinestatic |
Definition at line 140 of file flood-tool.cpp.
Referenced by sp_flood_do_flood_fill().
|
inlinestatic |
Determine if the provided coordinates are within the pixel buffer limits.
x | The X coordinate. |
y | The Y coordinate. |
bci | The bitmap_coords_info structure. |
Definition at line 461 of file flood-tool.cpp.
Referenced by paint_pixel().
Inkscape::CanvasItemGroup * Inkscape::UI::Tools::create_control_group | ( | SPDesktop * | desktop | ) |
Definition at line 109 of file node-tool.cpp.
References desktop, and SPDesktop::getCanvasControls().
Referenced by Inkscape::UI::Tools::NodeTool::NodeTool().
|
static |
Perform the bitmap-to-vector tracing and place the traced path onto the document.
px | The trace pixel buffer to trace to SVG. |
desktop | The desktop on which to place the final SVG path. |
transform | The transform to apply to the final SVG path. |
union_with_selection | If true, merge the final SVG path with the current selection. |
Definition at line 336 of file flood-tool.cpp.
References Inkscape::Selection::add(), SPObject::addChild(), Inkscape::XML::Node::attribute(), Inkscape::Trace::GrayMap::BLACK, Path::ConvertEvenLines(), Shape::ConvertToForme(), Shape::ConvertToShape(), Path::ConvertWithBackData(), Inkscape::XML::Document::createElement(), SPDesktop::current_zoom(), Inkscape::LayerManager::currentLayer(), desktop, SPDesktop::doc(), Path::Fill(), fill_nonZero, fill_positive, Inkscape::MessageStack::flash(), Inkscape::MessageStack::flashF(), Inkscape::Preferences::get(), get_trace_pixel(), SPDesktop::getDocument(), Inkscape::Preferences::getDouble(), SPDocument::getObjectByRepr(), SPDocument::getReprDoc(), SPDesktop::getSelection(), Geom::identity(), Geom::Affine::inverse(), is_pixel_colored(), Geom::Affine::isIdentity(), join_round, SPDesktop::layerManager(), Path::LoadPathVector(), Shape::MakeOffset(), SPDesktop::messageStack(), offset, Inkscape::ObjectSet::pathUnion(), Inkscape::GC::release(), result, Inkscape::Selection::set(), Inkscape::XML::Node::setAttribute(), Inkscape::XML::Node::setAttributeOrRemoveIfEmpty(), Inkscape::XML::Node::setPosition(), Path::Simplify(), sp_desktop_apply_style_tool(), sp_svg_transform_read(), sp_svg_transform_write(), Path::svg_dump_path(), Inkscape::Trace::Potrace::PotraceTracingEngine::traceGrayMap(), Inkscape::WARNING_MESSAGE, and Inkscape::Trace::GrayMap::WHITE.
Referenced by fit_item(), sp_flood_do_flood_fill(), and sp_spray_recursive().
|
static |
Definition at line 372 of file measure-tool.cpp.
Referenced by Inkscape::UI::Tools::MeasureTool::readMeasurePoint(), and Inkscape::UI::Tools::MeasureTool::writeMeasurePoint().
|
static |
Definition at line 943 of file connector-tool.cpp.
References Inkscape::UI::Tools::ConnectorTool::active_conn, Inkscape::UI::Tools::ConnectorTool::active_handle, Inkscape::UI::Tools::ConnectorTool::cc_clear_active_conn(), Inkscape::UI::Tools::ConnectorTool::clickedhandle, Inkscape::UI::Tools::ConnectorTool::clickeditem, Inkscape::UI::Tools::ConnectorTool::endpt_handle, endpt_handler(), SPItem::i2dt_affine(), Inkscape::inspect_event(), origin, SPKnot::pos, Inkscape::UI::Tools::ConnectorTool::red_bpath, Inkscape::UI::Tools::ConnectorTool::red_curve, Inkscape::CanvasItemBpath::set_bpath(), SPItem::setHidden(), sp_conn_end_detach(), SP_CONNECTOR_CONTEXT_IDLE, SP_CONNECTOR_CONTEXT_REROUTING, and Inkscape::UI::Tools::ConnectorTool::state.
Referenced by Inkscape::UI::Tools::ConnectorTool::cc_set_active_conn(), and endpt_handler().
|
static |
Definition at line 99 of file box3d-tool.cpp.
References child, Persp3D::create_xml_element(), SPDocument::getDefs(), and SPDocument::setCurrentPersp3D().
Referenced by Inkscape::UI::Tools::Box3dTool::root_handler().
|
static |
Definition at line 420 of file spray-tool.cpp.
References Geom::Path::appendNew(), Geom::Path::boundsFast(), Geom::Path::close(), css, SPDesktop::d2w(), SPObject::deleteObject(), desktop, SPDesktop::dkey, do_trace(), SPDesktop::doc2dt(), SPObject::document, SPItem::documentVisualBounds(), SPDocument::ensureUpToDate(), fit_item(), floor(), Geom::GenericRect< C >::from_xywh(), SPObject::getAttribute(), SPDesktop::getDocument(), SPObject::getId(), SPDocument::getItemsPartiallyInBox(), getPickerData(), Geom::Rect::hasZeroArea(), height, Inkscape::Colors::Space::HSL, item, mode, offset, PICK_B, PICK_COLOR, PICK_G, PICK_H, PICK_L, PICK_OPACITY, PICK_R, PICK_S, randomize01(), Inkscape::Colors::rgba_to_hex(), Geom::Rect::roundOutwards(), scale, set, SPItem::setHidden(), showHidden(), sp_repr_css_set_property(), sp_repr_css_set_property_string(), SP_RGBA32_A_F(), sp_spray_transform_path(), SPRAY_MODE_ERASER, Geom::Path::start(), SPObject::updateRepr(), width, Geom::X, and Geom::Y.
Referenced by fit_item(), and sp_spray_recursive().
|
static |
Recursively collect ShapeRecords.
Definition at line 319 of file node-tool.cpp.
References c, SPObject::children, Inkscape::UI::Tools::NodeTool::edit_clipping_paths, Inkscape::UI::Tools::NodeTool::edit_masks, Inkscape::UI::ShapeRecord::edit_transform, gather_items(), SPItem::getClipObject(), SPItem::getMaskObject(), SPItem::i2doc_affine(), item, Inkscape::UI::ShapeRecord::object, Inkscape::UI::ShapeRecord::role, Inkscape::UI::SHAPE_ROLE_CLIPPING_PATH, Inkscape::UI::SHAPE_ROLE_MASK, and Inkscape::UI::SHAPE_ROLE_NORMAL.
Referenced by gather_items(), and Inkscape::UI::Tools::NodeTool::selection_changed().
Text::Layout::iterator const * Inkscape::UI::Tools::get_cursor_position | ( | TextTool const & | tool, |
SPObject const * | other_text | ||
) |
Definition at line 1766 of file text-tool.cpp.
References Inkscape::UI::Tools::TextTool::text_sel_end, and Inkscape::UI::Tools::TextTool::textItem().
|
static |
Definition at line 302 of file spray-tool.cpp.
References SPDesktop::current_zoom(), get_width(), and Inkscape::UI::Tools::ToolBase::getDesktop().
Referenced by Inkscape::UI::Tools::SprayTool::root_handler(), Inkscape::UI::Tools::TweakTool::root_handler(), sp_spray_dilate(), sp_spray_update_area(), sp_tweak_dilate(), and sp_tweak_update_area().
|
static |
Definition at line 268 of file tweak-tool.cpp.
References SPDesktop::current_zoom(), Inkscape::UI::Tools::ToolBase::getDesktop(), and Inkscape::UI::Tools::TweakTool::width.
SPObject * Inkscape::UI::Tools::get_item_at | ( | SPDesktop * | desktop, |
const Geom::Point & | point | ||
) |
Definition at line 49 of file object-picker-tool.cpp.
References desktop, SPDesktop::getDocument(), SPDesktop::getItemAtPoint(), item, and SPDesktop::w2d().
Referenced by Inkscape::UI::Tools::ObjectPickerTool::root_handler().
unsigned Inkscape::UI::Tools::get_latin_keyval | ( | Gtk::EventControllerKey const & | controller, |
unsigned | keyval, | ||
unsigned | keycode, | ||
Gdk::ModifierType | state, | ||
unsigned * | consumed_modifiers | ||
) |
Definition at line 1372 of file tool-base.cpp.
References get_latin_keyval(), and get_latin_keyval_impl().
unsigned Inkscape::UI::Tools::get_latin_keyval | ( | GtkEventControllerKey const *const | controller, |
unsigned const | keyval, | ||
unsigned const | keycode, | ||
GdkModifierType const | state, | ||
unsigned * | consumed_modifiers | ||
) |
Return the keyval corresponding to the event controller key in Latin group.
Use this instead of simply a signal's keyval, so that your keyboard shortcuts work regardless of layouts (e.g., in Cyrillic).
Definition at line 1364 of file tool-base.cpp.
References get_latin_keyval(), and get_latin_keyval_impl().
Referenced by Inkscape::UI::Tools::PenTool::_handleKeyPress(), Inkscape::UI::Tools::PencilTool::_handleKeyPress(), Inkscape::UI::Tools::EraserTool::_handleKeypress(), Inkscape::UI::Tools::PencilTool::_handleKeyRelease(), SPDesktop::drawing_handler(), Inkscape::UI::Tools::InteractiveBooleansTool::event_key_press_handler(), SPKnot::eventHandler(), get_latin_keyval(), get_latin_keyval(), get_latin_keyval(), GrDrag::key_press_handler(), Inkscape::UI::Dialog::DialogBase::on_key_pressed(), Inkscape::UI::Dialog::LayerPropertiesDialog::on_key_pressed(), Inkscape::UI::Widget::FontCollectionSelector::on_key_pressed(), Inkscape::UI::Widget::SpinButton::on_key_pressed(), Inkscape::UI::Tools::ArcTool::root_handler(), Inkscape::UI::Tools::Box3dTool::root_handler(), Inkscape::UI::Tools::ConnectorTool::root_handler(), Inkscape::UI::Tools::DropperTool::root_handler(), Inkscape::UI::Tools::FreehandBase::root_handler(), Inkscape::UI::Tools::NodeTool::root_handler(), Inkscape::UI::Tools::RectTool::root_handler(), Inkscape::UI::Tools::SpiralTool::root_handler(), Inkscape::UI::Tools::SprayTool::root_handler(), Inkscape::UI::Tools::StarTool::root_handler(), Inkscape::UI::Tools::TextTool::root_handler(), Inkscape::UI::Tools::TweakTool::root_handler(), Inkscape::UI::Tools::ZoomTool::root_handler(), sp_event_show_modifier_tip(), and sp_sel_trans_handle_event().
unsigned Inkscape::UI::Tools::get_latin_keyval | ( | KeyEvent const & | event, |
unsigned * | consumed_modifiers | ||
) |
Definition at line 1380 of file tool-base.cpp.
References get_latin_keyval(), get_latin_keyval_impl(), Inkscape::KeyEvent::group, Inkscape::KeyEvent::keycode, Inkscape::KeyEvent::keyval, and Inkscape::CanvasEvent::modifiers.
unsigned Inkscape::UI::Tools::get_latin_keyval_impl | ( | unsigned const | event_keyval, |
unsigned const | event_keycode, | ||
GdkModifierType const | event_state, | ||
unsigned const | event_group, | ||
unsigned * | consumed_modifiers | ||
) |
Definition at line 1323 of file tool-base.cpp.
References get_latin_keyval_impl(), latin_keys_group, latin_keys_group_valid, and latin_keys_groups.
Referenced by Inkscape::get_from_event_impl(), get_latin_keyval(), get_latin_keyval(), get_latin_keyval(), and get_latin_keyval_impl().
|
static |
Definition at line 286 of file tweak-tool.cpp.
References Inkscape::UI::Tools::TweakTool::force, Inkscape::UI::Tools::TweakTool::pressure, and Inkscape::UI::Tools::TweakTool::usepressure.
Referenced by sp_tweak_dilate().
|
static |
Definition at line 329 of file spray-tool.cpp.
References Inkscape::UI::Tools::SprayTool::mean.
Referenced by sp_spray_dilate().
|
static |
Definition at line 334 of file spray-tool.cpp.
References Inkscape::UI::Tools::SprayTool::standard_deviation.
Referenced by sp_spray_dilate().
|
static |
Definition at line 275 of file tweak-tool.cpp.
References SPDesktop::current_zoom(), Inkscape::UI::Tools::TweakTool::force, Inkscape::UI::Tools::ToolBase::getDesktop(), Inkscape::UI::Tools::TweakTool::pressure, and Inkscape::UI::Tools::TweakTool::usepressure.
Referenced by sp_tweak_dilate().
|
static |
Definition at line 307 of file spray-tool.cpp.
References Inkscape::UI::Tools::SprayTool::mean.
Referenced by sp_spray_dilate().
|
static |
Definition at line 312 of file spray-tool.cpp.
References Inkscape::UI::Tools::SprayTool::standard_deviation.
Referenced by sp_spray_dilate().
|
static |
Definition at line 106 of file spray-tool.cpp.
References Geom::PathVector::boundsFast(), SPItem::documentVisualBounds(), Geom::PathVector::end(), get_paths(), SPItem::i2doc_affine(), Geom::PathVector::insert(), Geom::Translate::inverse(), item, and root.
Referenced by get_paths(), Inkscape::UI::Tools::SprayTool::root_handler(), and sp_spray_update_area().
|
inline |
Get the pointer to a pixel in a pixel buffer.
px | The pixel buffer. |
x | The X coordinate. |
y | The Y coordinate. |
stride | The rowstride of the pixel buffer. |
Definition at line 161 of file flood-tool.cpp.
References stride.
Referenced by check_if_pixel_is_paintable(), and sp_flood_do_flood_fill().
|
static |
Definition at line 317 of file spray-tool.cpp.
References Inkscape::UI::Tools::SprayTool::population, Inkscape::UI::Tools::SprayTool::pressure, and Inkscape::UI::Tools::SprayTool::usepressurepopulation.
Referenced by sp_spray_dilate().
|
static |
Definition at line 323 of file spray-tool.cpp.
References Inkscape::UI::Tools::SprayTool::pressure.
Referenced by sp_spray_dilate().
Glib::ustring Inkscape::UI::Tools::get_selected_text | ( | TextTool const & | tool | ) |
Gets the raw characters that comprise the currently selected text, converting line breaks into lf characters.
Definition at line 1299 of file text-tool.cpp.
References sp_te_get_string_multiline(), Inkscape::UI::Tools::TextTool::text_sel_end, Inkscape::UI::Tools::TextTool::text_sel_start, and Inkscape::UI::Tools::TextTool::textItem().
|
static |
Definition at line 179 of file gradient-tool.cpp.
References GrDrag::getDraggerFor(), getGradient(), GrDragger::isSelected(), item, GrDragger::point, POINT_LG_BEGIN, POINT_LG_END, POINT_LG_MID, POINT_RG_CENTER, POINT_RG_FOCUS, POINT_RG_MID1, POINT_RG_MID2, POINT_RG_R1, POINT_RG_R2, result, GrDrag::selected, sp_get_stop_i(), sp_gradient_get_forked_vector_if_necessary(), and sp_last_stop().
Referenced by Inkscape::UI::Tools::GradientTool::add_stops_between_selected_stops(), and Inkscape::UI::Tools::GradientTool::simplify().
Definition at line 1308 of file text-tool.cpp.
References sp_te_object_at_position(), take_style_from_item(), Inkscape::UI::Tools::TextTool::text_sel_end, and Inkscape::UI::Tools::TextTool::textItem().
|
inline |
Definition at line 166 of file flood-tool.cpp.
References width.
Referenced by do_trace(), paint_pixel(), perform_bitmap_scanline_check(), and sp_flood_do_flood_fill().
|
static |
Definition at line 296 of file spray-tool.cpp.
References Inkscape::UI::Tools::SprayTool::pressure, Inkscape::UI::Tools::SprayTool::usepressurewidth, and Inkscape::UI::Tools::SprayTool::width.
Referenced by get_dilate_radius().
|
static |
Definition at line 395 of file spray-tool.cpp.
References Inkscape::Drawing::averageColor(), desktop, Inkscape::CanvasItemDrawing::get_drawing(), SPDesktop::getCanvasDrawing(), and Inkscape::Colors::Color::set().
Referenced by fit_item().
|
inline |
Definition at line 243 of file tool-base.h.
Referenced by Inkscape::UI::Tools::ToolBase::_keyboardMove(), Inkscape::UI::ControlPointSelection::_keyboardMove(), GrDrag::key_press_handler(), and Inkscape::UI::Tools::TextTool::root_handler().
|
inline |
Definition at line 244 of file tool-base.h.
Referenced by Inkscape::UI::Tools::PenTool::_handleMotionNotify(), Inkscape::UI::Tools::ConnectorTool::_handleMotionNotify(), SPKnot::handler_request_position(), Inkscape::UI::Widget::Rotateable::on_motion(), Inkscape::UI::Tools::ArcTool::root_handler(), Inkscape::UI::Tools::MeasureTool::root_handler(), Inkscape::UI::Tools::RectTool::root_handler(), Inkscape::UI::Tools::SpiralTool::root_handler(), Inkscape::UI::Tools::SprayTool::root_handler(), Inkscape::UI::Tools::StarTool::root_handler(), Inkscape::UI::Tools::TextTool::root_handler(), Inkscape::UI::Tools::TweakTool::root_handler(), and Inkscape::UI::Tools::ZoomTool::root_handler().
|
static |
Definition at line 410 of file mesh-tool.cpp.
References Inkscape::FOR_FILL, Inkscape::Preferences::get(), Inkscape::Preferences::getInt(), item, and SPObject::style.
Referenced by Inkscape::UI::Tools::MeshTool::root_handler().
|
static |
Definition at line 330 of file text-tool.cpp.
References len.
Referenced by Inkscape::UI::Tools::TextTool::_showCurrUnichar().
|
static |
Definition at line 77 of file pencil-tool.cpp.
References Geom::LInfty().
Referenced by Inkscape::UI::Tools::PencilTool::_addFreehandPoint(), Inkscape::UI::Tools::PencilTool::_fitAndSplit(), Inkscape::UI::Tools::PencilTool::_interpolate(), Inkscape::UI::Tools::PencilTool::_setEndpoint(), Inkscape::UI::Tools::PencilTool::_setStartpoint(), and Inkscape::UI::Tools::PencilTool::_sketchInterpolate().
void Inkscape::UI::Tools::init_latin_keys_group | ( | ) |
Initialize Latin keys group handling.
Definition at line 1315 of file tool-base.cpp.
References init_latin_keys_group(), and update_latin_keys_group().
Referenced by Inkscape::Application::Application(), and init_latin_keys_group().
|
static |
Definition at line 124 of file tweak-tool.cpp.
References mode, TWEAK_MODE_BLUR, TWEAK_MODE_COLORJITTER, and TWEAK_MODE_COLORPAINT.
Referenced by sp_tweak_dilate(), and sp_tweak_dilate_recursive().
|
inlinestatic |
Definition at line 268 of file flood-tool.cpp.
References PIXEL_CHECKED.
Referenced by sp_flood_do_flood_fill().
|
inlinestatic |
Definition at line 274 of file flood-tool.cpp.
References PIXEL_COLORED.
Referenced by do_trace(), paint_pixel(), and sp_flood_do_flood_fill().
|
inlinestatic |
Definition at line 270 of file flood-tool.cpp.
References PIXEL_NOT_PAINTABLE, and PIXEL_PAINTABLE.
Referenced by check_if_pixel_is_paintable().
|
inlinestatic |
Definition at line 273 of file flood-tool.cpp.
References PIXEL_PAINTABLE.
Referenced by check_if_pixel_is_paintable().
|
inlinestatic |
Definition at line 269 of file flood-tool.cpp.
References PIXEL_QUEUED.
Referenced by perform_bitmap_scanline_check(), push_point_onto_queue(), shift_point_onto_queue(), and sp_flood_do_flood_fill().
|
static |
Definition at line 114 of file tweak-tool.cpp.
References mode, TWEAK_MODE_MORELESS, TWEAK_MODE_MOVE, TWEAK_MODE_MOVE_IN_OUT, TWEAK_MODE_MOVE_JITTER, TWEAK_MODE_ROTATE, and TWEAK_MODE_SCALE.
Referenced by sp_tweak_dilate(), and sp_tweak_dilate_recursive().
|
static |
Definition at line 165 of file select-tool.cpp.
References key.
std::pair< Geom::Point, Geom::Point > Inkscape::UI::Tools::lpetool_get_limiting_bbox_corners | ( | SPDocument const * | document | ) |
Definition at line 241 of file lpe-tool.cpp.
References Inkscape::Preferences::get(), SPDocument::getHeight(), SPDocument::getWidth(), lpetool_get_limiting_bbox_corners(), Inkscape::Util::Quantity::value(), and w.
Referenced by Inkscape::LivePathEffect::LPELineSegment::doBeforeEffect(), lpetool_get_limiting_bbox_corners(), and Inkscape::UI::Tools::LpeTool::reset_limiting_bbox().
int Inkscape::UI::Tools::lpetool_item_has_construction | ( | SPItem * | item | ) |
Definition at line 192 of file lpe-tool.cpp.
References item, lpetool_item_has_construction(), and lpetool_mode_to_index().
Referenced by lpetool_item_has_construction(), and Inkscape::UI::Toolbar::LPEToolbar::sel_changed().
int Inkscape::UI::Tools::lpetool_mode_to_index | ( | LivePathEffect::EffectType const | type | ) |
Definition at line 178 of file lpe-tool.cpp.
References lpesubtools, lpetool_mode_to_index(), and num_subtools.
Referenced by lpetool_item_has_construction(), lpetool_mode_to_index(), and Inkscape::UI::Tools::LpeTool::switch_mode().
bool Inkscape::UI::Tools::lpetool_try_construction | ( | SPDesktop * | desktop, |
LivePathEffect::EffectType const | type | ||
) |
Definition at line 210 of file lpe-tool.cpp.
References Inkscape::LivePathEffect::Effect::acceptsNumClicks(), Inkscape::LivePathEffect::Effect::createAndApply(), desktop, SPDesktop::getDocument(), SPDesktop::getSelection(), item, and lpetool_try_construction().
Referenced by lpetool_try_construction(), and Inkscape::UI::Toolbar::LPEToolbar::mode_changed().
|
inlinestatic |
Definition at line 276 of file flood-tool.cpp.
References PIXEL_CHECKED.
Referenced by perform_bitmap_scanline_check(), and sp_flood_do_flood_fill().
|
inlinestatic |
Definition at line 280 of file flood-tool.cpp.
References PIXEL_COLORED.
Referenced by paint_pixel().
|
inlinestatic |
Definition at line 279 of file flood-tool.cpp.
References PIXEL_NOT_PAINTABLE, and PIXEL_PAINTABLE.
Referenced by check_if_pixel_is_paintable().
|
inlinestatic |
Definition at line 278 of file flood-tool.cpp.
References PIXEL_NOT_PAINTABLE, and PIXEL_PAINTABLE.
Referenced by check_if_pixel_is_paintable().
|
inlinestatic |
Definition at line 277 of file flood-tool.cpp.
References PIXEL_QUEUED.
Referenced by push_point_onto_queue(), and shift_point_onto_queue().
|
inline |
This function returns pseudo-random numbers from a normal distribution.
mu | : mean |
sigma | : standard deviation ( > 0 ) |
Definition at line 83 of file spray-tool.cpp.
References log().
Referenced by random_position().
|
inlinestatic |
Paint a pixel or a square (if autogap is enabled) on the trace pixel buffer.
px | The rendered pixel buffer to check. |
trace_px | The trace pixel buffer. |
orig_color | The original selected pixel to use as the fill target color. |
bci | The bitmap_coords_info structure. |
original_point_trace_t | The original pixel in the trace pixel buffer to check. |
Definition at line 480 of file flood-tool.cpp.
References check_if_pixel_is_paintable(), coords_in_range(), get_trace_pixel(), is_pixel_colored(), mark_pixel_colored(), PAINT_DIRECTION_ALL, PAINT_DIRECTION_DOWN, PAINT_DIRECTION_LEFT, PAINT_DIRECTION_RIGHT, and PAINT_DIRECTION_UP.
Referenced by perform_bitmap_scanline_check().
|
static |
Scan a row in the rendered pixel buffer and add points to the fill queue as necessary.
fill_queue | The fill queue to add the point to. |
px | The rendered pixel buffer. |
trace_px | The trace pixel buffer. |
orig_color | The original selected pixel to use as the fill target color. |
bci | The bitmap_coords_info structure. |
Definition at line 561 of file flood-tool.cpp.
References ABORTED, BOUNDARY, check_if_pixel_is_paintable(), get_trace_pixel(), is_pixel_queued(), mark_pixel_checked(), OK, PAINT_DIRECTION_DOWN, PAINT_DIRECTION_LEFT, PAINT_DIRECTION_RIGHT, PAINT_DIRECTION_UP, paint_pixel(), push_point_onto_queue(), and Geom::X.
Referenced by sp_flood_do_flood_fill().
|
static |
Push a point to be checked onto the bottom of the rendered pixel buffer check queue.
fill_queue | The fill queue to add the point to. |
max_queue_size | The maximum size of the fill queue. |
trace_t | The trace pixel buffer pixel. |
x | The X coordinate. |
y | The Y coordinate. |
Definition at line 529 of file flood-tool.cpp.
References is_pixel_queued(), and mark_pixel_queued().
Referenced by perform_bitmap_scanline_check(), and sp_flood_do_flood_fill().
|
static |
Method to handle the distribution of the items.
[out] | radius | : radius of the position of the sprayed object |
[out] | angle | : angle of the position of the sprayed object |
[in] | a | : mean |
[in] | s | : standard deviation |
[in] | choice | : |
Definition at line 348 of file spray-tool.cpp.
References NormalDistribution().
Referenced by sp_spray_recursive().
double Inkscape::UI::Tools::randomize01 | ( | double | val, |
double | rand | ||
) |
Randomizes val by rand, with 0 < val < 1 and all values (including 0, 1) having the same probability of being displaced.
Definition at line 385 of file spray-tool.cpp.
References MIN.
Referenced by fit_item().
|
static |
Shows coordinates on status bar.
Definition at line 1212 of file tool-base.cpp.
References desktop, Inkscape::MOTION, SPDesktop::set_coordinate_status(), set_event_location(), Inkscape::CanvasEvent::type(), and SPDesktop::w2d().
Referenced by set_event_location(), Inkscape::UI::Tools::ToolBase::tool_root_handler(), and Inkscape::UI::Tools::ToolBase::virtual_item_handler().
|
static |
Definition at line 280 of file lpe-tool.cpp.
References Geom::angle_between(), Inkscape::CanvasItemText::set_anchor(), Inkscape::CanvasItemText::set_coord(), and set_pos_and_anchor().
Referenced by Inkscape::UI::Tools::LpeTool::create_measuring_items(), set_pos_and_anchor(), and Inkscape::UI::Tools::LpeTool::update_measuring_items().
|
static |
Shift a point to be checked onto the top of the rendered pixel buffer check queue.
fill_queue | The fill queue to add the point to. |
max_queue_size | The maximum size of the fill queue. |
trace_t | The trace pixel buffer pixel. |
x | The X coordinate. |
y | The Y coordinate. |
Definition at line 545 of file flood-tool.cpp.
References is_pixel_queued(), and mark_pixel_queued().
Referenced by sp_flood_do_flood_fill().
|
static |
Definition at line 413 of file spray-tool.cpp.
Referenced by fit_item().
|
static |
Sort the rendered pixel buffer check queue horizontally.
Definition at line 683 of file flood-tool.cpp.
References Geom::Point::x().
Referenced by sp_flood_do_flood_fill().
|
static |
Sort the rendered pixel buffer check queue vertically.
Definition at line 675 of file flood-tool.cpp.
References Geom::Point::y().
Referenced by sp_flood_do_flood_fill().
SPItem * Inkscape::UI::Tools::sp_event_context_find_item | ( | SPDesktop * | desktop, |
Geom::Point const & | p, | ||
bool | select_under, | ||
bool | into_groups | ||
) |
Returns item at point p in desktop.
If state includes alt key mask, cyclically selects under; honors into_groups.
Definition at line 1393 of file tool-base.cpp.
References desktop, SPDesktop::getItemAtPoint(), SPDesktop::getItemFromListAtPointBottom(), SPDesktop::getSelection(), item, Inkscape::ObjectSet::items(), and sp_event_context_find_item().
Referenced by Inkscape::UI::Tools::PencilTool::_handleButtonRelease(), Inkscape::UI::Tools::ConnectorTool::item_handler(), Inkscape::UI::Tools::ToolBase::menu_popup(), Inkscape::UI::Tools::Box3dTool::root_handler(), Inkscape::UI::Tools::DropperTool::root_handler(), Inkscape::UI::Tools::MeshTool::root_handler(), Inkscape::UI::Tools::NodeTool::root_handler(), Inkscape::UI::Tools::NodeTool::select_point(), Inkscape::UI::Tools::ToolBase::setup_for_drag_start(), and sp_event_context_find_item().
ShapeEditor * Inkscape::UI::Tools::sp_event_context_get_shape_editor | ( | ToolBase * | tool | ) |
Definition at line 1426 of file tool-base.cpp.
References Inkscape::UI::Tools::ToolBase::shape_editor, and sp_event_context_get_shape_editor().
Referenced by sp_event_context_get_shape_editor().
SPItem * Inkscape::UI::Tools::sp_event_context_over_item | ( | SPDesktop * | desktop, |
SPItem * | item, | ||
Geom::Point const & | p | ||
) |
Returns item if it is under point p in desktop, at any depth; otherwise returns NULL.
Honors into_groups.
Definition at line 1418 of file tool-base.cpp.
References desktop, SPDesktop::getItemFromListAtPointBottom(), item, and sp_event_context_over_item().
Referenced by sp_event_context_over_item().
void Inkscape::UI::Tools::sp_event_context_read | ( | ToolBase * | tool, |
char const * | key | ||
) |
Calls virtual set() function of ToolBase.
Definition at line 1101 of file tool-base.cpp.
References Inkscape::Preferences::get(), Inkscape::Preferences::getEntry(), Inkscape::UI::Tools::ToolBase::getPrefsPath(), key, Inkscape::UI::Tools::ToolBase::set(), and sp_event_context_read().
Referenced by Inkscape::UI::Tools::CalligraphicTool::CalligraphicTool(), Inkscape::UI::Tools::ConnectorTool::ConnectorTool(), Inkscape::UI::Tools::EraserTool::EraserTool(), Inkscape::UI::Tools::MeshTool::MeshTool(), Inkscape::UI::Tools::NodeTool::NodeTool(), Inkscape::UI::Tools::PenTool::PenTool(), Inkscape::UI::Tools::RectTool::RectTool(), Inkscape::UI::Tools::SelectTool::SelectTool(), sp_event_context_read(), Inkscape::UI::Tools::SpiralTool::SpiralTool(), Inkscape::UI::Tools::SprayTool::SprayTool(), Inkscape::UI::Tools::StarTool::StarTool(), Inkscape::UI::Tools::ToolBase::ToolBase(), and Inkscape::UI::Tools::TweakTool::TweakTool().
void Inkscape::UI::Tools::sp_event_show_modifier_tip | ( | MessageContext * | message_context, |
KeyEvent const & | event, | ||
char const * | ctrl_tip, | ||
char const * | shift_tip, | ||
char const * | alt_tip | ||
) |
Show tool context specific modifier tip.
Definition at line 1263 of file tool-base.cpp.
References Inkscape::MessageContext::flash(), get_latin_keyval(), Inkscape::INFORMATION_MESSAGE, Inkscape::mod_alt(), Inkscape::mod_ctrl(), Inkscape::mod_shift(), shift(), and sp_event_show_modifier_tip().
Referenced by Inkscape::Modifiers::responsive_tooltip(), Inkscape::UI::Tools::ArcTool::root_handler(), Inkscape::UI::Tools::RectTool::root_handler(), Inkscape::UI::Tools::SpiralTool::root_handler(), Inkscape::UI::Tools::StarTool::root_handler(), and sp_event_show_modifier_tip().
|
static |
Perform a flood fill operation.
desktop | The desktop of this tool's event context. |
cursor_pos | The location of the mouse cursor. |
union_with_selection | If true, union the new fill with the current selection. |
is_point_fill | If false, use the Rubberband "touch selection" to get the initial points for the fill. |
is_touch_fill | If true, use only the initial contact point in the Rubberband "touch selection" as the fill target color. |
Definition at line 696 of file flood-tool.cpp.
References ABORTED, BOUNDARY, check_if_pixel_is_paintable(), clear_pixel_paintability(), compose_onto(), current, SPDesktop::d2w(), desktop, Geom::GenericRect< C >::dimensions(), SPItem::display_key_new(), do_trace(), SPDesktop::doc2dt(), Inkscape::DocumentUndo::done(), SPDocument::ensureUpToDate(), Inkscape::MessageStack::flash(), FLOOD_CHANNELS_ALPHA, FLOOD_CHANNELS_B, FLOOD_CHANNELS_G, FLOOD_CHANNELS_R, FLOOD_CHANNELS_RGB, Geom::GenericRect< C >::from_xywh(), Geom::GenericRect< Coord >::from_xywh(), Inkscape::Preferences::get(), Inkscape::Rubberband::get(), Inkscape::UI::Widget::Canvas::get_area_world(), get_pixel(), get_trace_pixel(), SPDesktop::getCanvas(), SPDesktop::getDocument(), Inkscape::Rubberband::getPoints(), height, Geom::Affine::inverse(), is_pixel_checked(), is_pixel_colored(), is_pixel_queued(), mark_pixel_checked(), Geom::GenericRect< C >::max(), MAX, SPDesktop::messageStack(), Geom::GenericRect< C >::min(), MIN, perform_bitmap_scanline_check(), push_point_onto_queue(), Inkscape::Drawing::render(), result, root, Inkscape::Drawing::setRoot(), shift_point_onto_queue(), sort_fill_queue_horizontal(), sort_fill_queue_vertical(), stride, Inkscape::Drawing::update(), SPDesktop::w2d(), Inkscape::WARNING_MESSAGE, width, Geom::X, Geom::IntPoint::x(), Geom::Y, and Geom::IntPoint::y().
|
static |
Definition at line 177 of file select-tool.cpp.
References Inkscape::LayerManager::currentLayer(), desktop, SPDesktop::getSelection(), SPGroup::LAYER, SPDesktop::layerManager(), parent, SPObject::parent, Inkscape::Selection::set(), and Inkscape::LayerManager::setCurrentLayer().
|
static |
Definition at line 1012 of file spray-tool.cpp.
References desktop, Inkscape::UI::Tools::SprayTool::distrib, Inkscape::UI::Tools::SprayTool::do_trace, Inkscape::UI::Tools::SprayTool::gamma_picked, get_dilate_radius(), get_move_mean(), get_move_standard_deviation(), get_path_mean(), get_path_standard_deviation(), get_population(), get_pressure(), Inkscape::UI::Tools::ToolBase::getDesktop(), Inkscape::UI::Tools::SprayTool::invert_picked, item, Inkscape::UI::Tools::SprayTool::items, Inkscape::UI::Tools::SprayTool::mode, Inkscape::UI::Tools::SprayTool::no_overlap, Inkscape::UI::Tools::SprayTool::objectSet(), Inkscape::UI::Tools::SprayTool::offset, Inkscape::UI::Tools::SprayTool::over_no_transparent, Inkscape::UI::Tools::SprayTool::over_transparent, Inkscape::UI::Tools::SprayTool::pick, Inkscape::UI::Tools::SprayTool::pick_center, Inkscape::UI::Tools::SprayTool::pick_fill, Inkscape::UI::Tools::SprayTool::pick_inverse_value, Inkscape::UI::Tools::SprayTool::pick_no_overlap, Inkscape::UI::Tools::SprayTool::pick_stroke, Inkscape::UI::Tools::SprayTool::pick_to_color, Inkscape::UI::Tools::SprayTool::pick_to_opacity, Inkscape::UI::Tools::SprayTool::pick_to_presence, Inkscape::UI::Tools::SprayTool::pick_to_size, Inkscape::UI::Tools::SprayTool::picker, Inkscape::UI::Tools::SprayTool::rand_picked, Inkscape::UI::Tools::SprayTool::ratio, Inkscape::UI::Tools::SprayTool::rotation_variation, Inkscape::UI::Tools::SprayTool::scale, Inkscape::UI::Tools::SprayTool::scale_variation, set, Inkscape::UI::Tools::SprayTool::single_angle, Inkscape::UI::Tools::SprayTool::single_click, Inkscape::UI::Tools::SprayTool::single_path_output, Inkscape::UI::Tools::SprayTool::single_scale, sp_object_ref(), sp_object_unref(), sp_spray_recursive(), Inkscape::UI::Tools::SprayTool::tilt, and Inkscape::UI::Tools::SprayTool::usepressurescale.
Referenced by Inkscape::UI::Tools::SprayTool::root_handler().
|
static |
Definition at line 287 of file spray-tool.cpp.
References Inkscape::UI::Tools::SprayTool::pressure, and Inkscape::ExtendedInput::pressure.
Referenced by Inkscape::UI::Tools::SprayTool::root_handler().
|
static |
Definition at line 769 of file spray-tool.cpp.
References Inkscape::XML::Node::appendChild(), Inkscape::XML::Node::attribute(), Inkscape::XML::Document::createElement(), css, desktop, do_trace(), SPDesktop::doc2dt(), SPObject::document, SPItem::documentVisualBounds(), Inkscape::XML::Node::duplicate(), fit_item(), SPObject::getAttribute(), SPItem::getCenter(), SPObject::getId(), SPDocument::getObjectByRepr(), SPObject::getRepr(), SPDocument::getReprDoc(), SPItem::isCenterSet(), item, mode, offset, parent, Inkscape::XML::Node::parent(), random_position(), Inkscape::GC::release(), scale, set, Inkscape::XML::Node::setAttribute(), sp_desktop_apply_css_recursive(), sp_repr_css_attr_new(), SPRAY_MODE_CLONE, SPRAY_MODE_ERASER, SPRAY_MODE_SINGLE_PATH, transform_around_point(), transform_keep_center(), SPItem::unsetCenter(), SPObject::updateRepr(), and Geom::Affine::withoutTranslation().
Referenced by sp_spray_dilate().
|
static |
Definition at line 1121 of file spray-tool.cpp.
References SPDesktop::get_toolbar_by_name(), Inkscape::UI::Tools::ToolBase::getDesktop(), mode, Inkscape::UI::Tools::SprayTool::mode, Inkscape::UI::Toolbar::SprayToolbar::setMode(), and Inkscape::UI::Tools::SprayTool::update_cursor().
Referenced by Inkscape::UI::Tools::SprayTool::root_handler().
|
static |
Definition at line 367 of file spray-tool.cpp.
References SPObject::document, SPDocument::dt2doc(), i2anc_affine(), SPItem::i2dt_affine(), Geom::Affine::inverse(), Geom::Translate::inverse(), item, SPObject::parent, and SPItem::transform.
Referenced by fit_item().
|
static |
Definition at line 1099 of file spray-tool.cpp.
References Inkscape::UI::Tools::SprayTool::dilate_area, get_dilate_radius(), get_paths(), Inkscape::UI::Tools::ToolBase::getDesktop(), Inkscape::UI::Tools::SprayTool::items, Inkscape::UI::Tools::SprayTool::mode, SPDesktop::point(), Inkscape::UI::Tools::SprayTool::ratio, Inkscape::UI::Tools::SprayTool::shapes_area, Inkscape::UI::Tools::SprayTool::single_click, SPRAY_MODE_ERASER, SPRAY_MODE_SINGLE_PATH, and Inkscape::UI::Tools::SprayTool::tilt.
Referenced by Inkscape::UI::Tools::SprayTool::root_handler().
void Inkscape::UI::Tools::sp_toggle_dropper | ( | SPDesktop * | dt | ) |
Toggles current tool between active tool and dropper tool.
Subroutine of sp_event_context_private_root_handler().
Definition at line 233 of file tool-base.cpp.
References dropper_toggled, get_active_tool(), SPDesktop::getTool(), set_active_tool(), and switch_dropper_to.
Referenced by Inkscape::UI::Widget::ColorNotebook::_onPickerClicked(), and Inkscape::UI::Tools::DropperTool::root_handler().
|
static |
Toggles current tool between active tool and selector tool.
Subroutine of sp_event_context_private_root_handler().
Definition at line 211 of file tool-base.cpp.
References get_active_tool(), SPDesktop::getTool(), selector_toggled, set_active_tool(), and switch_selector_to.
|
static |
Definition at line 788 of file tweak-tool.cpp.
References child, SPObject::children, Geom::Affine::descrim(), SPObject::document, SPItem::documentGeometricBounds(), SPStyle::fill, SPStyle::filter, Inkscape::FOR_FILL, Inkscape::FOR_STROKE, SPStyle::getFilter(), SPItem::i2dt_affine(), Geom::GenericOptRect< C >::intersects(), item, Geom::L2(), mode, modify_filter_gaussian_blur_from_item(), num, SPStyle::opacity, remove_filter(), sp_style_set_property_url(), sp_tweak_color_recursive(), SPStyle::stroke, SPObject::style, tweak_color(), tweak_colors_in_gradient(), tweak_opacity(), tweak_profile(), SPObject::updateRepr(), Geom::X, and Geom::Y.
Referenced by sp_tweak_color_recursive(), and sp_tweak_dilate().
|
static |
Definition at line 919 of file tweak-tool.cpp.
References desktop, Inkscape::UI::Tools::TweakTool::do_h, Inkscape::UI::Tools::TweakTool::do_l, Inkscape::UI::Tools::TweakTool::do_o, Inkscape::UI::Tools::TweakTool::do_s, Inkscape::UI::Tools::TweakTool::fidelity, get_dilate_radius(), get_move_force(), get_path_force(), Inkscape::UI::Tools::ToolBase::getDesktop(), SPDesktop::getItemAtPoint(), SPDesktop::getSelection(), is_color_mode(), is_transform_mode(), Inkscape::ObjectSet::isEmpty(), item, items, Inkscape::ObjectSet::items(), MIN, Inkscape::UI::Tools::TweakTool::mode, sp_desktop_get_color_tool(), sp_desktop_get_master_opacity_tool(), sp_tweak_color_recursive(), sp_tweak_dilate_recursive(), and TWEAK_MODE_BLUR.
Referenced by Inkscape::UI::Tools::TweakTool::root_handler().
|
static |
Definition at line 293 of file tweak-tool.cpp.
References Inkscape::Selection::add(), Inkscape::XML::Node::appendChild(), Inkscape::XML::Node::attribute(), child, SPObject::children, Geom::GenericOptRect< C >::contains(), Path::ConvertEvenLines(), Shape::ConvertToForme(), Shape::ConvertToShape(), css, SPDesktop::current_zoom(), SPObject::deleteObject(), Path::descr_cmd, Geom::Affine::descrim(), Inkscape::ObjectSet::desktop(), SPDesktop::doc2dt(), SPObject::document, SPItem::documentVisualBounds(), Inkscape::XML::Node::duplicate(), fill_nonZero, fill_oddEven, fill_positive, SPDocument::getObjectByRepr(), SPObject::getRepr(), SPDocument::getReprDoc(), SPItem::i2doc_affine(), Inkscape::Selection::includes(), is_color_mode(), is_transform_mode(), item, items, join_straight, Geom::L2(), Shape::MakeTweak(), MAX, mode, SPItem::move_rel(), orig, parent, Inkscape::XML::Node::parent(), Path_for_item(), Inkscape::XML::Node::position(), Inkscape::GC::release(), Inkscape::Selection::remove(), Path::Reset(), SPItem::rotate_rel(), scale, SPItem::scale_rel(), SPObject::setAttribute(), Inkscape::XML::Node::setAttribute(), Path::SetBackData(), Path::Simplify(), sp_item_list_to_curves(), sp_repr_css_attr(), sp_repr_css_property(), sp_selected_item_to_curved_repr(), sp_tweak_dilate_recursive(), Path::svg_dump_path(), TWEAK_MODE_ATTRACT_REPEL, tweak_mode_grow, TWEAK_MODE_MORELESS, TWEAK_MODE_MOVE, TWEAK_MODE_MOVE_IN_OUT, TWEAK_MODE_MOVE_JITTER, tweak_mode_push, TWEAK_MODE_PUSH, tweak_mode_repel, TWEAK_MODE_ROTATE, tweak_mode_roughen, TWEAK_MODE_ROUGHEN, TWEAK_MODE_SCALE, TWEAK_MODE_SHRINK_GROW, Geom::Affine::withoutTranslation(), and SPDesktop::yaxisdir().
Referenced by sp_tweak_dilate(), and sp_tweak_dilate_recursive().
|
static |
Definition at line 258 of file tweak-tool.cpp.
References Inkscape::UI::Tools::TweakTool::pressure, and Inkscape::ExtendedInput::pressure.
Referenced by Inkscape::UI::Tools::TweakTool::root_handler().
|
static |
Definition at line 992 of file tweak-tool.cpp.
References SPDesktop::get_toolbar_by_name(), Inkscape::UI::Tools::ToolBase::getDesktop(), mode, Inkscape::UI::Tools::TweakTool::mode, Inkscape::UI::Toolbar::TweakToolbar::setMode(), and Inkscape::UI::Tools::TweakTool::update_cursor().
Referenced by Inkscape::UI::Tools::TweakTool::root_handler().
|
static |
Definition at line 1008 of file tweak-tool.cpp.
References Inkscape::Preferences::get(), SPDesktop::get_toolbar_by_name(), Inkscape::UI::Tools::ToolBase::getDesktop(), Inkscape::Preferences::getInt(), mode, Inkscape::UI::Tools::TweakTool::mode, Inkscape::Preferences::setInt(), Inkscape::UI::Toolbar::TweakToolbar::setMode(), and Inkscape::UI::Tools::TweakTool::update_cursor().
Referenced by Inkscape::UI::Tools::TweakTool::root_handler().
|
static |
Definition at line 980 of file tweak-tool.cpp.
References Inkscape::UI::Tools::TweakTool::dilate_area, get_dilate_radius(), Inkscape::UI::Tools::ToolBase::getDesktop(), and SPDesktop::point().
Referenced by Inkscape::UI::Tools::TweakTool::root_handler().
void Inkscape::UI::Tools::sp_update_helperpath | ( | SPDesktop * | desktop | ) |
Definition at line 227 of file node-tool.cpp.
References SPDesktop::add_temporary_canvasitem(), c, SPDesktop::current_zoom(), desktop, SPDesktop::dt2doc(), Inkscape::LivePathEffect::Effect::getCanvasIndicators(), SPDesktop::getCanvasTemp(), SPDesktop::getSelection(), SPDesktop::getTool(), Inkscape::LivePathEffect::Effect::isVisible(), item, Inkscape::ObjectSet::items(), SPDesktop::remove_temporary_canvasitem(), Inkscape::LivePathEffect::Effect::setCurrentZoom(), Inkscape::LivePathEffect::Effect::setSelectedNodePoints(), and SP_WIND_RULE_NONZERO.
Referenced by SPKnot::eventHandler(), Inkscape::UI::Dialog::LivePathEffectEditor::expanded_notify(), Inkscape::UI::Handle::move(), Inkscape::UI::Node::move(), Inkscape::UI::Tools::NodeTool::NodeTool(), Inkscape::UI::Tools::NodeTool::root_handler(), Inkscape::UI::Tools::NodeTool::selection_changed(), and Inkscape::LivePathEffect::Effect::update_helperpath().
|
static |
Definition at line 235 of file freehand-base.cpp.
References desktop, Inkscape::Preferences::get(), Inkscape::UI::Tools::ToolBase::getDesktop(), SPDesktop::getDocument(), item, scale, and Inkscape::SVGOStringStream::str().
Referenced by spdc_check_for_and_apply_waiting_LPE().
|
static |
Definition at line 188 of file freehand-base.cpp.
References SPObject::deleteObject(), desktop, Inkscape::UI::Tools::ToolBase::getDesktop(), SPDesktop::getDocument(), SPDocument::getObjectById(), Inkscape::LivePathEffect::Effect::getRepr(), SPObject::getRepr(), item, Inkscape::XML::Node::removeAttribute(), rename_id(), Inkscape::UI::Tools::FreehandBase::selection, Inkscape::Selection::set(), Inkscape::XML::Node::setAttribute(), SPItem::setLocked(), SPObject::setSuccessor(), sp_desktop_apply_style_tool(), sp_object_ref(), sp_object_unref(), spdc_apply_style(), Inkscape::UI::Tools::FreehandBase::tablet_enabled, and Inkscape::UI::Tools::FreehandBase::white_item.
Referenced by spdc_check_for_and_apply_waiting_LPE().
|
static |
Definition at line 269 of file freehand-base.cpp.
References desktop, Inkscape::UI::Tools::ToolBase::getDesktop(), SPDesktop::getDocument(), Inkscape::LivePathEffect::Effect::getRepr(), item, Inkscape::XML::Node::setAttribute(), and Inkscape::XML::Node::setAttributeOrRemoveIfEmpty().
Referenced by spdc_check_for_and_apply_waiting_LPE().
void Inkscape::UI::Tools::spdc_apply_style | ( | SPObject * | obj | ) |
Definition at line 157 of file freehand-base.cpp.
References css, SPObject::getId(), SPStyle::getStrokePaintServer(), sp_desktop_apply_css_recursive(), sp_repr_css_attr_new(), sp_repr_css_attr_unref(), sp_repr_css_set_property(), sp_repr_css_set_property_string(), sp_repr_css_unset_property(), SPStyle::stroke, SPStyle::stroke_opacity, and SPObject::style.
Referenced by spdc_apply_powerstroke_shape().
void Inkscape::UI::Tools::spdc_check_for_and_apply_waiting_LPE | ( | FreehandBase * | dc, |
SPItem * | item | ||
) |
If we have an item and a waiting LPE, apply the effect to the item (spiro spline mode is treated separately).
|
static |
Definition at line 291 of file freehand-base.cpp.
References Inkscape::Selection::add(), Inkscape::XML::Node::attribute(), BEND_CLIPBOARD, c, Inkscape::ObjectSet::clear(), CLIPBOARD, css, desktop, Inkscape::ObjectSet::duplicate(), ELLIPSE, Geom::Affine::expansionX(), Geom::Affine::expansionY(), Inkscape::Preferences::get(), Inkscape::UI::ClipboardManager::get(), Inkscape::UI::Tools::ToolBase::getDesktop(), SPDesktop::getDocument(), SPDocument::getDocumentScale(), Inkscape::Preferences::getDouble(), Inkscape::Preferences::getDoubleLimited(), Inkscape::Preferences::getInt(), Inkscape::UI::Tools::ToolBase::getPrefsPath(), SPObject::getRepr(), SPDesktop::getSelection(), Inkscape::ObjectSet::isEmpty(), item, LAST_APPLIED, mode, SPCurve::moveto(), SPItem::moveTo(), NONE, Inkscape::UI::ClipboardManager::paste(), previous_shape_type, Inkscape::Selection::remove(), Inkscape::UI::Tools::FreehandBase::selection, Geom::Affine::setExpansionX(), Geom::Affine::setExpansionY(), Geom::Affine::setTranslation(), Inkscape::ObjectSet::singleItem(), Geom::PathVector::size(), sp_css_attr_from_object(), sp_desktop_apply_css_recursive(), sp_lpe_item_update_patheffect(), SP_LPETOOL_CONTEXT(), sp_repr_css_attr_new(), sp_repr_css_attr_unref(), sp_repr_css_property(), sp_repr_css_set_property(), sp_repr_lookup_name(), SP_STYLE_FLAG_ALWAYS(), sp_svg_number_read_d(), sp_svg_read_pathv(), spdc_apply_bend_shape(), spdc_apply_powerstroke_shape(), spdc_apply_simplify(), spdc_paste_curve_as_freehand_shape(), Inkscape::UI::Tools::FreehandBase::tablet_enabled, Inkscape::ObjectSet::toCurves(), SPItem::transform, TRIANGLE_IN, TRIANGLE_OUT, Inkscape::UI::Tools::FreehandBase::waiting_LPE_type, and Inkscape::UI::Tools::FreehandBase::white_item.
Referenced by spdc_flush_white().
void Inkscape::UI::Tools::spdc_concat_colors_and_flush | ( | FreehandBase * | dc, |
bool | forceclosed | ||
) |
Concats red, blue and green.
If any anchors are defined, process these, optionally removing curves from white list Invoke _flush_white to write result back to object.
Definition at line 630 of file freehand-base.cpp.
References Inkscape::UI::Tools::FreehandBase::blue_bpath, Inkscape::UI::Tools::FreehandBase::blue_curve, c, SPDrawAnchor::curve, Inkscape::UI::Tools::FreehandBase::ea, Inkscape::MessageStack::flash(), Inkscape::Preferences::get(), Inkscape::UI::Tools::ToolBase::getDesktop(), Inkscape::Preferences::getInt(), Inkscape::UI::Tools::ToolBase::getPrefsPath(), Inkscape::UI::Tools::FreehandBase::green_anchor, Inkscape::UI::Tools::FreehandBase::green_bpaths, Inkscape::UI::Tools::FreehandBase::green_curve, SPDesktop::messageStack(), Inkscape::NORMAL_MESSAGE, Inkscape::UI::Tools::FreehandBase::red_bpath, Inkscape::UI::Tools::FreehandBase::red_curve, Inkscape::UI::Tools::FreehandBase::red_curve_is_valid, SPCurve::reset(), Inkscape::UI::Tools::FreehandBase::sa, Inkscape::UI::Tools::FreehandBase::sa_overwrited, spdc_flush_white(), SPDrawAnchor::start, and Inkscape::UI::Tools::FreehandBase::white_curves.
Referenced by Inkscape::UI::Tools::PenTool::_finish(), Inkscape::UI::Tools::PencilTool::_finishEndpoint(), Inkscape::UI::Tools::PencilTool::_handleButtonRelease(), and Inkscape::UI::Tools::PencilTool::_handleKeyRelease().
void Inkscape::UI::Tools::spdc_create_single_dot | ( | ToolBase * | tool, |
Geom::Point const & | pt, | ||
char const * | path, | ||
unsigned | event_state | ||
) |
Create a single dot represented by a circle.
Definition at line 870 of file freehand-base.cpp.
References Inkscape::XML::Node::attribute(), Inkscape::XML::Document::createElement(), css, SPDesktop::current_zoom(), Inkscape::UI::Tools::ToolBase::currentLayer(), desktop, SPDesktop::doc(), Inkscape::DocumentUndo::done(), SPItem::doWriteTransform(), Inkscape::MessageStack::flash(), Inkscape::Preferences::get(), Inkscape::UI::Tools::ToolBase::getDesktop(), SPDesktop::getDocument(), SPDocument::getDocumentScale(), SPDocument::getReprDoc(), SPDesktop::getSelection(), SPItem::i2dt_affine(), Geom::Affine::inverse(), item, SPStyle::mergeString(), SPDesktop::messageStack(), Inkscape::NORMAL_MESSAGE, Inkscape::GC::release(), Inkscape::Selection::set(), Inkscape::XML::Node::setAttribute(), Inkscape::XML::Node::setAttributeSvgDouble(), sp_desktop_apply_style_tool(), sp_desktop_get_color_tool(), sp_repr_css_attr_new(), sp_repr_css_attr_unref(), sp_repr_css_set(), sp_repr_css_set_property_string(), SPStyle::stroke_width, SPItem::transform, SPObject::updateRepr(), Geom::X, and Geom::Y.
Referenced by Inkscape::UI::Tools::PenTool::_handleButtonPress(), and Inkscape::UI::Tools::PencilTool::_handleButtonPress().
void Inkscape::UI::Tools::spdc_endpoint_snap_free | ( | ToolBase * | tool, |
Geom::Point & | p, | ||
std::optional< Geom::Point > & | start_of_line | ||
) |
Definition at line 609 of file freehand-base.cpp.
References Inkscape::SnapCandidatePoint::addOrigin(), SnapManager::freeSnap(), Inkscape::UI::Tools::ToolBase::getDesktop(), SPDesktop::getNamedView(), Inkscape::SnappedPoint::getPoint(), SPDesktop::getSelection(), SnapManager::setup(), Inkscape::ObjectSet::singleItem(), SPNamedView::snap_manager, Inkscape::SNAPSOURCE_NODE_HANDLE, and SnapManager::unSetup().
Referenced by Inkscape::UI::Tools::PenTool::_endpointSnap(), Inkscape::UI::Tools::PencilTool::_endpointSnap(), and Inkscape::UI::Tools::PenTool::_endpointSnapHandle().
void Inkscape::UI::Tools::spdc_endpoint_snap_rotation | ( | ToolBase * | tool, |
Geom::Point & | p, | ||
Geom::Point const & | o, | ||
unsigned | state | ||
) |
Snaps node or handle to PI/rotationsnapsperpi degree increments.
dc | draw context. |
p | cursor point (to be changed by snapping). |
o | origin point. |
state | keyboard state to check if ctrl or shift was pressed. |
Definition at line 582 of file freehand-base.cpp.
References SnapManager::constrainedAngularSnap(), Inkscape::Preferences::get(), Inkscape::UI::Tools::ToolBase::getDesktop(), SPDesktop::getNamedView(), Inkscape::SnappedPoint::getPoint(), Inkscape::SnapPreferences::getSnapEnabledGlobally(), Inkscape::SnapPreferences::setSnapEnabledGlobally(), SnapManager::setup(), SPNamedView::snap_manager, SnapManager::snapprefs, Inkscape::SNAPSOURCE_NODE_HANDLE, and SnapManager::unSetup().
Referenced by Inkscape::UI::Tools::PenTool::_endpointSnap(), Inkscape::UI::Tools::PencilTool::_endpointSnap(), Inkscape::UI::Tools::PenTool::_endpointSnapHandle(), Inkscape::UI::Tools::MeasureTool::knotEndMovedHandler(), Inkscape::UI::Tools::MeasureTool::knotStartMovedHandler(), and Inkscape::UI::Tools::MeasureTool::root_handler().
|
static |
Flushes white curve(s) and additional curve into object.
No cleaning of colored curves - this has to be done by caller No rereading of white data, so if you cannot rely on ::modified, do it in caller
Definition at line 731 of file freehand-base.cpp.
References BEND_CLIPBOARD, c, Inkscape::XML::Document::createElement(), Inkscape::UI::Tools::ToolBase::currentLayer(), desktop, Inkscape::DocumentUndo::done(), SPItem::doWriteTransform(), SPDesktop::dt2doc(), SPItem::dt2i_affine(), SPDocument::ensureUpToDate(), Inkscape::UI::Tools::ToolBase::getDesktop(), SPDesktop::getDocument(), Inkscape::UI::Tools::ToolBase::getPrefsPath(), SPObject::getRepr(), SPDocument::getReprDoc(), Geom::Affine::inverse(), item, Inkscape::UI::Tools::FreehandBase::onSelectionModified(), Inkscape::XML::Node::parent(), previous_shape_type, Inkscape::GC::release(), Inkscape::XML::Node::removeChild(), Inkscape::UI::Tools::FreehandBase::selection, Inkscape::Selection::set(), Inkscape::XML::Node::setAttribute(), sp_desktop_apply_style_tool(), sp_lpe_item_update_patheffect(), sp_svg_write_path(), spdc_check_for_and_apply_waiting_LPE(), Inkscape::UI::Tools::FreehandBase::tablet_enabled, SPItem::transform, SPObject::updateRepr(), Inkscape::UI::Tools::FreehandBase::white_curves, and Inkscape::UI::Tools::FreehandBase::white_item.
Referenced by spdc_concat_colors_and_flush().
|
static |
Definition at line 845 of file freehand-base.cpp.
References Inkscape::UI::Tools::FreehandBase::blue_bpath, Inkscape::UI::Tools::FreehandBase::blue_curve, Inkscape::UI::Tools::FreehandBase::green_anchor, Inkscape::UI::Tools::FreehandBase::green_bpaths, Inkscape::UI::Tools::FreehandBase::green_curve, Inkscape::UI::Tools::FreehandBase::red_bpath, SPCurve::reset(), Inkscape::UI::Tools::FreehandBase::sa_overwrited, Inkscape::UI::Tools::FreehandBase::white_anchors, Inkscape::UI::Tools::FreehandBase::white_curves, and Inkscape::UI::Tools::FreehandBase::white_item.
Referenced by Inkscape::UI::Tools::FreehandBase::~FreehandBase().
|
static |
Definition at line 138 of file freehand-base.cpp.
References SPDesktop::doc(), Inkscape::Preferences::get(), Inkscape::UI::Tools::ToolBase::getDesktop(), Inkscape::Preferences::getDouble(), Inkscape::LivePathEffect::Effect::getRepr(), item, scale, Inkscape::XML::Node::setAttribute(), and Inkscape::SVGOStringStream::str().
Referenced by spdc_check_for_and_apply_waiting_LPE().
SPDrawAnchor * Inkscape::UI::Tools::spdc_test_inside | ( | FreehandBase * | dc, |
Geom::Point const & | p | ||
) |
Returns FIRST active anchor (the activated one).
Definition at line 826 of file freehand-base.cpp.
References Inkscape::UI::Tools::FreehandBase::green_anchor, and Inkscape::UI::Tools::FreehandBase::white_anchors.
Referenced by Inkscape::UI::Tools::PenTool::_handleButtonPress(), Inkscape::UI::Tools::PencilTool::_handleButtonPress(), Inkscape::UI::Tools::PenTool::_handleButtonRelease(), Inkscape::UI::Tools::PencilTool::_handleButtonRelease(), Inkscape::UI::Tools::PenTool::_handleMotionNotify(), and Inkscape::UI::Tools::PencilTool::_handleMotionNotify().
|
inline |
Definition at line 128 of file eraser-tool.cpp.
Referenced by Inkscape::UI::Tools::EraserTool::_apply(), Inkscape::UI::Tools::EraserTool::_generateNormalDist2(), Inkscape::UI::Tools::PencilTool::_interpolate(), Inkscape::UI::Tools::PencilTool::_sketchInterpolate(), and Inkscape::UI::Tools::PencilTool::addPowerStrokePencil().
|
static |
Transform the affine around the point.
For example if it's a rotation, scale and/or skew it will be applied relative to the center point.
Definition at line 92 of file spray-tool.cpp.
Referenced by sp_spray_recursive().
|
static |
Definition at line 98 of file spray-tool.cpp.
References SPItem::doWriteTransform(), SPItem::i2dt_affine(), item, SPItem::set_i2d_affine(), SPItem::transform, and SPItem::updateCenterIfSet().
Referenced by sp_spray_recursive().
|
static |
Definition at line 587 of file tweak-tool.cpp.
References Inkscape::Colors::Color::average(), Inkscape::Colors::Color::converted(), Inkscape::Colors::Color::getSpace(), Inkscape::Colors::Space::HSL, mode, TWEAK_MODE_COLORJITTER, and TWEAK_MODE_COLORPAINT.
Referenced by sp_tweak_color_recursive(), and tweak_stop_color().
|
static |
Definition at line 643 of file tweak-tool.cpp.
References c, child, SPObject::children, distance(), floor(), getGradient(), SPGradient::getSpread(), SPGradient::gradientTransform, SPItem::i2doc_affine(), Geom::Affine::inverse(), item, Geom::L2(), mode, SPMeshNodeArray::nodes, sp_gradient_get_forked_vector_if_necessary(), SP_GRADIENT_SPREAD_PAD, SP_GRADIENT_SPREAD_REFLECT, SP_GRADIENT_SPREAD_REPEAT, tweak_profile(), tweak_stop_color(), SPObject::updateRepr(), Geom::X, and Geom::Y.
Referenced by sp_tweak_color_recursive().
|
static |
Definition at line 611 of file tweak-tool.cpp.
References mode, TWEAK_MODE_COLORJITTER, TWEAK_MODE_COLORPAINT, and SPIScale24::value.
Referenced by sp_tweak_color_recursive().
|
static |
Definition at line 627 of file tweak-tool.cpp.
Referenced by sp_tweak_color_recursive(), and tweak_colors_in_gradient().
|
static |
Definition at line 603 of file tweak-tool.cpp.
References SPStop::getColor(), mode, SPStop::setColor(), and tweak_color().
Referenced by tweak_colors_in_gradient().
|
static |
Definition at line 176 of file calligraphic-tool.cpp.
References Geom::sincos().
Referenced by Inkscape::UI::Tools::CalligraphicTool::apply().
|
static |
Try to determine the keys group of Latin layout.
Check available keymap entries for Latin 'a' key and find the minimal integer value.
Definition at line 1291 of file tool-base.cpp.
References latin_keys_group, latin_keys_group_valid, latin_keys_groups, and update_latin_keys_group().
Referenced by init_latin_keys_group(), and update_latin_keys_group().
|
inlinestaticconstexpr |
Definition at line 43 of file eraser-tool.h.
Referenced by Inkscape::UI::Tools::EraserTool::_updateMode(), and Inkscape::UI::Toolbar::EraserToolbar::EraserToolbar().
|
static |
Definition at line 61 of file select-tool.cpp.
Referenced by Inkscape::UI::Tools::SelectTool::root_handler(), and Inkscape::UI::Tools::SelectTool::sp_select_context_abort().
|
static |
Definition at line 331 of file measure-tool.cpp.
Referenced by Inkscape::UI::Tools::MeasureTool::knotClickHandler(), and Inkscape::UI::Tools::MeasureTool::root_handler().
|
static |
Definition at line 19 of file object-picker-tool.cpp.
Referenced by Inkscape::UI::Tools::ObjectPickerTool::ObjectPickerTool(), Inkscape::UI::Tools::MeasureTool::setLabelText(), Inkscape::UI::Tools::MeasureTool::setMeasureCanvasText(), Inkscape::UI::Tools::ObjectPickerTool::show_text(), Inkscape::UI::Tools::MeasureTool::showCanvasItems(), Inkscape::UI::Tools::MeasureTool::showInfoBox(), Inkscape::UI::Tools::MeasureTool::showItemInfoText(), and Inkscape::UI::Tools::MeasureTool::toMarkDimension().
|
static |
Definition at line 80 of file gradient-tool.cpp.
Referenced by Inkscape::UI::Tools::GradientTool::selection_changed().
|
static |
Definition at line 62 of file select-tool.cpp.
const gchar* Inkscape::UI::Tools::ms_handle_descr[] |
Definition at line 99 of file mesh-tool.cpp.
Referenced by Inkscape::UI::Tools::MeshTool::selection_changed().
|
staticconstexpr |
Definition at line 470 of file flood-tool.cpp.
Referenced by paint_pixel().
|
staticconstexpr |
Definition at line 469 of file flood-tool.cpp.
Referenced by paint_pixel(), and perform_bitmap_scanline_check().
|
staticconstexpr |
Definition at line 466 of file flood-tool.cpp.
Referenced by paint_pixel(), and perform_bitmap_scanline_check().
|
staticconstexpr |
Definition at line 467 of file flood-tool.cpp.
Referenced by paint_pixel(), and perform_bitmap_scanline_check().
|
staticconstexpr |
Definition at line 468 of file flood-tool.cpp.
Referenced by paint_pixel(), and perform_bitmap_scanline_check().
|
static |
|
static |
Definition at line 71 of file pen-tool.cpp.
Referenced by Inkscape::UI::Tools::PenTool::_handleButtonPress(), and Inkscape::UI::Tools::PenTool::_handleMotionNotify().
|
static |
|
static |
Definition at line 75 of file pencil-tool.cpp.
Referenced by Inkscape::UI::Tools::PencilTool::_handleButtonPress(), and Inkscape::UI::Tools::PencilTool::_handleMotionNotify().
|
staticconstexpr |
Definition at line 262 of file flood-tool.cpp.
Referenced by is_pixel_checked(), and mark_pixel_checked().
|
staticconstexpr |
Definition at line 266 of file flood-tool.cpp.
Referenced by is_pixel_colored(), and mark_pixel_colored().
|
staticconstexpr |
Definition at line 265 of file flood-tool.cpp.
Referenced by clear_pixel_paintability(), is_pixel_paintability_checked(), mark_pixel_not_paintable(), and mark_pixel_paintable().
|
staticconstexpr |
Definition at line 264 of file flood-tool.cpp.
Referenced by clear_pixel_paintability(), is_pixel_paintability_checked(), is_pixel_paintable(), mark_pixel_not_paintable(), and mark_pixel_paintable().
|
staticconstexpr |
Definition at line 263 of file flood-tool.cpp.
Referenced by is_pixel_queued(), and mark_pixel_queued().
Definition at line 289 of file freehand-base.cpp.
Referenced by spdc_check_for_and_apply_waiting_LPE(), and spdc_flush_white().
|
static |
Definition at line 60 of file select-tool.cpp.
Referenced by Inkscape::UI::Tools::SelectTool::root_handler(), and Inkscape::UI::Tools::SelectTool::sp_select_context_abort().