Inkscape
Vector Graphics Editor
|
Classes | |
class | Document |
class | DrawContext |
class | GroupContext |
class | ItemContext |
class | PageContext |
class | PatternContext |
class | TextContext |
Typedefs | |
typedef std::tuple< std::string, std::string, std::string > | ItemCacheKey |
Enumerations | |
enum | PaintLayer : std::uint_least8_t { PAINT_FILLSTROKE , PAINT_FILL , PAINT_STROKE , PAINT_MARKERS } |
Functions | |
std::string | get_id (SPObject const *obj) |
Attempt to get an object's id, even if it's a clone. | |
CapyPDF_Blend_Mode | get_blendmode (SPBlendMode mode) |
Get the blend mode for capyPDF output. | |
CapyPDF_Line_Cap | get_linecap (SPStrokeCapType mode) |
CapyPDF_Line_Join | get_linejoin (SPStrokeJoinType mode) |
bool | style_has_gradient_transparency (SPStyle const *style) |
Returns true if the gradient has transparency. | |
bool | style_needs_group (SPStyle const *style) |
Return true if this shape's style requires a PDF transparency group. | |
bool | gradient_has_transparency (SPPaintServer const *paint) |
Returns true if the gradient has transparency. | |
std::string | paint_to_cache_key (SPIPaint const &paint, std::optional< double > opacity) |
Turn a paint into a string for use in caching keys. | |
void | get_context_use_recursive (SPItem const *item, bool &fill, bool &stroke) |
Find out if any of the item, or its decendents use context-fill and context-stroke. | |
std::vector< PaintLayer > | get_paint_layers (SPStyle const *style, SPStyle const *context_style) |
Get a PDF specific layer painting pattern for fill, stroke and markers. | |
static CapyPDF_Image_Interpolation | get_interpolation (SPImageRendering rendering) |
static std::optional< bool > | repeat_is_reflection (SPGradientSpread spread) |
Return true if the SVG gradient is repeated and reflected, false if it's repeated but not reflected. | |
static std::string | unicodeToUtf8 (std::vector< gunichar > const &chars) |
typedef std::tuple<std::string, std::string, std::string> Inkscape::Extension::Internal::PdfBuilder::ItemCacheKey |
Definition at line 59 of file build-document.h.
enum Inkscape::Extension::Internal::PdfBuilder::PaintLayer : std::uint_least8_t |
Enumerator | |
---|---|
PAINT_FILLSTROKE | |
PAINT_FILL | |
PAINT_STROKE | |
PAINT_MARKERS |
Definition at line 61 of file build-document.h.
CapyPDF_Blend_Mode Inkscape::Extension::Internal::PdfBuilder::get_blendmode | ( | SPBlendMode | mode | ) |
Get the blend mode for capyPDF output.
Definition at line 26 of file build-styles.cpp.
References mode, SP_CSS_BLEND_COLOR, SP_CSS_BLEND_COLORBURN, SP_CSS_BLEND_COLORDODGE, SP_CSS_BLEND_DARKEN, SP_CSS_BLEND_DIFFERENCE, SP_CSS_BLEND_EXCLUSION, SP_CSS_BLEND_HARDLIGHT, SP_CSS_BLEND_HUE, SP_CSS_BLEND_LIGHTEN, SP_CSS_BLEND_LUMINOSITY, SP_CSS_BLEND_MULTIPLY, SP_CSS_BLEND_OVERLAY, SP_CSS_BLEND_SATURATION, SP_CSS_BLEND_SCREEN, and SP_CSS_BLEND_SOFTLIGHT.
Referenced by Inkscape::Extension::Internal::PdfBuilder::Document::get_group_graphics_state(), and style_needs_group().
void Inkscape::Extension::Internal::PdfBuilder::get_context_use_recursive | ( | SPItem const * | item, |
bool & | fill, | ||
bool & | stroke | ||
) |
Find out if any of the item, or its decendents use context-fill and context-stroke.
Definition at line 191 of file build-styles.cpp.
References SPObject::children, SPStyle::fill, fill, get_context_use_recursive(), item, SP_CSS_PAINT_ORIGIN_CONTEXT_FILL, SP_CSS_PAINT_ORIGIN_CONTEXT_STROKE, SPStyle::stroke, stroke, and SPObject::style.
Referenced by get_context_use_recursive(), and Inkscape::Extension::Internal::PdfBuilder::Document::item_to_transparency_group().
std::string Inkscape::Extension::Internal::PdfBuilder::get_id | ( | SPObject const * | obj | ) |
Attempt to get an object's id, even if it's a clone.
Definition at line 36 of file build-document.cpp.
References Inkscape::XML::Node::attribute(), SPObject::getId(), and SPObject::getRepr().
Referenced by Inkscape::Extension::Internal::PdfBuilder::ItemContext::cache_key(), Inkscape::Extension::Internal::PdfBuilder::Document::get_linear_pattern(), Inkscape::Extension::Internal::PdfBuilder::Document::get_mesh_pattern(), Inkscape::Extension::Internal::PdfBuilder::Document::get_pattern(), Inkscape::Extension::Internal::PdfBuilder::Document::get_radial_pattern(), Inkscape::Extension::Internal::PdfBuilder::Document::item_to_transparency_group(), Inkscape::Extension::Internal::PdfBuilder::Document::mask_to_transparency_group(), Inkscape::Extension::Internal::PdfBuilder::DrawContext::paint_item(), and Inkscape::Extension::Internal::PdfBuilder::DrawContext::paint_item_clone().
|
static |
Definition at line 33 of file build-images.cpp.
References SP_CSS_IMAGE_RENDERING_AUTO, SP_CSS_IMAGE_RENDERING_CRISPEDGES, SP_CSS_IMAGE_RENDERING_OPTIMIZEQUALITY, SP_CSS_IMAGE_RENDERING_OPTIMIZESPEED, and SP_CSS_IMAGE_RENDERING_PIXELATED.
Referenced by Inkscape::Extension::Internal::PdfBuilder::DrawContext::paint_raster().
CapyPDF_Line_Cap Inkscape::Extension::Internal::PdfBuilder::get_linecap | ( | SPStrokeCapType | mode | ) |
Definition at line 65 of file build-styles.cpp.
References mode, SP_STROKE_LINECAP_BUTT, SP_STROKE_LINECAP_ROUND, and SP_STROKE_LINECAP_SQUARE.
Referenced by Inkscape::Extension::Internal::PdfBuilder::DrawContext::set_paint_style(), and Inkscape::Extension::Internal::PdfBuilder::TextContext::set_paint_style().
CapyPDF_Line_Join Inkscape::Extension::Internal::PdfBuilder::get_linejoin | ( | SPStrokeJoinType | mode | ) |
Definition at line 79 of file build-styles.cpp.
References mode, SP_STROKE_LINEJOIN_BEVEL, SP_STROKE_LINEJOIN_MITER, and SP_STROKE_LINEJOIN_ROUND.
Referenced by Inkscape::Extension::Internal::PdfBuilder::DrawContext::set_paint_style(), and Inkscape::Extension::Internal::PdfBuilder::TextContext::set_paint_style().
std::vector< PaintLayer > Inkscape::Extension::Internal::PdfBuilder::get_paint_layers | ( | SPStyle const * | style, |
SPStyle const * | context_style | ||
) |
Get a PDF specific layer painting pattern for fill, stroke and markers.
Definition at line 114 of file build-styles.cpp.
References SPStyle::fill, SPStyle::fill_opacity, PAINT_FILL, PAINT_MARKERS, SPStyle::paint_order, PAINT_STROKE, SP_CSS_PAINT_ORDER_FILL, SP_CSS_PAINT_ORDER_MARKER, SP_CSS_PAINT_ORDER_STROKE, SP_CSS_PAINT_ORIGIN_CONTEXT_FILL, SP_CSS_PAINT_ORIGIN_CONTEXT_STROKE, SPStyle::stroke, SPStyle::stroke_extensions, SPStyle::stroke_opacity, and SPStyle::stroke_width.
Referenced by Inkscape::Extension::Internal::PdfBuilder::DrawContext::paint_shape(), and Inkscape::Extension::Internal::PdfBuilder::DrawContext::paint_text_layout().
bool Inkscape::Extension::Internal::PdfBuilder::gradient_has_transparency | ( | SPPaintServer const * | paint | ) |
Returns true if the gradient has transparency.
Definition at line 52 of file build-patterns.cpp.
References SPPaintServer::isValid(), linear(), SPMeshNodeArray::nodes, and SPMeshNodeArray::read().
Referenced by style_has_gradient_transparency(), and Inkscape::Extension::Internal::PdfBuilder::Document::style_to_transparency_mask().
std::string Inkscape::Extension::Internal::PdfBuilder::paint_to_cache_key | ( | SPIPaint const & | paint, |
std::optional< double > | opacity | ||
) |
Turn a paint into a string for use in caching keys.
Definition at line 171 of file build-styles.cpp.
References SPIPaint::getColor(), SPIPaint::href, SPIPaint::isColor(), SPIPaint::isNone(), and SPIPaint::isPaintserver().
Referenced by Inkscape::Extension::Internal::PdfBuilder::Document::item_to_transparency_group().
|
static |
Return true if the SVG gradient is repeated and reflected, false if it's repeated but not reflected.
Definition at line 36 of file build-patterns.cpp.
References SP_GRADIENT_SPREAD_REFLECT, and SP_GRADIENT_SPREAD_REPEAT.
Referenced by Inkscape::Extension::Internal::PdfBuilder::Document::get_linear_pattern(), and Inkscape::Extension::Internal::PdfBuilder::Document::get_radial_pattern().
bool Inkscape::Extension::Internal::PdfBuilder::style_has_gradient_transparency | ( | SPStyle const * | style | ) |
Returns true if the gradient has transparency.
Definition at line 96 of file build-styles.cpp.
References SPStyle::fill, gradient_has_transparency(), and SPStyle::stroke.
bool Inkscape::Extension::Internal::PdfBuilder::style_needs_group | ( | SPStyle const * | style | ) |
Return true if this shape's style requires a PDF transparency group.
Definition at line 160 of file build-styles.cpp.
References SPStyle::fill, get_blendmode(), SPStyle::mix_blend_mode, SPStyle::opacity, and SPStyle::stroke.
Referenced by Inkscape::Extension::Internal::PdfBuilder::DrawContext::paint_item_group().
|
static |
Definition at line 25 of file build-text.cpp.
References c.
Referenced by Inkscape::Extension::Internal::PdfBuilder::TextContext::render_text().