Inkscape
Vector Graphics Editor
|
Helper class to stream background task notifications as a series of messages. More...
Namespaces | |
namespace | Algorithms |
Some STL-style algorithms. | |
namespace | Async |
namespace | canvas_event_detail |
namespace | Colors |
A set of useful color modifying functions which do not fit as generic methods on the color class itself but which are used in various places. | |
namespace | CSS |
namespace | Debug |
Debugging utilities. | |
namespace | Display |
Rendering-related code. | |
namespace | Extension |
Extension support. | |
namespace | Filters |
namespace | FrameCheck |
namespace | GC |
Boehm-GC based garbage collector. | |
namespace | Handles |
Classes related to control handle styling. | |
namespace | IO |
Low-level IO code. | |
namespace | LivePathEffect |
Live Path Effects code. | |
namespace | Modifiers |
namespace | NodePath |
namespace | SelectionHelper |
namespace | SVG |
namespace | Text |
namespace | Tools |
namespace | Trace |
Tracing backend. | |
namespace | Traits |
namespace | UI |
User interface code. | |
namespace | ustring |
namespace | Util |
Miscellaneous supporting code. | |
namespace | Xml |
namespace | XML |
@Inkscape XML tree. | |
Classes | |
struct | accel_key_less |
class | AlignmentSnapper |
Snapping things to on-canvas alignment guides. More... | |
class | Application |
class | AutoSave |
class | BadURIException |
class | BooleanBuilder |
struct | ButtonEvent |
Abstract event for mouse button (left/right/middle). More... | |
struct | ButtonPressEvent |
A mouse button (left/right/middle) is pressed. More... | |
struct | ButtonReleaseEvent |
A mouse button (left/right/middle) is released. More... | |
struct | CacheRecord |
struct | CairoPatternFreer |
struct | CanvasEvent |
Abstract base class for events. More... | |
class | CanvasItem |
class | CanvasItemBpath |
struct | CanvasItemBuffer |
Class used when rendering canvas items. More... | |
class | CanvasItemCatchall |
class | CanvasItemContext |
class | CanvasItemCtrl |
class | CanvasItemCurve |
class | CanvasItemDrawing |
class | CanvasItemGrid |
class | CanvasItemGridAxonom |
Canvas Item for axonometric grids. More... | |
class | CanvasItemGridTiles |
class | CanvasItemGridXY |
Canvas Item for rectangular grids. More... | |
class | CanvasItemGroup |
class | CanvasItemGuideHandle |
class | CanvasItemGuideLine |
class | CanvasItemQuad |
class | CanvasItemRect |
class | CanvasItemText |
class | CanvasPage |
class | ColorProfile |
class | CompositeUndoStackObserver |
Aggregates UndoStackObservers for management and triggering in an SPDocument's undo/redo system. More... | |
class | ConsoleOutputUndoObserver |
Inkscape::ConsoleOutputUndoObserver - observer for tracing calls to SPDocumentUndo::undo, SPDocumentUndo::redo, SPDocumentUndo::maybe_done. More... | |
class | CSSOStringStream |
A thin wrapper around std::ostringstream, but writing floating point numbers in the format required by CSS: ‘. More... | |
class | dispatch_pool |
General-purpose, parallel thread dispatch mechanism. More... | |
class | DistributionSnapper |
Snapping equidistant objects. More... | |
class | DocumentFonts |
class | DocumentSubset |
class | DocumentUndo |
class | Drawing |
class | DrawingCache |
class | DrawingContext |
Minimal wrapper over Cairo. More... | |
class | DrawingGlyphs |
class | DrawingGradient |
The base class for all gradients. More... | |
class | DrawingGroup |
class | DrawingImage |
class | DrawingItem |
SVG drawing item for display. More... | |
class | DrawingLinearGradient |
A linear gradient. More... | |
class | DrawingMeshGradient |
A mesh gradient. More... | |
class | DrawingPaintServer |
A DrawingPaintServer is a lightweight copy of the resources needed to paint using a paint server. More... | |
class | DrawingPattern |
Drawing tree node used for rendering paints. More... | |
class | DrawingRadialGradient |
A radial gradient. More... | |
class | DrawingShape |
class | DrawingSolidColor |
A simple solid color, storing an RGB color and an opacity. More... | |
class | DrawingSurface |
Drawing surface that remembers its origin. More... | |
class | DrawingText |
struct | EnterEvent |
The pointer has entered a widget or item. More... | |
class | ErrorReporter |
class | Event |
class | EventLog |
A simple log for maintaining a history of committed, undone and redone events along with their type. More... | |
class | EventMask |
A mask representing a subset of EventTypes. More... | |
struct | ExtendedInput |
Extended input data associated to events generated by graphics tablets. More... | |
class | FilteredStore |
struct | FontCollection |
class | FontCollections |
class | FontDiscovery |
struct | FontInfo |
class | FontLister |
This class enumerates fonts using libnrtype into reusable data stores and allows for random access to the font-family list and the font-style list. More... | |
struct | FontTag |
class | FontTags |
class | GridSnapper |
Snapper class for grids. More... | |
class | GuideSnapper |
Snap to guides. More... | |
struct | hashed |
struct | InvalidItemException |
struct | is_group |
struct | is_item |
struct | ItemPair |
struct | KeyEvent |
A key has been pressed. More... | |
struct | KeyPressEvent |
A key has been pressed. More... | |
struct | KeyReleaseEvent |
A key has been released. More... | |
class | LayerManager |
struct | LeaveEvent |
The pointer has exited a widget or item. More... | |
class | LineSnapper |
Superclass for snappers to horizontal and vertical lines. More... | |
class | MalformedURIException |
class | MessageContext |
A convenience class for working with MessageStacks. More... | |
class | MessageStack |
A class which holds a stack of displayed messages. More... | |
struct | MotionEvent |
Movement of the mouse pointer. More... | |
class | NRStyle |
struct | NRStyleData |
class | object_renderer |
struct | object_to_group |
struct | object_to_item |
struct | object_to_node |
class | ObjectHierarchy |
An Inkscape::ObjectHierarchy is useful for situations where one wishes to keep a reference to an SPObject, but fall back on one of its ancestors when that object is removed. More... | |
class | ObjectSet |
class | ObjectSnapper |
Snapping things to objects. More... | |
class | PageManager |
class | PaperSize |
Data class used to store common paper dimensions from pages.csv. More... | |
struct | PathNodeState |
Represents a selected node in a path. More... | |
class | PatternManager |
class | Pixbuf |
Class to hold image data for raster images. More... | |
struct | Pref |
Proxy object providing a "live value" interface. More... | |
class | Pref< bool > |
class | Pref< double > |
class | Pref< Glib::ustring > |
class | Pref< int > |
class | Pref< void > |
class | PrefBase |
class | Preferences |
Preference storage class. More... | |
class | PureRotateConstrained |
class | PureScale |
class | PureScaleConstrained |
class | PureSkewConstrained |
class | PureStretchConstrained |
class | PureTransform |
class | PureTranslate |
class | PureTranslateConstrained |
struct | random_access |
class | RecentlyUsedFonts |
struct | RenderContext |
class | Rubberband |
Rubberbanding selector. More... | |
struct | ScrollEvent |
Scroll the item or widget by the provided amount. More... | |
class | SelCue |
class | Selection |
The set of selected SPObjects for a given document and layer model. More... | |
class | SelectionDescriber |
struct | SelectionState |
Complete state of a selection, including selected objects and nodes. More... | |
class | SelTrans |
class | Shortcuts |
class | SnapCandidateItem |
class | SnapCandidatePath |
class | SnapCandidatePoint |
Class to store data for points which are snap candidates, either as a source or as a target. More... | |
class | SnappedCurve |
Class describing the result of an attempt to snap to a curve. More... | |
class | SnappedLine |
Class describing the result of an attempt to snap to a line. More... | |
class | SnappedLineSegment |
Class describing the result of an attempt to snap to a line segment. More... | |
class | SnappedPoint |
Class describing the result of an attempt to snap. More... | |
class | Snapper |
Parent for classes that can snap points to something. More... | |
class | SnapPreferences |
Storing of snapping preferences. More... | |
class | SPWeakPtr |
A weak pointer to an SPObject: it nulls itself upon the object's destruction. More... | |
class | SubItem |
When an item is broken, each broken part is represented by the SubItem class. More... | |
class | svg_renderer |
class | SVGIStringStream |
class | SVGOStringStream |
class | UndoStackObserver |
Observes changes made to the undo and redo stacks. More... | |
class | UnsupportedURIException |
struct | UpdateContext |
class | URI |
Represents an URI as per RFC 2396. More... | |
class | URIReference |
A class encapsulating a reference to a particular URI; observers can be notified when the URI comes to reference a different SPObject. More... | |
struct | VariantVisitor |
class | Version |
Typedefs | |
using | CacheList = std::list< CacheRecord > |
using | CairoPatternUniqPtr = std::unique_ptr< cairo_pattern_t, CairoPatternFreer > |
using | MessageId = std::uint_least32_t |
An integer ID which identifies a displayed message in a particular Inkscape::MessageStack. | |
typedef boost::multi_index_container< SPObject *, boost::multi_index::indexed_by< boost::multi_index::sequenced<>, boost::multi_index::random_access< boost::multi_index::tag< random_access > >, boost::multi_index::hashed_unique< boost::multi_index::tag< hashed >, boost::multi_index::identity< SPObject * > > > > | MultiIndexContainer |
typedef boost::any_range< SPObject *, boost::random_access_traversal_tag, SPObject *const &, std::ptrdiff_t > | SPObjectRange |
using | SPItemRange = ObjectSet::SPItemRange |
using | SPGroupRange = ObjectSet::SPGroupRange |
using | XMLNodeRange = ObjectSet::XMLNodeRange |
typedef std::unique_ptr< Preferences::PreferencesObserver > | PrefObserver |
typedef std::tuple< std::string, std::string, std::string, std::uint32_t, std::uint32_t, bool, int > | Key |
using | StartMethod = void(Gtk::FileDialog::*)(Gtk::Window &, Gio::SlotAsyncReady const &, Glib::RefPtr< Gio::Cancellable > const &) |
using | FinishMethod = Glib::RefPtr< Gio::File >(Gtk::FileDialog::*)(Glib::RefPtr< Gio::AsyncResult > const &) |
using | VisualItem = CanvasItemPtr< CanvasItemBpath > |
using | PathvectorItems = std::vector< PathvectorItem > |
using | WorkItem = std::shared_ptr< SubItem > |
using | WorkItems = std::vector< WorkItem > |
Functions | |
bool | have_viable_layer (SPDesktop *desktop, MessageContext *message) |
Check to see if the current layer is both unhidden and unlocked. | |
bool | have_viable_layer (SPDesktop *desktop, MessageStack *message) |
Check to see if the current layer is both unhidden and unlocked. | |
Geom::Rect | snap_rectangular_box (SPDesktop const *desktop, SPItem *item, Geom::Point const &pt, Geom::Point const ¢er, int state) |
static bool | _workaround_issue_70__gdk_pixbuf_loader_write (GdkPixbufLoader *loader, guchar *decoded, gsize decoded_len, GError **error) |
Incremental file read introduced to workaround https://gitlab.gnome.org/GNOME/gdk-pixbuf/issues/70. | |
static int | get_size_default () |
static double | angle_of (Geom::Affine const &affine) |
static double | signed_distance (Geom::Point const &point, Geom::Line const &line) |
static std::vector< Geom::Point > | intersect_line_rectangle (Geom::Line const &line, Geom::Rect const &rect) |
static void | drawline (Inkscape::CanvasItemBuffer &buf, int x0, int y0, int x1, int y1, uint32_t rgba) |
static void | vline (Inkscape::CanvasItemBuffer &buf, int x, int ys, int ye, uint32_t rgba) |
static double | distance_to_segment (Geom::Point const &p, Geom::Point const &a1, Geom::Point const &a2) |
Calculates the closest distance from p to the segment a1-a2. | |
void | apply_antialias (DrawingContext &dc, Antialiasing antialias) |
Apply antialias setting to Cairo. | |
void | propagate_antialias (SPShapeRendering shape_rendering, DrawingItem &item) |
Propagate element's shape rendering attribute into internal anti-aliasing setting of DrawingItem. | |
static auto | rendermode_to_renderflags (RenderMode mode) |
static auto | default_numthreads () |
CairoPatternUniqPtr | copy (CairoPatternUniqPtr const &p) |
void | set_num_dispatch_threads (int num_dispatch_threads) |
std::shared_ptr< dispatch_pool > | get_global_dispatch_pool () |
std::vector< PaintTarget > const & | allPaintTargets () |
Convenience function to access a common vector of all enum values. | |
Geom::PathVector | outline (Geom::Path const &input, double width, double miter, LineJoinType join=JOIN_BEVEL, LineCapType cap=BUTT_FLAT, double tolerance=-1) |
Strokes the path given by input. | |
Geom::Path | half_outline (Geom::Path const &input, double width, double miter, LineJoinType join=JOIN_BEVEL, double tolerance=-1) |
Offset the input path by width. | |
void | outline_join (Geom::Path &res, Geom::Path const &outgoing, Geom::Point in_tang, Geom::Point out_tang, double width, double miter, LineJoinType join) |
Builds a join on the provided path. | |
std::vector< std::vector< int > > | connected_components (int size, std::function< bool(int, int)> const &adj_test) |
Return the list of connected components of a graph described by an adjacency-test function. | |
bool | is_path_empty (Geom::Path const &path) |
Check for an empty path. | |
std::vector< Geom::PathVector > | split_non_intersecting_paths (Geom::PathVector &&paths, bool remove_empty=false) |
Split a collection of paths into connected components. | |
Geom::PathVector | do_offset (Geom::PathVector const &path_in, double to_offset, double tolerance, double miter_limit, FillRule fillrule, Inkscape::LineJoinType join, Geom::Point point, Geom::PathVector &helper_path, Geom::PathVector &mix_pathv_all) |
Create a user spected offset from a pathvector. | |
Geom::PathVector | do_offset (Geom::PathVector const &path_in, double to_offset, double tolerance, double miter_limit, FillRule fillrule, Inkscape::LineJoinType join) |
void | initialize_gettext () |
does all required gettext initialization and takes care of the respective locale directory paths | |
void | bind_textdomain_codeset_utf8 () |
set gettext codeset to UTF8 | |
void | bind_textdomain_codeset_console () |
set gettext codeset to codeset of the system console | |
std::string | inkscape_version () |
Return Inkscape version string. | |
std::string | inkscape_revision () |
Return Inkscape repository revision string. | |
static std::string | _run (char const *command) |
Wrapper around g_spawn_sync which captures STDOUT and strips trailing whitespace. | |
std::string | os_version () |
Return OS version string. | |
std::string | debug_info () |
Return full debug info. | |
unsigned short int | inkscape_build_year () |
Return build year as 4 digit. | |
std::vector< std::string > | splitPath (std::string const &path) |
std::string | optimizePath (std::string const &path, std::string const &base, unsigned int parents) |
Convert an absolute path into a relative one if possible to do in the given number of parent steps. | |
bool | fixBrokenLinks (SPDocument *doc) |
static std::vector< Glib::ustring > | findBrokenLinks (SPDocument *doc) |
Walk all links in a document and create a listing of unique broken links. | |
static std::map< Glib::ustring, Glib::ustring > | locateLinks (Glib::ustring const &docbase, std::vector< Glib::ustring > const &brokenLinks) |
Resolve broken links as a whole and return a map for those that can be found. | |
static bool | extractFilepath (Glib::ustring const &href, std::string &filename) |
Try to parse href into a local filename using standard methods. | |
static bool | reconstructFilepath (Glib::ustring const &href, std::string &filename) |
Try to parse href into a local filename using some non-standard methods. | |
static bool | searchUpwards (std::string const &base, std::string const &subpath, std::string &dest) |
std::vector< Glib::RefPtr< Gtk::RecentInfo > > | getInkscapeRecentFiles (unsigned max_files) |
Generate a vector of recently used Inkscape files. | |
std::map< Glib::ustring, std::string > | getShortenedPathMap (std::vector< Glib::RefPtr< Gtk::RecentInfo > > const &recent_files) |
Generate the shortened labeles for a list of recently used files. | |
static bool | is_layer (SPObject &object) |
static SPObject * | next_sibling_layer (SPObject *layer) |
Finds the next sibling layer for a layer. | |
static SPObject * | previous_sibling_layer (SPObject *layer) |
Finds the previous sibling layer for a layer. | |
static SPObject * | first_descendant_layer (SPObject *layer) |
Finds the first child of a layer. | |
static SPObject * | last_child_layer (SPObject *layer) |
Finds the last (topmost) child of a layer. | |
static SPObject * | last_elder_layer (SPObject *root, SPObject *layer) |
SPObject * | next_layer (SPObject *root, SPObject *layer) |
Finds the next layer under root, relative to layer in depth-first order. | |
SPObject * | previous_layer (SPObject *root, SPObject *layer) |
Finds the previous layer under root, relative to layer in depth-first order. | |
SPObject * | create_layer (SPObject *root, SPObject *layer, LayerRelativePosition position) |
Creates a new layer. | |
std::vector< SPItem * > | get_layers_to_toggle (SPObject *layer, SPObject *current_root) |
static int | compute_distance (PangoFontDescription const *a, PangoFontDescription const *b) |
gboolean | font_description_better_match (PangoFontDescription *target, PangoFontDescription *old_desc, PangoFontDescription *new_desc) |
void | getBBoxPoints (Geom::OptRect const bbox, std::vector< SnapCandidatePoint > *points, bool const isTarget, bool const corners, bool const edges, bool const midpoint) |
Default version of the getBBoxPoints with default corner source types. | |
void | getBBoxPoints (Geom::OptRect const bbox, std::vector< SnapCandidatePoint > *points, bool const isTarget, Inkscape::SnapSourceType corners, Inkscape::SnapTargetType cornert, Inkscape::SnapSourceType edges, Inkscape::SnapTargetType edget, Inkscape::SnapSourceType midpoints, Inkscape::SnapTargetType midpointt) |
static bool | uri_needs_escaping (char const *uri) |
Return true if the given URI string contains characters that need escaping. | |
static std::string | build_relative_uri (char const *uri, char const *base) |
Replacement for buggy xmlBuildRelativeURI https://gitlab.gnome.org/GNOME/libxml2/merge_requests/12. | |
static int | uri_unescape_triplet (const char *s) |
If s starts with a "%XX" triplet, return its byte value, 0 otherwise. | |
static int | uri_unescape_utf8_codepoint (const char *s, char *out) |
If s starts with a percent-escaped UTF-8 sequence, unescape one code point and store it in out variable. | |
std::string | uri_to_iri (const char *uri) |
Unescape the UTF-8 parts of the given URI. | |
void | convert_text_to_curves (SPDocument *) |
Convert all text in the document to path, in-place. | |
void | copy_object_properties (XML::Node *dest, XML::Node const *src) |
Copy generic object properties, like: | |
static Inkscape::XML::Document * | loadImpl (std::string const &prefsFilename, Glib::ustring &errMsg) |
static void | migrateDetails (Inkscape::XML::Document *from, Inkscape::XML::Document *to) |
Geom::Scale | calcScaleFactors (Geom::Point const &initial_point, Geom::Point const &new_point, Geom::Point const &origin, bool const skew=false) |
char const * | refX_named_to_percent (char const *str) |
char const * | refY_named_to_percent (char const *str) |
Glib::RefPtr< Gdk::Cursor > | load_svg_cursor (Gtk::Widget &widget, std::string const &file_name, std::optional< Colors::Color > maybe_fill, std::optional< Colors::Color > maybe_stroke) |
Loads an SVG cursor from the specified file name. | |
void | 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. | |
Glib::RefPtr< Gtk::FileDialog > | create_file_dialog (Glib::ustring const &title, Glib::ustring const &accept_label) |
Create a Gtk::FileDialog with the given title and label for its default/accept button. | |
void | set_filters (Gtk::FileDialog &file_dialog, Glib::RefPtr< Gio::ListStore< Gtk::FileFilter > > const &filters) |
Set available filters to a given list, & default to its 1st filter (if any). | |
void | set_filter (Gtk::FileDialog &file_dialog, Glib::RefPtr< Gtk::FileFilter > const &filter) |
Set the available filters & the default filter, to the single filter passed. | |
static auto | run (Gtk::FileDialog &file_dialog, Gtk::Window &parent, std::string ¤t_folder, StartMethod const start, FinishMethod const finish) |
Glib::RefPtr< Gio::File > | choose_file_save (Glib::ustring const &title, Gtk::Window *parent, Glib::RefPtr< Gio::ListStore< Gtk::FileFilter > > const &filters_model, std::string const &file_name, std::string ¤t_folder) |
Synchronously run a Gtk::FileDialog to select a file for saving data. | |
Glib::RefPtr< Gio::File > | choose_file_save (Glib::ustring const &title, Gtk::Window *parent, Glib::ustring const &mime_type, std::string const &file_name, std::string ¤t_folder) |
Synchronously run a Gtk::FileDialog to select a file for saving data. | |
Glib::RefPtr< Gio::File > | choose_file_open (Glib::ustring const &title, Gtk::Window *parent, Glib::RefPtr< Gio::ListStore< Gtk::FileFilter > > const &filters_model, std::string ¤t_folder, Glib::ustring const &accept={}) |
Synchronously run a Gtk::FileDialog to open a single file for reading data. | |
Glib::RefPtr< Gio::File > | choose_file_open (Glib::ustring const &title, Gtk::Window *parent, std::vector< Glib::ustring > const &mime_types, std::string ¤t_folder, Glib::ustring const &accept={}) |
Synchronously run a Gtk::FileDialog to open a single file for reading data. | |
Glib::RefPtr< Gio::File > | choose_file_open (Glib::ustring const &title, Gtk::Window *parent, std::vector< std::pair< Glib::ustring, Glib::ustring > > const &filters, std::string ¤t_folder, Glib::ustring const &accept={}) |
Synchronously run a Gtk::FileDialog to open a single file for reading data. | |
std::vector< Glib::RefPtr< Gio::File > > | choose_file_open_images (Glib::ustring const &title, Gtk::Window *parent, std::string const &pref_path, Glib::ustring const &accept={}) |
Synchronously run a Gtk::FileDialog to open a one or more image files. | |
bool | save_image (const std::string &fname, const Inkscape::Pixbuf *pixbuf) |
bool | extract_image (Gtk::Window *parent, SPImage *image) |
static Gtk::AccelKey | get_from_event_impl (unsigned const event_keyval, unsigned const event_keycode, GdkModifierType const event_state, unsigned const event_group, bool const fix) |
template<typename T > | |
static void | append (std::vector< T > &target, std::vector< T > &&source) |
static Glib::ustring | join (std::vector< Glib::ustring > const &accels, char const separator) |
Gdk::ModifierType | parse_modifier_string (char const *const modifiers_string) |
template<typename T > | |
static auto | ensure_nonnull (T &&t, char const *message) |
static Geom::PathVector | clean_pathvector (Geom::PathVector &&pathv) |
static void | extract_pathvectors_recursive (SPItem *root, SPItem *item, PathvectorItems &result, Geom::Affine const &transform) |
static FillRule | sp_to_livarot (SPWindRule fillrule) |
ExtendedInput | extinput_from_gdkevent (Gdk::Event const &event) |
Read the extended input data from a Gdk::Event. | |
template<typename E , typename... Fs> | |
void | inspect_event (E &&event, Fs... funcs) |
Perform pattern-matching on a CanvasEvent. | |
bool | mod_shift (unsigned modifiers) |
bool | mod_ctrl (unsigned modifiers) |
bool | mod_alt (unsigned modifiers) |
bool | mod_shift_only (unsigned modifiers) |
bool | mod_ctrl_only (unsigned modifiers) |
bool | mod_alt_only (unsigned modifiers) |
bool | mod_shift (KeyEvent const &event) |
bool | mod_ctrl (KeyEvent const &event) |
bool | mod_alt (KeyEvent const &event) |
bool | mod_shift_only (KeyEvent const &event) |
bool | mod_ctrl_only (KeyEvent const &event) |
bool | mod_alt_only (KeyEvent const &event) |
bool | state_held_shift (unsigned state) |
bool | state_held_ctrl (unsigned state) |
bool | state_held_alt (unsigned state) |
bool | state_held_only_shift (unsigned state) |
bool | state_held_only_ctrl (unsigned state) |
bool | state_held_only_alt (unsigned state) |
bool | state_held_any_modifiers (unsigned state) |
bool | state_held_no_modifiers (unsigned state) |
template<unsigned button> | |
bool | state_held_button (unsigned state) |
bool | held_shift (CanvasEvent const &event) |
bool | held_ctrl (CanvasEvent const &event) |
bool | held_alt (CanvasEvent const &event) |
bool | held_only_shift (CanvasEvent const &event) |
bool | held_only_ctrl (CanvasEvent const &event) |
bool | held_only_alt (CanvasEvent const &event) |
bool | held_any_modifiers (CanvasEvent const &event) |
bool | held_no_modifiers (CanvasEvent const &event) |
template<unsigned button> | |
bool | held_button (CanvasEvent const &event) |
void | dump_event (CanvasEvent const &event, char const *prefix, bool merge=true) |
Print an event to stdout. | |
constexpr EventMask | operator~ (EventType a) |
constexpr EventMask | operator& (EventType a, EventMask b) |
constexpr EventMask | operator| (EventType a, EventMask b) |
const EnumDataConverter< SPBlendMode > | SPBlendModeConverter (SPBlendModeData, SP_CSS_BLEND_COUNT) |
Cairo::RefPtr< Cairo::ImageSurface > | draw_handles_preview (int device_scale) |
double | calculate_font_weight (Pango::FontDescription &desc, double caps_height) |
double | calculate_font_width (Pango::FontDescription &desc) |
Glib::ustring | get_full_font_name (Glib::RefPtr< Pango::FontFamily > ff, Glib::RefPtr< Pango::FontFace > face) |
int | get_font_style_order (const Pango::FontDescription &desc) |
void | sort_fonts_by_name (std::vector< FontInfo > &fonts, bool sans_first) |
void | sort_fonts (std::vector< FontInfo > &fonts, FontOrder order, bool sans_first) |
Glib::ustring | get_fontspec (const Glib::ustring &family, const Glib::ustring &face, const Glib::ustring &variations) |
Glib::ustring | get_fontspec (const Glib::ustring &family, const Glib::ustring &face) |
Glib::ustring | get_face_style (const Pango::FontDescription &desc) |
Glib::ustring | get_inkscape_fontspec (const Glib::RefPtr< Pango::FontFamily > &ff, const Glib::RefPtr< Pango::FontFace > &face, const Glib::ustring &variations) |
Pango::FontDescription | get_font_description (const Glib::RefPtr< Pango::FontFamily > &ff, const Glib::RefPtr< Pango::FontFace > &face) |
void | save_font_cache (const std::vector< FontInfo > &fonts) |
std::unordered_map< std::string, FontInfo > | load_cached_font_info () |
std::vector< FontInfo > | get_all_fonts () |
std::shared_ptr< const std::vector< FontInfo > > | get_all_fonts (Async::Progress< double, Glib::ustring, std::vector< FontInfo > > &progress) |
Glib::ustring | get_fontspec_without_variants (const Glib::ustring &fontspec) |
Cairo::RefPtr< Cairo::Surface > | add_background_to_image (Cairo::RefPtr< Cairo::Surface > image, uint32_t rgb, double margin, double radius, int device_scale, std::optional< uint32_t > border=std::optional< uint32_t >()) |
std::unique_ptr< SPDocument > | ink_markers_preview_doc (const Glib::ustring &group_id) |
Returns a new document containing default start, mid, and end markers. | |
Cairo::RefPtr< Cairo::Surface > | create_marker_image (const Glib::ustring &group_id, SPDocument *_sandbox, Gdk::RGBA marker_color, Geom::IntPoint pixel_size, const char *mname, SPDocument *source, Inkscape::Drawing &drawing, std::optional< guint32 > checkerboard, bool no_clip, double scale, int device_scale) |
Creates a copy of the marker named mname, determines its visible and renderable area in the bounding box, and then renders it. | |
void | draw_gradient (const Cairo::RefPtr< Cairo::Context > &cr, SPGradient *gradient, int x, int width) |
Renders a preview of a gradient into the passed context. | |
std::set< unsigned > | parseIntRange (std::string const &input, unsigned start=1, unsigned end=0) |
Parse integer ranges out of a string. | |
template<typename... Fs> | |
VariantVisitor (Fs...) -> VariantVisitor< Fs... > | |
bool | is_query_style_updateable (const int style) |
std::pair< char const *, char const * > | getHrefAttribute (XML::Node const &node) |
Get the 'href' or 'xlink:href' (fallback) attribute from an XML node. | |
void | setHrefAttribute (XML::Node &node, Util::const_char_ptr value) |
If the 'href' attribute already exists for the given node, then set a new value for it. | |
Variables | |
constexpr int | MIN_INDEX = 1 |
constexpr int | MAX_INDEX = 15 |
constexpr uint32_t | CANVAS_ITEM_COLORS [] = { 0x0000ff7f, 0xff00007f, 0xffff007f } |
static auto constexpr | grayscale_matrix |
char const * | revision_string |
code revision string | |
char const * | version_string |
full version string | |
char const * | version_string_without_revision |
version string excluding revision and date | |
unsigned short int const | build_year |
four digit year of build | |
unsigned int const | version_major |
unsigned int const | version_minor |
unsigned int const | version_patch |
auto const | URI_ALLOWED_NON_ALNUM = "!#$%&'()*+,-./:;=?@_~" |
static auto const | default_background_color = Colors::Color{0xffffff00} |
static auto const | default_margin_color = Colors::Color{0x1699d751} |
static auto const | default_bleed_color = Colors::Color{0xbe310e31} |
static auto const | default_border_color = Colors::Color{0x0000003f} |
static Inkscape::XML::Document * | migrateFromDoc = nullptr |
static constexpr std::array< uint32_t, 6 > | fill_lite = {0x00000055, 0x0291ffff, 0x8eceffff, 0x0291ffff, 0xf299d6ff, 0xff0db3ff} |
static constexpr std::array< uint32_t, 6 > | fill_dark = {0xffffff55, 0x0291ffff, 0x8eceffff, 0x0291ffff, 0xf299d6ff, 0xff0db3ff} |
constexpr auto | INK_GDK_MODIFIER_MASK = GDK_SHIFT_MASK | GDK_CONTROL_MASK | GDK_ALT_MASK |
All modifiers used by Inkscape. | |
constexpr bool | DEBUG_EVENTS = false |
Whether event debug printing is enabled. | |
const int | SP_CSS_BLEND_COUNT = SP_CSS_BLEND_ENDMODE + 5 |
const EnumData< SPBlendMode > | SPBlendModeData [SP_CSS_BLEND_COUNT] |
const Util::EnumDataConverter< SPBlendMode > | SPBlendModeConverter |
const std::string | RECENTLY_USED_FONTS = _("Recently Used Fonts") |
const std::string | DOCUMENT_FONTS = _("Document Fonts") |
const char | font_cache [] = "font-cache.ini" |
const char | cache_header [] = "@font-cache@" |
constexpr auto | cache_version = 1.0 |
const char * | RECENTFONTS_FILENAME = "recently_used_fonts.log" |
Helper class to stream background task notifications as a series of messages.
Helper methods for resolving URI References.
The reference corresponding to a satelite in a LivePathEffectObject.
This class provided buffered endpoints for input and output.
Main Inkscape namespace.
A class to represent on-screen text.
A class to represent a control textrilateral.
A class to represent a control rectangle.
A class to represent a control quadrilateral.
A class to represent a control guide line.
A CanvasItem that contains other CanvasItems.
A class to render the SVG drawing.
A class to represent a single Bezier control curve.
A class to represent a single Bezier control curve, either a line or a cubic Bezier.
A class to represent a control node.
A class to catch events after everyone else has had a go.
Buffer for rendering canvas items.
A class to represent a Bezier path.
It can be used to expose background task to clients, as well as intercept results.
Used to highlight selected text.
Used for rubberband selector, page outline, etc.
This namespace contains all code internal to Inkscape.
Authors: Lauris Kaplinski lauri.nosp@m.s@ka.nosp@m.plins.nosp@m.ki.c.nosp@m.om Marc Jeanmougin
Copyright (C) 2001-2002 Lauris Kaplinski Copyright (C) 2001 Ximian, Inc.
Released under GNU GPL v2+, read the file 'COPYING' for more information.
Author: Michael Kowalski
Copyright (C) 2020-2021 Michael Kowalski
Released under GNU GPL v2+, read the file 'COPYING' for more information.
using Inkscape::CacheList = typedef std::list<CacheRecord> |
Definition at line 74 of file drawing-item.h.
using Inkscape::CairoPatternUniqPtr = typedef std::unique_ptr<cairo_pattern_t, CairoPatternFreer> |
Definition at line 34 of file nr-style.h.
using Inkscape::FinishMethod = typedef Glib::RefPtr<Gio::File> (Gtk::FileDialog::*) (Glib::RefPtr<Gio::AsyncResult> const &) |
Definition at line 53 of file choose-file.cpp.
typedef std::tuple<std::string, std::string, std::string, std::uint32_t, std::uint32_t, bool, int> Inkscape::Key |
Definition at line 49 of file cursor-utils.cpp.
using Inkscape::MessageId = typedef std::uint_least32_t |
An integer ID which identifies a displayed message in a particular Inkscape::MessageStack.
typedef boost::multi_index_container< SPObject*, boost::multi_index::indexed_by< boost::multi_index::sequenced<>, boost::multi_index::random_access< boost::multi_index::tag<random_access> >, boost::multi_index::hashed_unique< boost::multi_index::tag<hashed>, boost::multi_index::identity<SPObject*> > > > Inkscape::MultiIndexContainer |
Definition at line 111 of file object-set.h.
using Inkscape::PathvectorItems = typedef std::vector<PathvectorItem> |
Definition at line 82 of file booleans-subitems.cpp.
typedef std::unique_ptr<Preferences::PreferencesObserver> Inkscape::PrefObserver |
Definition at line 778 of file preferences.h.
using Inkscape::SPGroupRange = typedef ObjectSet::SPGroupRange |
Definition at line 532 of file object-set.h.
using Inkscape::SPItemRange = typedef ObjectSet::SPItemRange |
Definition at line 531 of file object-set.h.
typedef boost::any_range< SPObject*, boost::random_access_traversal_tag, SPObject* const&, std::ptrdiff_t> Inkscape::SPObjectRange |
Definition at line 117 of file object-set.h.
using Inkscape::StartMethod = typedef void (Gtk::FileDialog::*) (Gtk::Window &, Gio::SlotAsyncReady const &, Glib::RefPtr<Gio::Cancellable> const &) |
Definition at line 49 of file choose-file.cpp.
using Inkscape::VisualItem = typedef CanvasItemPtr<CanvasItemBpath> |
Definition at line 34 of file booleans-builder.h.
using Inkscape::WorkItem = typedef std::shared_ptr<SubItem> |
Definition at line 25 of file booleans-subitems.h.
using Inkscape::WorkItems = typedef std::vector<WorkItem> |
Definition at line 26 of file booleans-subitems.h.
using Inkscape::XMLNodeRange = typedef ObjectSet::XMLNodeRange |
Definition at line 533 of file object-set.h.
|
strong |
Enumerator | |
---|---|
None | |
Fast | |
Good | |
Best |
Definition at line 46 of file drawing-item.h.
Enumerator | |
---|---|
CANVAS_ITEM_PRIMARY | |
CANVAS_ITEM_SECONDARY | |
CANVAS_ITEM_TERTIARY |
Definition at line 19 of file canvas-item-enums.h.
Definition at line 25 of file canvas-item-enums.h.
Definition at line 42 of file canvas-item-enums.h.
|
strong |
Enumerator | |
---|---|
NORMAL | |
GRAYSCALE | |
PRINT_COLORS_PREVIEW |
Definition at line 47 of file rendermode.h.
|
strong |
Enumerator | |
---|---|
HREF_DATA | |
HREF_FILE | |
LOCAL_ID |
Definition at line 21 of file color-profile.h.
Flags for internal representation/tracking.
Enumerator | |
---|---|
CTRL_FLAG_NORMAL | |
CTRL_FLAG_ACTIVE | |
CTRL_FLAG_PRELIGHT | |
CTRL_FLAG_SELECTED |
Definition at line 38 of file control-types.h.
Definition at line 18 of file control-types.h.
|
strong |
The type of a CanvasEvent.
Enumerator | |
---|---|
ENTER | |
LEAVE | |
MOTION | |
BUTTON_PRESS | |
BUTTON_RELEASE | |
KEY_PRESS | |
KEY_RELEASE | |
SCROLL | |
NUM_EVENTS |
enum Inkscape::FontCacheFlags : int |
Enumerator | |
---|---|
Normal | |
Monospace | |
Oblique | |
Variable | |
Synthetic |
Definition at line 204 of file font-discovery.cpp.
|
strong |
Enumerator | |
---|---|
by_name | |
by_weight | |
by_width |
Definition at line 30 of file font-discovery.h.
|
strong |
Enumerator | |
---|---|
XTINY | |
TINY | |
SMALL | |
NORMAL | |
LARGE |
Definition at line 34 of file canvas-item-ctrl.h.
Enumerator | |
---|---|
LPOS_ABOVE | |
LPOS_CHILD | |
LPOS_BELOW |
Definition at line 80 of file layer-manager.h.
Enumerator | |
---|---|
BUTT_FLAT | |
BUTT_ROUND | |
BUTT_SQUARE | |
BUTT_PEAK |
Definition at line 34 of file geom-pathstroke.h.
Enumerator | |
---|---|
JOIN_BEVEL | |
JOIN_ROUND | |
JOIN_MITER | |
JOIN_MITER_CLIP | |
JOIN_EXTRAPOLATE | |
JOIN_EXTRAPOLATE1 | |
JOIN_EXTRAPOLATE2 | |
JOIN_EXTRAPOLATE3 |
Definition at line 23 of file geom-pathstroke.h.
Enumerator | |
---|---|
FOR_FILL | |
FOR_STROKE |
Definition at line 66 of file sp-gradient.h.
|
strong |
Enumerator | |
---|---|
PDF_IMPORT_INTERNAL | |
PDF_IMPORT_CAIRO |
Definition at line 65 of file pdf-input.h.
|
strong |
Enumerator | |
---|---|
NORMAL | |
OUTLINE | |
NO_FILTERS | |
VISIBLE_HAIRLINES | |
OUTLINE_OVERLAY | |
size |
Definition at line 21 of file rendermode.h.
|
strong |
Enumerator | |
---|---|
BBox | |
Nodes | |
Alignment | |
Rest | |
_MaxEnumValue |
Definition at line 153 of file snap-enums.h.
enumerations of snap source types and snap target types.
Definition at line 18 of file snap-enums.h.
Definition at line 70 of file snap-enums.h.
|
strong |
Enumerator | |
---|---|
NONE | |
NORTH | |
EAST | |
SOUTH | |
WEST | |
HORIZONTAL | |
VERTICAL |
Definition at line 37 of file rendermode.h.
|
strong |
Enumerator | |
---|---|
NORMAL | |
SPLIT | |
XRAY | |
size |
Definition at line 30 of file rendermode.h.
|
strong |
Enumerator | |
---|---|
NONE | |
ADD | |
DELETE |
Definition at line 42 of file booleans-builder.h.
|
static |
Wrapper around g_spawn_sync which captures STDOUT and strips trailing whitespace.
If an error occurs, report it to STDERR and return an empty string.
Definition at line 61 of file inkscape-version-info.cpp.
Referenced by os_version().
|
static |
Incremental file read introduced to workaround https://gitlab.gnome.org/GNOME/gdk-pixbuf/issues/70.
Definition at line 140 of file cairo-utils.cpp.
Cairo::RefPtr< Cairo::Surface > Inkscape::add_background_to_image | ( | Cairo::RefPtr< Cairo::Surface > | image, |
uint32_t | rgb, | ||
double | margin, | ||
double | radius, | ||
int | device_scale, | ||
std::optional< uint32_t > | border = std::optional< uint32_t >() |
||
) |
Referenced by Inkscape::UI::Dialog::render_color().
std::vector< PaintTarget > const & Inkscape::allPaintTargets | ( | ) |
Convenience function to access a common vector of all enum values.
Definition at line 72 of file gradient-chemistry.cpp.
|
static |
Definition at line 342 of file canvas-item-ctrl.cpp.
Referenced by Inkscape::CanvasItemCtrl::_update().
|
static |
Definition at line 530 of file shortcuts.cpp.
Referenced by Inkscape::UI::Dialog::StyleDialog::_writeStyleElement(), Inkscape::UI::Widget::DialogPage::add_group_header(), Inkscape::UI::Widget::DialogPage::add_group_note(), Inkscape::UI::Widget::Licensor::add_item(), Inkscape::UI::Dialog::AlignAndDistribute::AlignAndDistribute(), Inkscape::UI::Widget::AlignmentSelector::AlignmentSelector(), Inkscape::UI::Widget::AnchorSelector::AnchorSelector(), Inkscape::UI::Widget::FontVariations::build_ui(), Inkscape::UI::Widget::ColorPage::ColorPage(), Inkscape::UI::Widget::ComboBoxEntryToolItem::ComboBoxEntryToolItem(), Inkscape::UI::Widget::ComboToolItem::ComboToolItem(), Inkscape::UI::Widget::CompletionPopup::CompletionPopup(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::create_menu(), Inkscape::UI::Widget::DashSelector::DashSelector(), Inkscape::UI::Dialog::Debug::Debug(), Inkscape::UI::Dialog::DialogContainer::DialogContainer(), Inkscape::UI::Dialog::DocumentProperties::DocumentProperties(), Inkscape::UI::Dialog::DocumentResources::DocumentResources(), Inkscape::UI::Dialog::Export::Export(), Inkscape::UI::Dialog::ExtensionsGallery::ExtensionsGallery(), Inkscape::UI::Widget::FillNStroke::FillNStroke(), Inkscape::UI::Dialog::FontCollectionsManager::FontCollectionsManager(), Inkscape::UI::Widget::FontList::FontList(), Inkscape::UI::Widget::FontSelector::FontSelector(), Inkscape::UI::Widget::FontVariationAxis::FontVariationAxis(), Inkscape::Shortcuts::get_file_names(), Inkscape::UI::Widget::GradientEditor::GradientEditor(), Inkscape::UI::Dialog::IconPreviewPanel::IconPreviewPanel(), Inkscape::UI::Dialog::InkscapePreferences::InkscapePreferences(), Inkscape::UI::Dialog::LivePathEffectEditor::LivePathEffectEditor(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::MeasureToolSettingsDialog(), Inkscape::UI::Dialog::ObjectAttributes::ObjectAttributes(), Inkscape::UI::Dialog::ObjectsPanel::ObjectsPanel(), Inkscape::UI::Widget::PrefRadioButtons::PrefRadioButtons(), Inkscape::UI::Widget::RenderingOptions::RenderingOptions(), Inkscape::UI::Toolbar::Toolbars::setTool(), Inkscape::UI::Dialog::ExtensionList::setup(), Inkscape::UI::Dialog::show_about(), Inkscape::UI::Widget::SimpleFilterModifier::SimpleFilterModifier(), Inkscape::UI::Dialog::SpellCheck::SpellCheck(), Inkscape::UI::Widget::StatusBar::StatusBar(), Inkscape::UI::Widget::StrokeStyle::StrokeStyle(), Inkscape::UI::Dialog::SwatchesPanel::SwatchesPanel(), Inkscape::UI::Dialog::TextEdit::TextEdit(), Inkscape::UI::Toolbar::ToolToolbar::ToolToolbar(), and Inkscape::UI::Dialog::XmlTree::XmlTree().
void Inkscape::apply_antialias | ( | DrawingContext & | dc, |
Antialiasing | antialias | ||
) |
Apply antialias setting to Cairo.
Definition at line 1236 of file drawing-item.cpp.
References Best, Fast, Good, None, and Inkscape::DrawingContext::raw().
Referenced by Inkscape::Drawing::render(), Inkscape::DrawingItem::render(), and Inkscape::DrawingPattern::renderPattern().
void Inkscape::bind_textdomain_codeset_console | ( | ) |
set gettext codeset to codeset of the system console
Definition at line 67 of file gettext.cpp.
void Inkscape::bind_textdomain_codeset_utf8 | ( | ) |
set gettext codeset to UTF8
Definition at line 56 of file gettext.cpp.
|
static |
Replacement for buggy xmlBuildRelativeURI https://gitlab.gnome.org/GNOME/libxml2/merge_requests/12.
Special case: Don't cross filesystem root, e.g. drive letter on Windows. This is an optimization to keep things practical, it's not required for correctness.
Definition at line 234 of file uri.cpp.
Referenced by Inkscape::URI::str().
Geom::Scale Inkscape::calcScaleFactors | ( | Geom::Point const & | initial_point, |
Geom::Point const & | new_point, | ||
Geom::Point const & | origin, | ||
bool const | skew = false |
||
) |
Definition at line 1715 of file seltrans.cpp.
References offset, origin, and scale.
Referenced by Inkscape::SelTrans::scaleRequest(), Inkscape::SelTrans::skewRequest(), and Inkscape::SelTrans::stretchRequest().
double Inkscape::calculate_font_weight | ( | Pango::FontDescription & | desc, |
double | caps_height | ||
) |
Definition at line 48 of file font-discovery.cpp.
References height, size, stride, sum(), surface, weight, and width.
Referenced by get_all_fonts().
double Inkscape::calculate_font_width | ( | Pango::FontDescription & | desc | ) |
Definition at line 81 of file font-discovery.cpp.
References surface.
Referenced by get_all_fonts().
Glib::RefPtr< Gio::File > Inkscape::choose_file_open | ( | Glib::ustring const & | title, |
Gtk::Window * | parent, | ||
Glib::RefPtr< Gio::ListStore< Gtk::FileFilter > > const & | filters_model, | ||
std::string & | current_folder, | ||
Glib::ustring const & | accept = {} |
||
) |
Synchronously run a Gtk::FileDialog to open a single file for reading data.
filters_model | For selection of file types to be shown in dialog. |
current_folder | Path of initial folder to show, updated to parent of selected file if any. |
Definition at line 136 of file choose-file.cpp.
References create_file_dialog(), parent, run(), and set_filters().
Referenced by Inkscape::UI::Dialog::DocumentProperties::browseExternalScript(), choose_file_open(), choose_file_open(), Inkscape::UI::Dialog::choose_palette_file(), Inkscape::Shortcuts::import_shortcuts(), Inkscape::UI::Dialog::StartScreen::load_document(), and Inkscape::UI::Widget::PrefEntryFileButtonHBox::onRelatedButtonClickedCallback().
Glib::RefPtr< Gio::File > Inkscape::choose_file_open | ( | Glib::ustring const & | title, |
Gtk::Window * | parent, | ||
std::vector< Glib::ustring > const & | mime_types, | ||
std::string & | current_folder, | ||
Glib::ustring const & | accept = {} |
||
) |
Synchronously run a Gtk::FileDialog to open a single file for reading data.
mime_type | MIME types to offer as file filters in the dialog. |
current_folder | Path of initial folder to show, updated to parent of selected file if any |
Definition at line 157 of file choose-file.cpp.
References choose_file_open(), and parent.
Glib::RefPtr< Gio::File > Inkscape::choose_file_open | ( | Glib::ustring const & | title, |
Gtk::Window * | parent, | ||
std::vector< std::pair< Glib::ustring, Glib::ustring > > const & | filters, | ||
std::string & | current_folder, | ||
Glib::ustring const & | accept = {} |
||
) |
Synchronously run a Gtk::FileDialog to open a single file for reading data.
filters | Vector of pairs of <name, pattern> to create file filters to offer in the dialog |
current_folder | Path of initial folder to show, updated to parent of selected file if any |
Definition at line 172 of file choose-file.cpp.
References choose_file_open(), and parent.
std::vector< Glib::RefPtr< Gio::File > > Inkscape::choose_file_open_images | ( | Glib::ustring const & | title, |
Gtk::Window * | parent, | ||
std::string const & | pref_path, | ||
Glib::ustring const & | accept = {} |
||
) |
Synchronously run a Gtk::FileDialog to open a one or more image files.
pref_path | Preference path (i.e. "/dialog/open/path"). |
Definition at line 197 of file choose-file.cpp.
References create_file_dialog(), Inkscape::UI::Dialog::create_open_filters(), Inkscape::UI::Dialog::get_start_directory(), parent, result, and set_filters().
Referenced by document_import(), and document_open().
Glib::RefPtr< Gio::File > Inkscape::choose_file_save | ( | Glib::ustring const & | title, |
Gtk::Window * | parent, | ||
Glib::RefPtr< Gio::ListStore< Gtk::FileFilter > > const & | filters_model, | ||
std::string const & | file_name, | ||
std::string & | current_folder | ||
) |
Synchronously run a Gtk::FileDialog to select a file for saving data.
filters_model | For selection of file types to be shown in dialog. |
file_name | Name of the initial file to show in the dialogʼs text entry. |
current_folder | Path of initial folder to show, updated to parent of selected file if any |
Definition at line 93 of file choose-file.cpp.
References create_file_dialog(), parent, run(), and set_filters().
Referenced by Inkscape::UI::Dialog::choose_file(), choose_file_save(), Inkscape::Shortcuts::export_shortcuts(), extract_image(), and Inkscape::UI::Dialog::SingleExport::onBrowse().
Glib::RefPtr< Gio::File > Inkscape::choose_file_save | ( | Glib::ustring const & | title, |
Gtk::Window * | parent, | ||
Glib::ustring const & | mime_type, | ||
std::string const & | file_name, | ||
std::string & | current_folder | ||
) |
Synchronously run a Gtk::FileDialog to select a file for saving data.
mime_type | MIME type to use as a file filter in the dialog. |
file_name | Name of the initial file to show in the dialogʼs text entry. |
current_folder | Path of initial folder to show, updated to parent of selected file if any |
Definition at line 119 of file choose-file.cpp.
References choose_file_save(), and parent.
|
static |
Definition at line 37 of file booleans-subitems.cpp.
References is_path_empty(), Geom::PathVector::push_back(), and result.
Referenced by Inkscape::SubItem::operator+=().
|
static |
Definition at line 1130 of file font-lister.cpp.
References compute_distance(), and distance().
Referenced by compute_distance(), and font_description_better_match().
std::vector< std::vector< int > > Inkscape::connected_components | ( | int | size, |
std::function< bool(int, int)> const & | adj_test | ||
) |
Return the list of connected components of a graph described by an adjacency-test function.
size | The number of nodes in the graph. (Nodes are labelled from 0 to size - 1.) |
adj_test | The adjacency-test function. |
Definition at line 1162 of file geom-pathstroke.cpp.
References size.
Referenced by split_non_intersecting_paths().
void Inkscape::convert_text_to_curves | ( | SPDocument * | doc | ) |
Convert all text in the document to path, in-place.
Definition at line 501 of file path-chemistry.cpp.
References SPDocument::ensureUpToDate(), SPDocument::getRoot(), item, items, list_text_items_recursive(), sp_item_list_to_curves(), and te_update_layout_now_recursive().
Referenced by InkFileExportCmd::do_export_vector(), Inkscape::Extension::Internal::pdf_render_document_to_file(), and Inkscape::Extension::Internal::ps_print_document_to_file().
|
inline |
Definition at line 35 of file nr-style.h.
Copy generic object properties, like:
Definition at line 800 of file path-chemistry.cpp.
References ink_copy_generic_attributes(), and ink_copy_generic_children().
Referenced by Inkscape::ObjectSet::_pathBoolOp(), Inkscape::ObjectSet::combine(), item_to_paths(), sp_selected_item_to_curved_repr(), sp_selected_path_create_offset_object(), and sp_selected_path_do_offset().
Glib::RefPtr< Gtk::FileDialog > Inkscape::create_file_dialog | ( | Glib::ustring const & | title, |
Glib::ustring const & | accept_label | ||
) |
Create a Gtk::FileDialog with the given title and label for its default/accept button.
Definition at line 24 of file choose-file.cpp.
Referenced by choose_file_open(), choose_file_open_images(), choose_file_save(), and Inkscape::Extension::ParamPath::on_button_clicked().
SPObject * Inkscape::create_layer | ( | SPObject * | root, |
SPObject * | layer, | ||
LayerRelativePosition | position | ||
) |
Creates a new layer.
Advances to the next layer id indicated by the string "layerNN", then creates a new group object of that id with attribute inkscape:groupmode='layer', and finally appends the new group object to root after object layer.
Definition at line 424 of file layer-manager.cpp.
References Inkscape::XML::Node::addChild(), Inkscape::XML::Node::appendChild(), Inkscape::XML::Document::createElement(), SPDocument::getObjectById(), SPDocument::getObjectByRepr(), SPObject::getRepr(), SPDocument::getReprDoc(), last_child_layer(), LPOS_BELOW, LPOS_CHILD, Inkscape::XML::Node::parent(), root, and Inkscape::XML::Node::setAttribute().
Referenced by Inkscape::UI::Dialog::LayerPropertiesDialog::_doCreate(), Inkscape::UI::Dialog::get_or_create_layer_for_glyph(), and layer_new_above().
Cairo::RefPtr< Cairo::Surface > Inkscape::create_marker_image | ( | const Glib::ustring & | group_id, |
SPDocument * | _sandbox, | ||
Gdk::RGBA | marker_color, | ||
Geom::IntPoint | pixel_size, | ||
const char * | mname, | ||
SPDocument * | source, | ||
Inkscape::Drawing & | drawing, | ||
std::optional< guint32 > | checkerboard, | ||
bool | no_clip, | ||
double | scale, | ||
int | device_scale | ||
) |
Creates a copy of the marker named mname, determines its visible and renderable area in the bounding box, and then renders it.
This allows us to fill in preview images of each marker in the marker combobox.
Referenced by Inkscape::UI::Widget::MarkerComboBox::create_marker_image().
std::string Inkscape::debug_info | ( | ) |
Return full debug info.
Returns full debug info including:
Definition at line 117 of file inkscape-version-info.cpp.
References inkscape_version(), and os_version().
Referenced by Inkscape::Application::crash_handler(), InkscapeApplication::on_handle_local_options(), print_debug_info(), and Inkscape::UI::Dialog::show_about().
|
static |
Definition at line 46 of file drawing.cpp.
Referenced by Inkscape::Drawing::_loadPrefs().
|
static |
Calculates the closest distance from p to the segment a1-a2.
Definition at line 195 of file drawing-image.cpp.
References Geom::distance(), Geom::BezierCurveN< degree >::nearestTime(), and Geom::BezierCurve::pointAt().
Referenced by Inkscape::DrawingImage::_pickItem().
Geom::PathVector Inkscape::do_offset | ( | Geom::PathVector const & | path_in, |
double | to_offset, | ||
double | tolerance, | ||
double | miter_limit, | ||
FillRule | fillrule, | ||
Inkscape::LineJoinType | join | ||
) |
Definition at line 1348 of file geom-pathstroke.cpp.
References do_offset(), Geom::infinity(), and join().
Geom::PathVector Inkscape::do_offset | ( | Geom::PathVector const & | path_in, |
double | to_offset, | ||
double | tolerance, | ||
double | miter_limit, | ||
FillRule | fillrule, | ||
Inkscape::LineJoinType | join, | ||
Geom::Point | point, | ||
Geom::PathVector & | helper_path, | ||
Geom::PathVector & | mix_pathv_all | ||
) |
Create a user spected offset from a pathvector.
Definition at line 1229 of file geom-pathstroke.cpp.
References Geom::are_near(), Geom::PathVector::begin(), bool_op_diff, Geom::PathVector::boundsFast(), Geom::PathVector::clear(), Geom::distance(), Geom::PathVector::empty(), Geom::PathVector::end(), fill_nonZero, fill_positive, flatten(), half_outline(), Geom::infinity(), Geom::PathVector::insert(), join(), Geom::Path::nearestTime(), outline(), Geom::path_direction(), pathv_to_linear_and_cubic_beziers(), Geom::Path::pointAt(), Geom::PathVector::push_back(), and sp_pathvector_boolop().
Referenced by do_offset(), and Inkscape::LivePathEffect::LPEOffset::doEffect_path().
void Inkscape::draw_gradient | ( | const Cairo::RefPtr< Cairo::Context > & | cr, |
SPGradient * | gradient, | ||
int | x, | ||
int | width | ||
) |
Renders a preview of a gradient into the passed context.
Referenced by Inkscape::UI::Widget::GradientWithStops::draw_func().
Cairo::RefPtr< Cairo::ImageSurface > Inkscape::draw_handles_preview | ( | int | device_scale | ) |
Definition at line 13 of file handle-preview.cpp.
References buf, CANVAS_ITEM_CTRL_TYPE_ADJ_ROTATE, CANVAS_ITEM_CTRL_TYPE_ADJ_SKEW, CANVAS_ITEM_CTRL_TYPE_MARKER, CANVAS_ITEM_CTRL_TYPE_NODE_AUTO, CANVAS_ITEM_CTRL_TYPE_NODE_CUSP, CANVAS_ITEM_CTRL_TYPE_NODE_SMOOTH, CANVAS_ITEM_CTRL_TYPE_POINTER, NORMAL, Inkscape::CanvasItemBuffer::rect, root, and surface.
Referenced by Inkscape::UI::Dialog::InkscapePreferences::initPageUI().
|
static |
Definition at line 382 of file canvas-item-grid.cpp.
References buf, SP_RGBA32_A_F(), SP_RGBA32_B_F(), SP_RGBA32_G_F(), and SP_RGBA32_R_F().
Referenced by Inkscape::CanvasItemGridAxonom::_render().
|
inline |
Print an event to stdout.
Definition at line 29 of file debug.h.
References inspect_event(), MOTION, NUM_EVENTS, and Inkscape::CanvasEvent::type().
Referenced by Inkscape::UI::Tools::ToolBase::root_handler(), Inkscape::UI::Tools::TextTool::root_handler(), sp_desktop_root_handler(), sp_dt_guide_event(), Inkscape::UI::Tools::ToolBase::start_root_handler(), and Inkscape::UI::Tools::ToolBase::tool_root_handler().
|
static |
Definition at line 37 of file svg-renderer.cpp.
|
inline |
Read the extended input data from a Gdk::Event.
Definition at line 42 of file canvas-event.h.
References Inkscape::ExtendedInput::pressure.
Referenced by Inkscape::UI::Widget::CanvasGrid::_rulerMotion(), Inkscape::UI::Widget::Canvas::on_button_pressed(), Inkscape::UI::Widget::Canvas::on_motion(), and Inkscape::UI::Widget::Canvas::on_scroll().
bool Inkscape::extract_image | ( | Gtk::Window * | parent, |
SPImage * | image | ||
) |
Definition at line 33 of file save-image.cpp.
References choose_file_save(), image, parent, and save_image().
Referenced by Inkscape::UI::Dialog::DocumentResources::DocumentResources(), and Inkscape::UI::Widget::ImageProperties::ImageProperties().
|
static |
Definition at line 84 of file booleans-subitems.cpp.
References child, SPObject::children, clip(), extract_pathvectors_recursive(), item, result, and root.
Referenced by Inkscape::SubItem::build_flatten(), Inkscape::SubItem::build_mosaic(), and extract_pathvectors_recursive().
|
static |
Try to parse href into a local filename using standard methods.
Definition at line 139 of file fix-broken-links.cpp.
Referenced by findBrokenLinks(), and locateLinks().
|
static |
Walk all links in a document and create a listing of unique broken links.
Definition at line 189 of file fix-broken-links.cpp.
References extractFilepath(), SPDocument::getDocumentBase(), getHrefAttribute(), SPDocument::getResourceList(), image, reconstructFilepath(), and result.
Referenced by fixBrokenLinks().
Finds the first child of a layer.
Definition at line 335 of file layer-manager.cpp.
References SPObject::children, and is_layer().
Referenced by next_layer().
bool Inkscape::fixBrokenLinks | ( | SPDocument * | doc | ) |
Definition at line 301 of file fix-broken-links.cpp.
References Inkscape::XML::Node::attribute(), Inkscape::DocumentUndo::done(), findBrokenLinks(), SPDocument::getDocumentBase(), getHrefAttribute(), SPDocument::getObjectByRepr(), SPDocument::getResourceList(), image, locateLinks(), Inkscape::XML::Node::removeAttribute(), Inkscape::XML::Node::setAttributeOrRemoveIfEmpty(), and SPObject::updateRepr().
Referenced by InkscapeApplication::document_fix().
gboolean Inkscape::font_description_better_match | ( | PangoFontDescription * | target, |
PangoFontDescription * | old_desc, | ||
PangoFontDescription * | new_desc | ||
) |
Definition at line 1160 of file font-lister.cpp.
References compute_distance(), and font_description_better_match().
Referenced by font_description_better_match(), and Inkscape::FontLister::get_best_style_match().
std::vector< FontInfo > Inkscape::get_all_fonts | ( | ) |
Definition at line 302 of file font-discovery.cpp.
Referenced by Inkscape::FontDiscovery::connect_to_fonts().
std::shared_ptr< const std::vector< FontInfo > > Inkscape::get_all_fonts | ( | Async::Progress< double, Glib::ustring, std::vector< FontInfo > > & | progress | ) |
Definition at line 307 of file font-discovery.cpp.
References cache, calculate_font_weight(), calculate_font_width(), counter, FontFactory::create_face(), Inkscape::FontInfo::face, Inkscape::FontInfo::family_kind, Inkscape::FontInfo::ff, Inkscape::Util::EnableSingleton< FontFactory >::get(), get_font_description(), FontFactory::get_font_families(), key, load_cached_font_info(), Inkscape::FontInfo::monospaced, Inkscape::FontInfo::oblique, result, save_font_cache(), Inkscape::FontInfo::synthetic, Inkscape::FontInfo::variable_font, Inkscape::FontInfo::weight, and Inkscape::FontInfo::width.
Glib::ustring Inkscape::get_face_style | ( | const Pango::FontDescription & | desc | ) |
Definition at line 177 of file font-discovery.cpp.
Referenced by get_inkscape_fontspec().
Pango::FontDescription Inkscape::get_font_description | ( | const Glib::RefPtr< Pango::FontFamily > & | ff, |
const Glib::RefPtr< Pango::FontFace > & | face | ||
) |
Definition at line 191 of file font-discovery.cpp.
Referenced by get_all_fonts(), Inkscape::UI::Widget::get_cell_data_func(), and save_font_cache().
int Inkscape::get_font_style_order | ( | const Pango::FontDescription & | desc | ) |
Definition at line 108 of file font-discovery.cpp.
Referenced by sort_fonts_by_name().
Glib::ustring Inkscape::get_fontspec | ( | const Glib::ustring & | family, |
const Glib::ustring & | face | ||
) |
Definition at line 173 of file font-discovery.cpp.
References get_fontspec().
Glib::ustring Inkscape::get_fontspec | ( | const Glib::ustring & | family, |
const Glib::ustring & | face, | ||
const Glib::ustring & | variations | ||
) |
Definition at line 163 of file font-discovery.cpp.
Referenced by Inkscape::FontLister::fill_css(), get_fontspec(), get_inkscape_fontspec(), and Inkscape::UI::Widget::FontList::set_current_font().
Glib::ustring Inkscape::get_fontspec_without_variants | ( | const Glib::ustring & | fontspec | ) |
Definition at line 410 of file font-discovery.cpp.
Referenced by Inkscape::UI::Widget::FontList::add_font(), and Inkscape::UI::Widget::FontList::set_current_font().
|
static |
Definition at line 399 of file shortcuts.cpp.
References Inkscape::UI::Tools::get_latin_keyval_impl().
Referenced by Inkscape::Shortcuts::get_from(), Inkscape::Shortcuts::get_from(), and Inkscape::Shortcuts::get_from_event().
Glib::ustring Inkscape::get_full_font_name | ( | Glib::RefPtr< Pango::FontFamily > | ff, |
Glib::RefPtr< Pango::FontFace > | face | ||
) |
Definition at line 97 of file font-discovery.cpp.
References name.
Referenced by Inkscape::UI::Widget::get_full_name().
std::shared_ptr< dispatch_pool > Inkscape::get_global_dispatch_pool | ( | ) |
Definition at line 31 of file threading.cpp.
Referenced by Inkscape::Filters::FilterGaussian::render_cairo().
Glib::ustring Inkscape::get_inkscape_fontspec | ( | const Glib::RefPtr< Pango::FontFamily > & | ff, |
const Glib::RefPtr< Pango::FontFace > & | face, | ||
const Glib::ustring & | variations | ||
) |
Definition at line 185 of file font-discovery.cpp.
References get_face_style(), and get_fontspec().
Referenced by Inkscape::UI::Widget::FontList::add_font(), Inkscape::UI::Widget::FontList::FontList(), Inkscape::UI::Widget::FontList::get_fontspec(), and Inkscape::UI::Widget::FontList::select_font().
std::vector< SPItem * > Inkscape::get_layers_to_toggle | ( | SPObject * | layer, |
SPObject * | current_root | ||
) |
Definition at line 462 of file layer-manager.cpp.
References SPObject::children, SPObject::isAncestorOf(), and SPObject::parent.
Referenced by Inkscape::LayerManager::toggleLayerSolo(), and Inkscape::LayerManager::toggleLockOtherLayers().
|
static |
Definition at line 228 of file canvas-item-ctrl.cpp.
References Inkscape::Preferences::get(), Inkscape::Preferences::getIntLimited(), MAX_INDEX, and MIN_INDEX.
Referenced by Inkscape::CanvasItemCtrl::set_size(), and Inkscape::CanvasItemCtrl::set_size_default().
void Inkscape::getBBoxPoints | ( | Geom::OptRect const | bbox, |
std::vector< SnapCandidatePoint > * | points, | ||
bool const | isTarget, | ||
bool const | corners, | ||
bool const | edges, | ||
bool const | midpoint | ||
) |
Default version of the getBBoxPoints with default corner source types.
Definition at line 743 of file object-snapper.cpp.
References corners, edges(), getBBoxPoints(), SNAPSOURCE_BBOX_CORNER, SNAPSOURCE_BBOX_EDGE_MIDPOINT, SNAPSOURCE_BBOX_MIDPOINT, SNAPSOURCE_UNDEFINED, SNAPTARGET_BBOX_CORNER, SNAPTARGET_BBOX_EDGE_MIDPOINT, SNAPTARGET_BBOX_MIDPOINT, and SNAPTARGET_UNDEFINED.
Referenced by Inkscape::AlignmentSnapper::_collectBBoxPoints(), Inkscape::ObjectSnapper::_collectNodes(), getBBoxPoints(), Inkscape::SelTrans::grab(), and Inkscape::UI::Tools::PagesTool::grabPage().
void Inkscape::getBBoxPoints | ( | Geom::OptRect const | bbox, |
std::vector< SnapCandidatePoint > * | points, | ||
bool const | isTarget, | ||
Inkscape::SnapSourceType | corners, | ||
Inkscape::SnapTargetType | cornert, | ||
Inkscape::SnapSourceType | edges, | ||
Inkscape::SnapTargetType | edget, | ||
Inkscape::SnapSourceType | midpoints, | ||
Inkscape::SnapTargetType | midpointt | ||
) |
Definition at line 759 of file object-snapper.cpp.
std::pair< char const *, char const * > Inkscape::getHrefAttribute | ( | XML::Node const & | node | ) |
Get the 'href' or 'xlink:href' (fallback) attribute from an XML node.
Definition at line 20 of file href-attribute-helper.cpp.
References Inkscape::XML::Node::attribute(), and node.
Referenced by Inkscape::UI::Dialog::add_refs(), SPImage::description(), findBrokenLinks(), fixBrokenLinks(), Inkscape::UI::Dialog::has_external_ref(), image_edit(), Inkscape::UI::Dialog::CloneTiler::is_a_clone_of(), SPObject::readAttr(), rebase_image_href(), Inkscape::ObjectSet::relink(), SPImage::update(), Inkscape::UI::Widget::ImageProperties::update(), SPFilter::write(), SPTagUse::write(), SPGradient::write(), and SPUse::write().
std::vector< Glib::RefPtr< Gtk::RecentInfo > > Inkscape::getInkscapeRecentFiles | ( | unsigned | max_files | ) |
Generate a vector of recently used Inkscape files.
Definition at line 26 of file recent-files.cpp.
Referenced by build_menu(), and Inkscape::UI::Dialog::StartScreen::enlist_recent_files().
std::map< Glib::ustring, std::string > Inkscape::getShortenedPathMap | ( | std::vector< Glib::RefPtr< Gtk::RecentInfo > > const & | recent_files | ) |
Generate the shortened labeles for a list of recently used files.
recent_files must not contain entries with duplicate uri display values.
Definition at line 80 of file recent-files.cpp.
References size, and splitPath().
Referenced by build_menu(), and Inkscape::UI::Dialog::StartScreen::enlist_recent_files().
Geom::Path Inkscape::half_outline | ( | Geom::Path const & | input, |
double | width, | ||
double | miter, | ||
LineJoinType | join = JOIN_BEVEL , |
||
double | tolerance = -1 |
||
) |
Offset the input path by width.
Joins may behave oddly if the width is negative.
[in] | input | Input path. |
[in] | width | Amount to offset. |
[in] | miter | Miter limit. Only used when join is one of JOIN_MITER, JOIN_MITER_CLIP, and JOIN_EXTRAPOLATE. |
[in] | join | Line join type used during offset. Member of LineJoinType enum. |
[in] | tolerance | Tolerance, values smaller than 0 lead to automatic tolerance depending on width. |
Definition at line 1046 of file geom-pathstroke.cpp.
References Geom::Path::append(), Geom::Path::back(), Geom::Path::back_closed(), Geom::Path::begin(), Geom::Path::clear(), Geom::Path::close(), Geom::Path::closed(), Geom::Path::erase(), Geom::Path::erase_last(), Geom::Curve::finalPoint(), Geom::Path::front(), Geom::Path::initialPoint(), Geom::Curve::initialPoint(), join(), outline_join(), Geom::Path::setStitching(), Geom::Path::size(), Geom::Path::size_default(), Geom::Path::size_open(), Geom::Path::start(), start, and width.
Referenced by do_offset(), Inkscape::LivePathEffect::LPETaperStroke::doBeforeEffect(), and outline().
bool Inkscape::have_viable_layer | ( | SPDesktop * | desktop, |
MessageContext * | message | ||
) |
Check to see if the current layer is both unhidden and unlocked.
If not, set a message about it on the given context.
desktop | Desktop. |
message | Message context to put messages on. |
Definition at line 42 of file context-fns.cpp.
References Inkscape::LayerManager::currentLayer(), desktop, ERROR_MESSAGE, Inkscape::MessageContext::flash(), SPDesktop::itemIsHidden(), and SPDesktop::layerManager().
Referenced by Inkscape::UI::Tools::ConnectorTool::_handleButtonPress(), Inkscape::UI::Tools::PenTool::_handleButtonPress(), Inkscape::UI::Tools::PencilTool::_handleButtonPress(), Inkscape::UI::Tools::Box3dTool::drag(), Inkscape::UI::Tools::SpiralTool::drag(), Inkscape::UI::Tools::ArcTool::drag(), Inkscape::UI::Tools::RectTool::drag(), Inkscape::UI::Tools::StarTool::drag(), Inkscape::UI::Tools::SprayTool::root_handler(), Inkscape::UI::Tools::TextTool::root_handler(), and Inkscape::UI::Tools::TweakTool::root_handler().
bool Inkscape::have_viable_layer | ( | SPDesktop * | desktop, |
MessageStack * | message | ||
) |
Check to see if the current layer is both unhidden and unlocked.
If not, set a message about it on the given context.
desktop | Desktop. |
message | Message context to put messages on. |
Definition at line 71 of file context-fns.cpp.
References Inkscape::LayerManager::currentLayer(), desktop, Inkscape::MessageStack::flash(), SPDesktop::itemIsHidden(), SPDesktop::layerManager(), and WARNING_MESSAGE.
|
inline |
Definition at line 366 of file canvas-event.h.
References Inkscape::CanvasEvent::modifiers, and state_held_alt().
Referenced by Inkscape::UI::PathManipulator::_handleClicked(), Inkscape::UI::ControlPointSelection::_keyboardMove(), Inkscape::UI::ControlPointSelection::_keyboardRotate(), Inkscape::UI::ControlPointSelection::_keyboardScale(), Inkscape::UI::PathManipulator::_nodeClicked(), Inkscape::UI::CurveDragPoint::clicked(), Inkscape::UI::Handle::clicked(), Inkscape::UI::CurveDragPoint::doubleclicked(), Inkscape::UI::Handle::dragged(), Inkscape::UI::Node::dragged(), Inkscape::UI::MultiPathManipulator::event(), and Inkscape::UI::Tools::NodeTool::root_handler().
|
inline |
Definition at line 370 of file canvas-event.h.
References Inkscape::CanvasEvent::modifiers, and state_held_any_modifiers().
Referenced by Inkscape::UI::ControlPointSelection::event().
|
inline |
Definition at line 374 of file canvas-event.h.
References Inkscape::CanvasEvent::modifiers.
|
inline |
Definition at line 365 of file canvas-event.h.
References Inkscape::CanvasEvent::modifiers, and state_held_ctrl().
Referenced by Inkscape::UI::ControlPointSelection::_keyboardMove(), Inkscape::UI::PathManipulator::_nodeClicked(), Inkscape::UI::CurveDragPoint::clicked(), Inkscape::UI::Handle::clicked(), Inkscape::UI::CurveDragPoint::doubleclicked(), Inkscape::UI::Handle::dragged(), Inkscape::UI::Node::dragged(), Inkscape::UI::MultiPathManipulator::event(), Inkscape::UI::Tools::NodeTool::root_handler(), and Inkscape::UI::Tools::NodeTool::select_area().
|
inline |
Definition at line 371 of file canvas-event.h.
References Inkscape::CanvasEvent::modifiers, and state_held_no_modifiers().
Referenced by Inkscape::UI::ControlPointSelection::_pointClicked().
|
inline |
Definition at line 369 of file canvas-event.h.
References Inkscape::CanvasEvent::modifiers, and state_held_only_alt().
Referenced by Inkscape::UI::ControlPointSelection::_pointDragged(), and Inkscape::UI::MultiPathManipulator::event().
|
inline |
Definition at line 368 of file canvas-event.h.
References Inkscape::CanvasEvent::modifiers, and state_held_only_ctrl().
Referenced by Inkscape::UI::Tools::NodeTool::root_handler().
|
inline |
Definition at line 367 of file canvas-event.h.
References Inkscape::CanvasEvent::modifiers, and state_held_only_shift().
Referenced by Inkscape::UI::Handle::_eventHandler(), and Inkscape::UI::MultiPathManipulator::event().
|
inline |
Definition at line 364 of file canvas-event.h.
References Inkscape::CanvasEvent::modifiers, and state_held_shift().
Referenced by Inkscape::UI::ControlPointSelection::_keyboardMove(), Inkscape::UI::CurveDragPoint::clicked(), Inkscape::UI::SelectableControlPoint::clicked(), Inkscape::UI::CurveDragPoint::dragged(), Inkscape::UI::Handle::dragged(), Inkscape::UI::Node::dragged(), Inkscape::UI::ControlPointSelection::event(), Inkscape::UI::MultiPathManipulator::event(), Inkscape::UI::Node::grabbed(), Inkscape::UI::Tools::NodeTool::select_area(), and Inkscape::UI::Tools::NodeTool::select_point().
void Inkscape::initialize_gettext | ( | ) |
does all required gettext initialization and takes care of the respective locale directory paths
Definition at line 30 of file gettext.cpp.
References get_inkscape_datadir().
Referenced by InkscapeApplication::InkscapeApplication(), and InkviewApplication::InkviewApplication().
std::unique_ptr< SPDocument > Inkscape::ink_markers_preview_doc | ( | const Glib::ustring & | group_id | ) |
Returns a new document containing default start, mid, and end markers.
Note 1: group IDs are matched against "group_id" to render correct preview object. Note 2: paths/lines are kept outside of groups, so they don't inflate visible bounds Note 3: invisible rects inside groups keep visual bounds from getting too small, so we can see relative marker sizes
Referenced by Inkscape::UI::Widget::MarkerComboBox::MarkerComboBox().
unsigned short int Inkscape::inkscape_build_year | ( | ) |
Return build year as 4 digit.
Definition at line 151 of file inkscape-version-info.cpp.
References build_year.
Referenced by Inkscape::UI::Dialog::show_about().
std::string Inkscape::inkscape_revision | ( | ) |
Return Inkscape repository revision string.
Definition at line 51 of file inkscape-version-info.cpp.
References revision_string.
Referenced by add_actions_base(), and InkscapeApplication::InkscapeApplication().
std::string Inkscape::inkscape_version | ( | ) |
Return Inkscape version string.
Returns the Inkscape version string including program name.
Definition at line 42 of file inkscape-version-info.cpp.
References version_string.
Referenced by debug_info(), InkscapeApplication::on_handle_local_options(), print_inkscape_version(), Inkscape::UI::Dialog::show_about(), and Inkscape::UI::Dialog::StartScreen::StartScreen().
void Inkscape::inspect_event | ( | E && | event, |
Fs... | funcs | ||
) |
Perform pattern-matching on a CanvasEvent.
This function takes an event and a list of function objects, and passes the event to the function object whose argument type best matches the dynamic type of the event.
Definition at line 290 of file canvas-event.h.
References BUTTON_PRESS, BUTTON_RELEASE, ENTER, KEY_PRESS, KEY_RELEASE, LEAVE, MOTION, and SCROLL.
Referenced by Inkscape::UI::ControlPoint::_eventHandler(), Inkscape::UI::Handle::_eventHandler(), Inkscape::UI::Node::_eventHandler(), Inkscape::UI::Tools::ToolBase::_filterEventForSnapping(), Inkscape::UI::Tools::cc_generic_knot_handler(), dump_event(), Inkscape::UI::Tools::endpt_handler(), Inkscape::UI::ModifierTracker::event(), Inkscape::UI::View::SVGViewWidget::event(), Inkscape::UI::MultiPathManipulator::event(), Inkscape::UI::PathManipulator::event(), Inkscape::CanvasItemDrawing::handle_event(), Inkscape::UI::Tools::ArcTool::item_handler(), Inkscape::UI::Tools::ConnectorTool::item_handler(), Inkscape::UI::Tools::FloodTool::item_handler(), Inkscape::UI::Tools::LpeTool::item_handler(), Inkscape::UI::Tools::NodeTool::item_handler(), Inkscape::UI::Tools::PenTool::item_handler(), Inkscape::UI::Tools::RectTool::item_handler(), Inkscape::UI::Tools::SelectTool::item_handler(), Inkscape::UI::Tools::TextTool::item_handler(), Inkscape::UI::Tools::ToolBase::menu_popup(), Inkscape::UI::Tools::PagesTool::menu_popup(), Inkscape::UI::Tools::ToolBase::root_handler(), Inkscape::UI::Tools::EraserTool::root_handler(), Inkscape::UI::Tools::ArcTool::root_handler(), Inkscape::UI::Tools::InteractiveBooleansTool::root_handler(), Inkscape::UI::Tools::Box3dTool::root_handler(), Inkscape::UI::Tools::CalligraphicTool::root_handler(), Inkscape::UI::Tools::ConnectorTool::root_handler(), Inkscape::UI::Tools::DropperTool::root_handler(), Inkscape::UI::Tools::FloodTool::root_handler(), Inkscape::UI::Tools::FreehandBase::root_handler(), Inkscape::UI::Tools::GradientTool::root_handler(), Inkscape::UI::Tools::LpeTool::root_handler(), Inkscape::UI::Tools::MarkerTool::root_handler(), Inkscape::UI::Tools::MeasureTool::root_handler(), Inkscape::UI::Tools::MeshTool::root_handler(), Inkscape::UI::Tools::NodeTool::root_handler(), Inkscape::UI::Tools::PagesTool::root_handler(), Inkscape::UI::Tools::PenTool::root_handler(), Inkscape::UI::Tools::PencilTool::root_handler(), Inkscape::UI::Tools::RectTool::root_handler(), Inkscape::UI::Tools::SelectTool::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(), Inkscape::UI::Tools::ObjectPickerTool::root_handler(), and Inkscape::UI::Tools::ToolBase::set_on_buttons().
|
static |
Definition at line 78 of file canvas-item-grid.cpp.
References Geom::GenericRect< C >::corner(), Geom::intersection(), Geom::Line::pointAt(), and Geom::BezierCurve::pointAt().
Referenced by Inkscape::CanvasItemGridXY::_render().
|
static |
Definition at line 295 of file layer-manager.cpp.
References SPGroup::LAYER.
Referenced by first_descendant_layer(), last_child_layer(), next_sibling_layer(), previous_sibling_layer(), and Inkscape::UI::Dialog::ExportPreview::setItem().
bool Inkscape::is_path_empty | ( | Geom::Path const & | path | ) |
Check for an empty path.
Return true if the given path has close to zero area.
Definition at line 1191 of file geom-pathstroke.cpp.
References Geom::centroid(), and Geom::Path::toPwSb().
Referenced by Inkscape::SubItem::build_mosaic(), clean_pathvector(), and split_non_intersecting_paths().
|
inline |
Definition at line 19 of file style-utils.h.
References QUERY_STYLE_MULTIPLE_DIFFERENT, and QUERY_STYLE_NOTHING.
Referenced by Inkscape::UI::Toolbar::TextToolbar::script_changed(), and Inkscape::UI::Widget::StrokeStyle::updateLine().
|
static |
Definition at line 671 of file shortcuts.cpp.
References result.
Referenced by Inkscape::Extension::Internal::CairoRenderContext::_setStrokeStyle(), Inkscape::Shortcuts::_write(), do_offset(), do_offset(), Inkscape::LivePathEffect::LPEOffset::doEffect_path(), Inkscape::LivePathEffect::LPEDynastroke::doEffect_pwd2(), half_outline(), Inkscape::UI::MultiPathManipulator::joinNodes(), Inkscape::UI::MultiPathManipulator::joinSegments(), outline(), outline_join(), and Inkscape::DrawingContext::setLineJoin().
Finds the last (topmost) child of a layer.
Definition at line 351 of file layer-manager.cpp.
References SPObject::children, and is_layer().
Referenced by create_layer(), and previous_layer().
Definition at line 357 of file layer-manager.cpp.
References SPObject::parent, previous_sibling_layer(), result, and root.
Referenced by previous_layer().
std::unordered_map< std::string, FontInfo > Inkscape::load_cached_font_info | ( | ) |
Definition at line 247 of file font-discovery.cpp.
References cache_header, cache_version, Inkscape::FontInfo::family_kind, font_cache, Monospace, Inkscape::FontInfo::monospaced, Oblique, Inkscape::FontInfo::oblique, Inkscape::IO::Resource::profile_path(), Synthetic, Inkscape::FontInfo::synthetic, Variable, Inkscape::FontInfo::variable_font, weight, Inkscape::FontInfo::weight, width, and Inkscape::FontInfo::width.
Referenced by get_all_fonts().
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 | ||
) |
Loads an SVG cursor from the specified file name.
Returns pointer to cursor (or null cursor if we could not load a cursor).
Definition at line 66 of file cursor-utils.cpp.
References css, end, Inkscape::Preferences::get(), Inkscape::Util::EnableSingleton< CursorDocCache, Util::Depends< FontFactory > >::get(), Inkscape::Preferences::getBool(), Inkscape::Colors::Color::getOpacity(), Inkscape::Preferences::getString(), ink_file_open(), root, scale, Inkscape::Colors::Color::setOpacity(), sp_generate_internal_bitmap(), sp_repr_css_attr(), sp_repr_css_attr_unref(), sp_repr_css_set_property_double(), sp_repr_css_set_property_string(), Inkscape::Colors::Color::toRGBA(), Inkscape::Colors::Color::toString(), and w.
Referenced by Inkscape::UI::Tools::ToolBase::get_cursor(), and set_svg_cursor().
|
static |
Definition at line 184 of file preferences.cpp.
References len, msg, Inkscape::XML::Node::name(), Inkscape::GC::release(), Inkscape::XML::Node::root(), and sp_repr_read_mem().
Referenced by Inkscape::Preferences::_load().
|
static |
Resolve broken links as a whole and return a map for those that can be found.
Note: this will allow for future enhancements including relinking to new locations with the most broken files found, etc.
Definition at line 227 of file fix-broken-links.cpp.
References extractFilepath(), optimizePath(), reconstructFilepath(), result, and searchUpwards().
Referenced by fixBrokenLinks().
|
static |
Definition at line 229 of file preferences.cpp.
References Inkscape::XML::Node::mergeFrom(), and Inkscape::XML::Node::root().
Referenced by Inkscape::Preferences::_load().
|
inline |
Definition at line 342 of file canvas-event.h.
References mod_alt(), and Inkscape::CanvasEvent::modifiers.
|
inline |
Definition at line 335 of file canvas-event.h.
Referenced by Inkscape::UI::Tools::PenTool::_handleKeyPress(), Inkscape::UI::Tools::ToolBase::_keyboardMove(), mod_alt(), Inkscape::UI::Tools::Box3dTool::root_handler(), Inkscape::UI::Tools::TextTool::root_handler(), and Inkscape::UI::Tools::sp_event_show_modifier_tip().
|
inline |
Definition at line 345 of file canvas-event.h.
References mod_alt_only(), and Inkscape::CanvasEvent::modifiers.
|
inline |
Definition at line 338 of file canvas-event.h.
References INK_GDK_MODIFIER_MASK.
Referenced by mod_alt_only(), Inkscape::UI::Tools::ArcTool::root_handler(), Inkscape::UI::Tools::Box3dTool::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(), and Inkscape::UI::Tools::TweakTool::root_handler().
|
inline |
Definition at line 341 of file canvas-event.h.
References mod_ctrl(), and Inkscape::CanvasEvent::modifiers.
|
inline |
Definition at line 334 of file canvas-event.h.
Referenced by Inkscape::UI::Tools::PenTool::_handleKeyPress(), Inkscape::UI::Tools::ToolBase::_keyboardMove(), mod_ctrl(), Inkscape::UI::Tools::TextTool::root_handler(), and Inkscape::UI::Tools::sp_event_show_modifier_tip().
|
inline |
Definition at line 344 of file canvas-event.h.
References mod_ctrl_only(), and Inkscape::CanvasEvent::modifiers.
|
inline |
Definition at line 337 of file canvas-event.h.
References INK_GDK_MODIFIER_MASK.
Referenced by mod_ctrl_only(), Inkscape::UI::Tools::ArcTool::root_handler(), Inkscape::UI::Tools::Box3dTool::root_handler(), Inkscape::UI::Tools::DropperTool::root_handler(), Inkscape::UI::Tools::FreehandBase::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().
|
inline |
Definition at line 340 of file canvas-event.h.
References mod_shift(), and Inkscape::CanvasEvent::modifiers.
|
inline |
Definition at line 333 of file canvas-event.h.
Referenced by Inkscape::UI::Tools::PenTool::_handleKeyPress(), Inkscape::UI::Tools::ToolBase::_keyboardMove(), mod_shift(), Inkscape::UI::Tools::SprayTool::root_handler(), Inkscape::UI::Tools::TextTool::root_handler(), Inkscape::UI::Tools::TweakTool::root_handler(), and Inkscape::UI::Tools::sp_event_show_modifier_tip().
|
inline |
Definition at line 343 of file canvas-event.h.
References mod_shift_only(), and Inkscape::CanvasEvent::modifiers.
|
inline |
Definition at line 336 of file canvas-event.h.
References INK_GDK_MODIFIER_MASK.
Referenced by Inkscape::UI::Tools::PenTool::_handleKeyPress(), mod_shift_only(), Inkscape::UI::Tools::Box3dTool::root_handler(), Inkscape::UI::Tools::RectTool::root_handler(), Inkscape::UI::Tools::SprayTool::root_handler(), and Inkscape::UI::Tools::TweakTool::root_handler().
Finds the next layer under root, relative to layer in depth-first order.
Definition at line 377 of file layer-manager.cpp.
References first_descendant_layer(), next_sibling_layer(), SPObject::parent, result, and root.
Referenced by layer_delete(), layer_previous(), and Inkscape::ObjectSet::toNextLayer().
Finds the next sibling layer for a layer.
Definition at line 311 of file layer-manager.cpp.
References SPObject::children, is_layer(), and SPObject::parent.
Referenced by next_layer().
std::string Inkscape::optimizePath | ( | std::string const & | path, |
std::string const & | base, | ||
unsigned int | parents | ||
) |
Convert an absolute path into a relative one if possible to do in the given number of parent steps.
All input strings must have the same encoding, either UTF8 or platform-native encoding (see Glib::filename_to_utf8). The return value has the same encoding as the input.
Definition at line 67 of file fix-broken-links.cpp.
References result, and splitPath().
Referenced by locateLinks(), Inkscape::UI::Dialog::BatchExport::setBatchPath(), and SPObject::setExportFilename().
std::string Inkscape::os_version | ( | ) |
Return OS version string.
Returns the OS version string including OS name.
Relies on glib's 'g_get_os_info'. Might be undefined on some OSs. "(unknown)" is returned in this case.
Definition at line 84 of file inkscape-version-info.cpp.
References _run().
Referenced by debug_info().
Geom::PathVector Inkscape::outline | ( | Geom::Path const & | input, |
double | width, | ||
double | miter, | ||
LineJoinType | join = JOIN_BEVEL , |
||
LineCapType | cap = BUTT_FLAT , |
||
double | tolerance = -1 |
||
) |
Strokes the path given by input.
Joins may behave oddly if the width is negative.
[in] | input | Input path. |
[in] | width | Stroke width. |
[in] | miter | Miter limit. Only used when join is one of JOIN_MITER, JOIN_MITER_CLIP, and JOIN_EXTRAPOLATE. |
[in] | join | Line join type used during offset. Member of LineJoinType enum. |
[in] | cap | Line cap type used during stroking. Member of LineCapType enum. |
[in] | tolerance | Tolerance, values smaller than 0 lead to automatic tolerance depending on width. |
Definition at line 996 of file geom-pathstroke.cpp.
References Geom::PathIteratorSink< OutputIterator >::append(), BUTT_PEAK, BUTT_ROUND, BUTT_SQUARE, Geom::Path::closed(), Geom::PathIteratorSink< OutputIterator >::closePath(), Geom::PathIteratorSink< OutputIterator >::flush(), half_outline(), Geom::Path::initialPoint(), join(), Geom::PathIteratorSink< OutputIterator >::moveTo(), Geom::PathBuilder::peek(), Geom::Path::reversed(), Geom::Path::size(), and width.
Referenced by Inkscape::DrawingItem::_markForRendering(), Inkscape::DrawingImage::_pickItem(), Inkscape::DrawingShape::_pickItem(), Inkscape::DrawingGlyphs::_pickItem(), Inkscape::DrawingImage::_renderItem(), Inkscape::DrawingShape::_renderItem(), Inkscape::DrawingText::_renderItem(), Inkscape::DrawingGroup::_updateItem(), Inkscape::UI::Widget::Graphics::calc_splitview_cliprects(), do_offset(), Inkscape::LivePathEffect::LPEJoinType::doEffect_path(), Inkscape::DrawingItem::pick(), Inkscape::DrawingItem::render(), Inkscape::DrawingItem::update(), and Inkscape::CanvasPage::update().
void Inkscape::outline_join | ( | Geom::Path & | res, |
Geom::Path const & | outgoing, | ||
Geom::Point | in_tang, | ||
Geom::Point | out_tang, | ||
double | width, | ||
double | miter, | ||
LineJoinType | join | ||
) |
Builds a join on the provided path.
Joins may behave oddly if the width is negative.
[in,out] | res | The path to build the join on. The outgoing path (or a portion thereof) will be appended after the join is created. Previous segments may be modified as an optimization, beware! |
[in] | outgoing | The segment to append on the outgoing portion of the join. |
[in] | in_tang | The end tangent to consider on the input path. |
[in] | out_tang | The begin tangent to consider on the output path. |
[in] | width | |
[in] | miter | |
[in] | join |
Definition at line 1117 of file geom-pathstroke.cpp.
References Geom::Path::append(), Geom::are_near(), Geom::cross(), Geom::Path::finalPoint(), Geom::Path::front(), Geom::Path::initialPoint(), Geom::Curve::initialPoint(), join(), JOIN_BEVEL, JOIN_EXTRAPOLATE, JOIN_EXTRAPOLATE1, JOIN_EXTRAPOLATE2, JOIN_EXTRAPOLATE3, JOIN_MITER_CLIP, JOIN_ROUND, Geom::Path::setFinal(), Geom::Path::size(), and width.
Referenced by half_outline().
Gdk::ModifierType Inkscape::parse_modifier_string | ( | char const *const | modifiers_string | ) |
Definition at line 685 of file shortcuts.cpp.
Referenced by Inkscape::Shortcuts::_read().
std::set< unsigned > Inkscape::parseIntRange | ( | std::string const & | input, |
unsigned | start = 1 , |
||
unsigned | end = 0 |
||
) |
Parse integer ranges out of a string.
input | - A string containing number ranges that can either be comma separated or dash separated for non and continuous ranges. |
start | - Optional first number in the acceptable range. |
end | - The last number in the acceptable range. |
Definition at line 49 of file parse-int-range.cpp.
References end, parseIntRange(), and start.
Referenced by Inkscape::Extension::Internal::PdfImportDialog::_onPageNumberChanged(), InkFileExportCmd::do_export_png(), InkFileExportCmd::do_export_vector(), Inkscape::PageManager::getPages(), Inkscape::Extension::Internal::PdfInput::open(), and parseIntRange().
Finds the previous layer under root, relative to layer in depth-first order.
Definition at line 397 of file layer-manager.cpp.
References child, last_child_layer(), last_elder_layer(), SPObject::parent, previous_sibling_layer(), result, and root.
Referenced by Inkscape::LayerManager::getAllLayers(), layer_delete(), layer_next(), Inkscape::LayerManager::toggleHideAllLayers(), Inkscape::LayerManager::toggleLockAllLayers(), and Inkscape::ObjectSet::toPrevLayer().
Finds the previous sibling layer for a layer.
Definition at line 324 of file layer-manager.cpp.
References SPObject::children, is_layer(), SPObject::parent, and start.
Referenced by last_elder_layer(), and previous_layer().
void Inkscape::propagate_antialias | ( | SPShapeRendering | shape_rendering, |
DrawingItem & | item | ||
) |
Propagate element's shape rendering attribute into internal anti-aliasing setting of DrawingItem.
Definition at line 1256 of file drawing-item.cpp.
References Best, Fast, Good, item, None, SP_CSS_SHAPE_RENDERING_AUTO, SP_CSS_SHAPE_RENDERING_CRISPEDGES, SP_CSS_SHAPE_RENDERING_GEOMETRICPRECISION, and SP_CSS_SHAPE_RENDERING_OPTIMIZESPEED.
Referenced by SPShape::show().
|
static |
Try to parse href into a local filename using some non-standard methods.
This means the href is likely invalid and should be rewritten.
Definition at line 169 of file fix-broken-links.cpp.
Referenced by findBrokenLinks(), and locateLinks().
char const * Inkscape::refX_named_to_percent | ( | char const * | str | ) |
Definition at line 641 of file svg-length.cpp.
Referenced by SPSymbol::set().
char const * Inkscape::refY_named_to_percent | ( | char const * | str | ) |
Definition at line 655 of file svg-length.cpp.
Referenced by SPSymbol::set().
|
static |
Definition at line 36 of file drawing.cpp.
References mode, NO_FILTERS, OUTLINE, Inkscape::DrawingItem::RENDER_DEFAULT, Inkscape::DrawingItem::RENDER_NO_FILTERS, Inkscape::DrawingItem::RENDER_OUTLINE, Inkscape::DrawingItem::RENDER_VISIBLE_HAIRLINES, and VISIBLE_HAIRLINES.
Referenced by Inkscape::Drawing::render().
|
static |
Definition at line 56 of file choose-file.cpp.
References parent, result, and start.
Referenced by choose_file_open(), and choose_file_save().
void Inkscape::save_font_cache | ( | const std::vector< FontInfo > & | fonts | ) |
Definition at line 212 of file font-discovery.cpp.
References cache_header, cache_version, font_cache, get_font_description(), Monospace, Normal, Oblique, Inkscape::IO::Resource::profile_path(), Synthetic, Variable, weight, and width.
Referenced by get_all_fonts().
bool Inkscape::save_image | ( | const std::string & | fname, |
const Inkscape::Pixbuf * | pixbuf | ||
) |
|
static |
Definition at line 363 of file fix-broken-links.cpp.
References current, and splitPath().
Referenced by locateLinks().
void Inkscape::set_filter | ( | Gtk::FileDialog & | file_dialog, |
Glib::RefPtr< Gtk::FileFilter > const & | filter | ||
) |
Set the available filters & the default filter, to the single filter passed.
Definition at line 42 of file choose-file.cpp.
References set_filters().
void Inkscape::set_filters | ( | Gtk::FileDialog & | file_dialog, |
Glib::RefPtr< Gio::ListStore< Gtk::FileFilter > > const & | filters | ||
) |
Set available filters to a given list, & default to its 1st filter (if any).
Definition at line 33 of file choose-file.cpp.
Referenced by choose_file_open(), choose_file_open_images(), choose_file_save(), Inkscape::Extension::ParamPath::on_button_clicked(), and set_filter().
void Inkscape::set_num_dispatch_threads | ( | int | num_dispatch_threads | ) |
Definition at line 26 of file threading.cpp.
Referenced by Inkscape::Drawing::_loadPrefs().
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.
Definition at line 250 of file cursor-utils.cpp.
References load_svg_cursor().
Referenced by Inkscape::UI::Widget::RotateableSwatch::do_motion(), and Inkscape::UI::Tools::DropperTool::root_handler().
void Inkscape::setHrefAttribute | ( | XML::Node & | node, |
Util::const_char_ptr | value | ||
) |
If the 'href' attribute already exists for the given node, then set a new value for it.
Otherwise set the value for 'xlink:href'.
Definition at line 37 of file href-attribute-helper.cpp.
References Inkscape::XML::Node::attribute(), node, and Inkscape::XML::Node::setAttribute().
Referenced by SPPattern::_chain(), SPHatch::clone_if_necessary(), Inkscape::ColorProfile::createFromProfile(), Inkscape::Extension::Internal::Bitmap::ImageMagick::effect(), sp_embed_image(), sp_embed_svg(), sp_gradient_repr_set_link(), SPTRef::write(), Inkscape::ColorProfile::write(), SPTextPath::write(), SPAnchor::write(), and SPImage::write().
|
static |
Definition at line 71 of file canvas-item-grid.cpp.
References Geom::cross(), Geom::Line::initialPoint(), and Geom::Line::versor().
Referenced by Inkscape::CanvasItemGridXY::_render().
Geom::Rect Inkscape::snap_rectangular_box | ( | SPDesktop const * | desktop, |
SPItem * | item, | ||
Geom::Point const & | pt, | ||
Geom::Point const & | center, | ||
int | state | ||
) |
Definition at line 91 of file context-fns.cpp.
References delta, desktop, SPDesktop::dt2doc(), floor(), SPDesktop::getNamedView(), Inkscape::SnappedPoint::getPoint(), Inkscape::SnappedPoint::getSnapDistance(), SPDesktop::getSnapIndicator(), Inkscape::SnappedPoint::getSnapped(), goldenratio, item, MAX, midpt_1_goldenratio, midpt_goldenratio_2, MIN, Inkscape::Display::SnapIndicator::remove_snaptarget(), Inkscape::Display::SnapIndicator::set_new_snaptarget(), SnapManager::setup(), sign(), SPNamedView::snap_manager, SNAPSOURCE_NODE_HANDLE, Geom::X, and Geom::Y.
Referenced by Inkscape::UI::Tools::ArcTool::drag(), and Inkscape::UI::Tools::RectTool::drag().
Definition at line 140 of file font-discovery.cpp.
References by_name, by_weight, by_width, end, order, sort_fonts_by_name(), Inkscape::FontInfo::weight, and Inkscape::FontInfo::width.
Referenced by Inkscape::UI::Widget::FontList::sort_fonts().
void Inkscape::sort_fonts_by_name | ( | std::vector< FontInfo > & | fonts, |
bool | sans_first | ||
) |
Definition at line 117 of file font-discovery.cpp.
References end, Inkscape::FontInfo::face, Inkscape::FontInfo::ff, get_font_style_order(), and Inkscape::FontInfo::synthetic.
Referenced by sort_fonts().
|
static |
Definition at line 116 of file booleans-subitems.cpp.
References fill_nonZero, fill_oddEven, and SP_WIND_RULE_NONZERO.
Referenced by Inkscape::SubItem::build_flatten().
const EnumDataConverter< SPBlendMode > Inkscape::SPBlendModeConverter | ( | SPBlendModeData | , |
SP_CSS_BLEND_COUNT | |||
) |
std::vector< Geom::PathVector > Inkscape::split_non_intersecting_paths | ( | Geom::PathVector && | paths, |
bool | remove_empty = false |
||
) |
Split a collection of paths into connected components.
Two paths are viewed as connected if they overlap.
Definition at line 1199 of file geom-pathstroke.cpp.
References connected_components(), is_path_empty(), paths, Geom::PathVector::push_back(), and result.
Referenced by SPCurve::split_non_overlapping().
std::vector< std::string > Inkscape::splitPath | ( | std::string const & | path | ) |
Definition at line 34 of file fix-broken-links.cpp.
Referenced by getShortenedPathMap(), optimizePath(), and searchUpwards().
|
inline |
Definition at line 354 of file canvas-event.h.
Referenced by Inkscape::UI::CurveDragPoint::_getTip(), Inkscape::UI::Handle::_getTip(), Inkscape::UI::Node::_getTip(), and held_alt().
|
inline |
Definition at line 358 of file canvas-event.h.
References INK_GDK_MODIFIER_MASK.
Referenced by held_any_modifiers(), and state_held_no_modifiers().
|
inline |
Definition at line 362 of file canvas-event.h.
|
inline |
Definition at line 353 of file canvas-event.h.
Referenced by Inkscape::UI::CurveDragPoint::_getTip(), Inkscape::UI::Handle::_getTip(), Inkscape::UI::Node::_getTip(), and held_ctrl().
|
inline |
Definition at line 359 of file canvas-event.h.
References state_held_any_modifiers().
Referenced by held_no_modifiers().
|
inline |
Definition at line 357 of file canvas-event.h.
References INK_GDK_MODIFIER_MASK.
Referenced by held_only_alt().
|
inline |
Definition at line 356 of file canvas-event.h.
References INK_GDK_MODIFIER_MASK.
Referenced by Inkscape::UI::Tools::PencilTool::_handleKeyPress(), and held_only_ctrl().
|
inline |
Definition at line 355 of file canvas-event.h.
References INK_GDK_MODIFIER_MASK.
Referenced by Inkscape::UI::Tools::PencilTool::_handleKeyPress(), and held_only_shift().
|
inline |
Definition at line 352 of file canvas-event.h.
Referenced by Inkscape::UI::CurveDragPoint::_getTip(), Inkscape::UI::Handle::_getTip(), Inkscape::UI::Node::_getTip(), held_shift(), and Inkscape::UI::Tools::NodeTool::update_tip().
|
static |
Return true if the given URI string contains characters that need escaping.
Note: It does not check if valid characters appear in invalid context (e.g. '' not followed by two hex digits).
Definition at line 35 of file uri.cpp.
References URI_ALLOWED_NON_ALNUM.
std::string Inkscape::uri_to_iri | ( | const char * | uri | ) |
Unescape the UTF-8 parts of the given URI.
Does not decode non-UTF-8 escape sequences (e.g. reserved ASCII characters). Does not do any IDN (internationalized domain name) decoding.
uri
Definition at line 427 of file uri.cpp.
References uri_unescape_utf8_codepoint().
Referenced by rebase_image_href().
|
static |
If s
starts with a "%XX" triplet, return its byte value, 0 otherwise.
Definition at line 371 of file uri.cpp.
Referenced by uri_unescape_utf8_codepoint().
|
static |
If s
starts with a percent-escaped UTF-8 sequence, unescape one code point and store it in out
variable.
Do nothing and return 0 if s
doesn't start with UTF-8.
[in] | s | percent-escaped string |
[out] | out | out-buffer, must have at least size 5 |
s
Definition at line 393 of file uri.cpp.
References uri_unescape_triplet().
Referenced by uri_to_iri().
Inkscape::VariantVisitor | ( | Fs... | ) | -> VariantVisitor< Fs... > |
|
static |
Definition at line 391 of file canvas-item-grid.cpp.
References buf, SP_RGBA32_A_F(), SP_RGBA32_B_F(), SP_RGBA32_G_F(), and SP_RGBA32_R_F().
Referenced by Inkscape::CanvasItemGridAxonom::_render().
|
extern |
four digit year of build
Referenced by inkscape_build_year().
const char Inkscape::cache_header[] = "@font-cache@" |
Definition at line 202 of file font-discovery.cpp.
Referenced by load_cached_font_info(), and save_font_cache().
|
constexpr |
Definition at line 203 of file font-discovery.cpp.
Referenced by load_cached_font_info(), and save_font_cache().
|
inlineconstexpr |
Definition at line 45 of file canvas-item.h.
Referenced by Inkscape::CanvasItem::set_fill(), and Inkscape::CanvasItem::set_stroke().
|
inlineconstexpr |
Whether event debug printing is enabled.
Definition at line 20 of file debug.h.
Referenced by Inkscape::UI::Tools::ToolBase::root_handler(), Inkscape::UI::Tools::TextTool::root_handler(), sp_desktop_root_handler(), sp_dt_guide_event(), Inkscape::UI::Tools::ToolBase::start_root_handler(), and Inkscape::UI::Tools::ToolBase::tool_root_handler().
|
static |
Definition at line 31 of file page-manager.cpp.
Referenced by Inkscape::PageManager::subset().
|
static |
Definition at line 33 of file page-manager.cpp.
|
static |
Definition at line 34 of file page-manager.cpp.
Referenced by Inkscape::PageManager::subset().
|
static |
Definition at line 32 of file page-manager.cpp.
|
inline |
Definition at line 36 of file font-collections.h.
Referenced by Inkscape::FontCollections::add_system_collections(), and Inkscape::FontLister::apply_collections().
|
staticconstexpr |
Definition at line 38 of file booleans-builder.cpp.
Referenced by Inkscape::BooleanBuilder::redraw_item().
|
staticconstexpr |
Definition at line 37 of file booleans-builder.cpp.
Referenced by Inkscape::BooleanBuilder::redraw_item().
const char Inkscape::font_cache[] = "font-cache.ini" |
Definition at line 201 of file font-discovery.cpp.
Referenced by load_cached_font_info(), and save_font_cache().
|
staticconstexpr |
Definition at line 29 of file drawing.cpp.
|
inlineconstexpr |
All modifiers used by Inkscape.
Definition at line 331 of file canvas-event.h.
Referenced by mod_alt_only(), mod_ctrl_only(), mod_shift_only(), state_held_any_modifiers(), state_held_only_alt(), state_held_only_ctrl(), and state_held_only_shift().
|
constexpr |
Definition at line 226 of file canvas-item-ctrl.cpp.
Referenced by get_size_default(), and Inkscape::CanvasItemCtrl::set_size_via_index().
|
static |
Definition at line 44 of file preferences.cpp.
Referenced by Inkscape::Preferences::_load().
|
constexpr |
Definition at line 225 of file canvas-item-ctrl.cpp.
Referenced by get_size_default(), and Inkscape::CanvasItemCtrl::set_size_via_index().
|
inline |
Definition at line 27 of file recently-used-fonts.h.
Referenced by Inkscape::RecentlyUsedFonts::_write_recently_used_fonts(), and Inkscape::RecentlyUsedFonts::init().
|
inline |
Definition at line 35 of file font-collections.h.
Referenced by Inkscape::FontCollections::add_system_collections(), and Inkscape::FontLister::apply_collections().
|
extern |
code revision string
Referenced by inkscape_revision().
const int Inkscape::SP_CSS_BLEND_COUNT = SP_CSS_BLEND_ENDMODE + 5 |
Definition at line 24 of file filter-effect-chooser.cpp.
|
extern |
const EnumData<SPBlendMode> Inkscape::SPBlendModeData[SP_CSS_BLEND_COUNT] |
Definition at line 25 of file filter-effect-chooser.cpp.
auto const Inkscape::URI_ALLOWED_NON_ALNUM = "!#$%&'()*+,-./:;=?@_~" |
Definition at line 27 of file uri.cpp.
Referenced by uri_needs_escaping().
|
extern |
Referenced by add_actions_help_url().
|
extern |
Referenced by add_actions_help_url().
|
extern |
|
extern |
full version string
Referenced by Inkscape::Extension::Internal::PrintEmf::begin(), Inkscape::Extension::Internal::PrintLatex::begin(), Inkscape::Extension::Internal::PovOutput::doHeader(), file_save(), Inkscape::Version::from_string(), GetInkscapeVersion(), inkscape_version(), Inkscape::Extension::Loader::load_implementation(), InkviewApplication::on_handle_local_options(), Inkscape::Extension::Internal::LaTeXTextRenderer::setTargetFile(), and Inkscape::Extension::Internal::OdfOutput::writeMeta().
|
extern |
version string excluding revision and date
Referenced by add_actions_help_url(), Inkscape::Extension::Internal::CairoRenderContext::setMetadata(), and Inkscape::UI::Dialog::StartScreen::show_welcome().