Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
cursor-utils.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  Inkscape
 Helper class to stream background task notifications as a series of messages.
 

Functions

Glib::RefPtr< Gdk::Cursor > Inkscape::load_svg_cursor (Gtk::Widget &widget, std::string const &file_name, std::optional< Colors::Color > maybe_fill, std::optional< Colors::Color > maybe_stroke)
 
void Inkscape::set_svg_cursor (Gtk::Widget &widget, std::string const &file_name, std::optional< Colors::Color > fill, std::optional< Colors::Color > stroke)
 Loads an SVG cursor from the specified file name, and sets it as the cursor of the given widget.
 

Variable Documentation

◆ file_name

◆ fill

◆ hotspot

Geom::IntPoint hotspot

Definition at line 68 of file cursor-utils.cpp.

◆ icon_theme

◆ map

std::unordered_map<std::string, std::unique_ptr<SPDocument> > map

Definition at line 53 of file cursor-utils.cpp.

Referenced by add_actions_canvas_snapping(), add_actions_edit_document(), Inkscape::UI::Dialog::add_styles(), apply_simple_snap_defaults(), canvas_snapping_toggle(), Inkscape::UI::Dialog::collect_styles(), Inkscape::UI::Widget::RotateableSwatch::color_adjust(), Inkscape::Trace::Potrace::PotraceTracingEngine::filter(), Inkscape::Trace::Potrace::PotraceTracingEngine::filterIndexed(), Inkscape::Trace::gdkPixbufToGrayMap(), Inkscape::Trace::gdkPixbufToRgbMap(), Inkscape::UI::Dialog::CommandPalette::get_action_ptr_name(), Inkscape::UI::Widget::get_axis_name(), Inkscape::Extension::Internal::StyleMemory::get_changes(), Inkscape::Extension::Internal::Filter::FeltFeather::get_filter_text(), Inkscape::Extension::Internal::StyleMemory::get_ifset(), get_snap_map(), Inkscape::Trace::grayMapCanny(), Inkscape::Trace::grayMapToGdkPixbuf(), Inkscape::Trace::indexedMapToGdkPixbuf(), Inkscape::UI::Dialog::AttrDialog::init_text_view(), Inkscape::Shortcuts::list_all_actions(), Inkscape::UI::Dialog::CommandPalette::load_win_doc_actions(), Inkscape::UI::Widget::CanvasGrid::on_realize(), Inkscape::Extension::Internal::StyleMemory::remember(), Inkscape::Filters::FilterDisplacementMap::render_cairo(), Inkscape::Colors::Space::render_hue_scale(), Inkscape::Colors::Space::render_lightness_scale(), Inkscape::Colors::Space::render_saturation_scale(), set_actions_canvas_snapping(), set_actions_canvas_snapping_helper(), Inkscape::Extension::Internal::PdfBuilder::DrawContext::set_paint_style(), Inkscape::Extension::Internal::PdfBuilder::TextContext::set_paint_style(), Geom::TEST(), Geom::TEST(), toggle_simple_snap_option(), transition_to_simple_snapping(), and update_actions().

◆ size

Definition at line 67 of file cursor-utils.cpp.

Referenced by SPDesktopWidget::apply_ctrlbar_settings(), Geom::SBasisN< n >::atCorner(), Geom::SBasisN< n >::atCorner(), SPMeshNodeArray::bicubic(), bm_clear(), bm_dup(), bm_invert(), bm_new(), SPMeshNodeArray::color_pick(), Avoid::ConnectorCrossings::countForSegment(), Geom::Crosser< T >::crossings(), Geom::Poly::degree(), Geom::SBasis::degreesOfFreedom(), Geom::SBasisOf< T >::derive(), draw_callback(), Geom::eliminate_duplicates_p(), Geom::Poly::eval(), Geom::SBasisN< n >::find_non_empty_level(), ft_new_face_from_file(), Avoid::ConnRef::generatePath(), SPViewBox::get_paintbox(), ink_cairo_draw_drop_shadow(), inkscape_abs2rel(), inkscape_rel2abs(), intersect(), Geom::SBasisOf< T >::isConstant(), Geom::SBasisN< n >::isConstant(), Geom::SBasis::isConstant(), Geom::SBasisN< n >::isFinite(), Geom::SBasisOf< T >::isZero(), Geom::SBasisN< n >::isZero(), Geom::SBasis::isZero(), item_find_paths(), linearSnake(), Geom::NL::LinearSystem::LU_solve(), Geom::SBasisN< n >::max_degree(), max_modulus(), Geom::merge(), TextTagAttributes::mergeSingleAttribute(), Geom::Poly::monicify(), Geom::SBasisN< n >::multi_degree(), Geom::SBasisN< n >::multi_resize(), mvpoly1_to_poly(), Geom::SBasis::normalize(), objects_query_fontnumbers(), operator new(), operator new(), operator new[](), operator new[](), Geom::Poly::operator*(), Geom::Poly::operator*(), Geom::Poly::operator+(), Geom::Poly::operator-(), Geom::Poly::operator-(), Geom::Poly::operator-(), Geom::Poly::operator-=(), Geom::SBasisN< n >::operator[](), Geom::SBasisOf< T >::operator[](), Geom::SBasisN< n >::operator[](), Avoid::ShapeRef::outputCode(), Avoid::Router::outputInstanceToSVG(), path_getitem(), path_simplify(), Avoid::pathLength(), Geom::SL::detail::poly1_to_poly3(), Geom::SBasisN< n >::quick_multi_degree(), randomMove(), SPMeshNodeArray::read(), PathVectorNodeSatellites::recalculateForNewPathVector(), cola::ConstrainedFDLayout::recGenerateClusterVariablesAndConstraints(), recursive_curvature_fitter(), RescaleForNonVanishingEnds(), SBasis1d_to_2d(), Geom::sbasis_size(), Geom::sbasis_to_bezier(), Geom::sbasis_to_cubic_bezier(), SVGBox::set(), SPOffset::set_shape(), SPKnot::setSize(), SPDesktop::setWindowSize(), SPDesktopWidget::setWindowSize(), Geom::Poly::shifted(), single_curvature_fitter(), Avoid::PtOrder::sort(), sp_generate_internal_bitmap(), sp_get_icon_image(), sp_marker_show_dimension(), sp_pattern_set_gap(), sp_style_css_size_px_to_units(), sp_style_css_size_units_to_px(), SPMeshPatchI::SPMeshPatchI(), Geom::NL::LinearSystem::SV_solve(), Geom::sweep_bounds(), TEST_F(), TEST_F(), Geom::touching_circle(), Geom::SBasisOf< T >::truncate(), Geom::SBasis::truncate(), Geom::Poly::val_and_deriv(), Geom::SBasisOf< T >::valueAt(), Geom::SBasis::valueAt(), Geom::wrap_dist(), and wrap_pw().

◆ stroke

Colors::Color stroke

Definition at line 61 of file cursor-utils.cpp.

Referenced by Inkscape::Extension::Internal::SvgBuilder::_setStyle(), Inkscape::Extension::Internal::SvgBuilder::addPath(), SPItem::adjust_hatch(), SPItem::adjust_pattern(), copy_style_links(), Inkscape::LivePathEffect::LPECurveStitch::doEffect_path(), PdfParser::doShadingPatternFillFallback(), Inkscape::UI::Dialog::draw_connection_node(), Inkscape::UI::Widget::ColorSlider::draw_func(), Inkscape::UI::Widget::Ruler::draw_ruler(), Inkscape::UI::Widget::draw_slider_thumb(), equal_clip(), Inkscape::Extension::Internal::PdfBuilder::get_context_use_recursive(), Inkscape::Extension::Internal::Filter::FeltFeather::get_filter_text(), Inkscape::Extension::Internal::Filter::InkBlot::get_filter_text(), insert_path_data(), SPItem::invoke_show(), item_find_paths(), item_to_outline(), item_to_paths(), Inkscape::UI::Dialog::ColorItem::on_click(), Inkscape::UI::Dialog::ColorItem::on_click_released(), Inkscape::Extension::Internal::Emf::output_style(), Inkscape::Extension::Internal::Wmf::output_style(), remove_marker_context_paint(), remove_marker_context_paint(), Inkscape::Extension::Internal::CairoRenderContext::renderGlyphtext(), Inkscape::CanvasItem::set_stroke(), Inkscape::CanvasItemCtrl::set_stroke(), Inkscape::set_svg_cursor(), Inkscape::Text::Layout::show(), sp_get_gradient_refcount(), sp_select_same_fill_stroke_style(), Inkscape::UI::Tools::spdc_create_single_dot(), and Inkscape::UI::Dialog::SwatchesPanel::update_fillstroke_indicators().

◆ texture