Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::Extension::Internal::CairoRenderContext Class Reference

#include <cairo-render-context.h>

Classes

struct  CairoRenderContextMetadata
 

Public Types

enum  CairoPaintOrder { STROKE_OVER_FILL , FILL_OVER_STROKE , FILL_ONLY , STROKE_ONLY }
 
enum  CairoRenderMode { RENDER_MODE_NORMAL , RENDER_MODE_CLIP }
 
enum  CairoClipMode { CLIP_MODE_PATH , CLIP_MODE_MASK }
 

Public Member Functions

 ~CairoRenderContext ()
 
 CairoRenderContext (CairoRenderContext const &other)=delete
 
 CairoRenderContext (CairoRenderContext &&other)
 
CairoRenderContextoperator= (CairoRenderContext const &other)=delete
 
CairoRenderContextoperator= (CairoRenderContext &&other)
 
CairoRenderContext createSimilar (double width, double height) const
 Creates a new render context which will be compatible with the given context's Cairo surface.
 
bool finish (bool finish_surface=true)
 
bool finishPage ()
 Each page that's made should call finishPage to complete it.
 
bool nextPage (double width, double height, char const *label)
 When writing multiple pages, resize the next page.
 
CairoRenderergetRenderer () const
 
bool setImageTarget (cairo_format_t format)
 
bool setPdfTarget (gchar const *utf8_fn)
 
bool setPsTarget (gchar const *utf8_fn)
 
bool setSurfaceTarget (cairo_surface_t *surface, bool is_vector, cairo_matrix_t *ctm=nullptr)
 Set the cairo_surface_t from an external source.
 
void setMetadata (SPDocument const &document)
 Extract metadata from the document and store it in the context.
 
void setPSLevel (unsigned int level)
 
void setEPS (bool eps)
 
void setPDFLevel (unsigned int level)
 
void setTextToPath (bool texttopath)
 
void setOmitText (bool omittext)
 
void setFilterToBitmap (bool filtertobitmap)
 
bool getFilterToBitmap ()
 
void setBitmapResolution (unsigned resolution)
 
unsigned getBitmapResolution ()
 
bool setupSurface (double width, double height)
 Creates the cairo_surface_t for the context with the given width, height and with the currently set target surface type.
 
cairo_surface_tgetSurface ()
 
bool saveAsPng (const char *file_name)
 Saves the contents of the context to a PNG file.
 
void newPage ()
 On targets supporting multiple pages, sends subsequent rendering to a new page.
 
void setRenderMode (CairoRenderMode mode)
 
CairoRenderMode getRenderMode () const
 
void setClipMode (CairoClipMode mode)
 
CairoClipMode getClipMode () const
 
void addPathVector (Geom::PathVector const &pv)
 
void setPathVector (Geom::PathVector const &pv)
 
void pushLayer ()
 
void popLayer (cairo_operator_t composite=CAIRO_OPERATOR_CLEAR)
 
void tagBegin (const char *link)
 
void tagEnd ()
 
void destBegin (const char *link)
 
void destEnd ()
 
void pushState ()
 
void popState ()
 
const CairoRenderStategetCurrentState () const
 
const CairoRenderStategetParentState () const
 
void setStateForStyle (SPStyle const *style)
 
void setStateForItem (SPItem const *item)
 
void setStateNeedsLayer (bool state_needs_layer)
 
void setStateMergeOpacity (bool state_merge_opacity)
 
void transform (Geom::Affine const &transform)
 
void setTransform (Geom::Affine const &transform)
 
void setItemTransform (Geom::Affine const &transform)
 
Geom::Affine getTransform () const
 
Geom::Affine getItemTransform () const
 
Geom::Affine getParentTransform () const
 
void addClipPath (Geom::PathVector const &pv, SPIEnum< SPWindRule > const *fill_rule)
 
void addClippingRect (double x, double y, double width, double height)
 
bool renderPathVector (Geom::PathVector const &pathv, SPStyle const *style, Geom::OptRect const &pbox, CairoPaintOrder order=STROKE_OVER_FILL)
 
bool renderImage (Inkscape::Pixbuf const *pb, Geom::Affine const &image_transform, SPStyle const *style)
 
bool renderGlyphtext (PangoFont *font, Geom::Affine const &font_matrix, std::vector< CairoGlyphInfo > const &glyphtext, SPStyle const *style, bool second_pass=false)
 Called by Layout-TNG-Output, this function decides how to apply styles and write out the final shapes of a set of glyphs to the target.
 

Private Types

enum class  OmitTextPageState { EMPTY , GRAPHIC_ON_TOP , NEW_PAGE_ON_GRAPHIC }
 

Private Member Functions

 CairoRenderContext (CairoRenderer *renderer)
 
cairo_pattern_t_createPatternForPaintServer (SPPaintServer const *const paintserver, Geom::OptRect const &pbox, float alpha)
 
cairo_pattern_t_createPatternPainter (SPPaintServer const *const paintserver, Geom::OptRect const &pbox)
 
cairo_pattern_t_createHatchPainter (SPPaintServer const *const paintserver, Geom::OptRect const &pbox)
 
unsigned int _showGlyphs (cairo_t *cr, PangoFont *font, std::vector< CairoGlyphInfo > const &glyphtext, bool is_stroke)
 
bool _finishSurfaceSetup (cairo_surface_t *surface, cairo_matrix_t *ctm=nullptr)
 
void _setSurfaceMetadata (cairo_surface_t *surface)
 
void _setFillStyle (SPStyle const *style, Geom::OptRect const &pbox)
 
void _setStrokeStyle (SPStyle const *style, Geom::OptRect const &pbox)
 
float _mergedOpacity (float source_opacity) const
 
void _concatTransform (cairo_t *cr, double xx, double yx, double xy, double yy, double x0, double y0)
 
void _concatTransform (cairo_t *cr, Geom::Affine const &transform)
 
void _prepareRenderGraphic ()
 
void _prepareRenderText ()
 
void _freeResources ()
 
template<cairo_surface_type_t type>
bool _setVectorTarget (gchar const *utf8_fn)
 
CairoRenderState_addState ()
 

Static Private Member Functions

static void font_data_free (gpointer data)
 

Private Attributes

float _width = 0.0
 
float _height = 0.0
 
unsigned _dpi = 72
 
unsigned int _pdf_level = 1
 
unsigned int _ps_level = 1
 
unsigned _bitmapresolution = 72
 
bool _is_valid: 1 = false
 
bool _eps: 1 = false
 
bool _is_texttopath: 1 = false
 
bool _is_omittext: 1 = false
 
bool _is_show_page: 1 = false
 
bool _is_filtertobitmap: 1 = false
 
bool _is_pdf: 1 = false
 
bool _is_ps: 1 = false
 
unsigned int _clip_rule: 8
 
unsigned int _clip_winding_failed: 1
 
unsigned int _vector_based_target: 1 = false
 
OmitTextPageState _omittext_state = OmitTextPageState::EMPTY
 
FILE * _stream = nullptr
 
cairo_t_cr = nullptr
 
cairo_surface_t_surface = nullptr
 
cairo_surface_type_t _target = CAIRO_SURFACE_TYPE_IMAGE
 
cairo_format_t _target_format = CAIRO_FORMAT_ARGB32
 
PangoLayout_layout = nullptr
 
std::vector< CairoRenderState_state_stack
 
CairoRenderer_renderer
 
CairoRenderMode _render_mode = RENDER_MODE_NORMAL
 
CairoClipMode _clip_mode = CLIP_MODE_MASK
 
struct Inkscape::Extension::Internal::CairoRenderContext::CairoRenderContextMetadata _metadata
 
std::map< gpointer, cairo_font_face_t * > _font_table
 

Friends

class CairoRenderer
 

Detailed Description

Definition at line 66 of file cairo-render-context.h.

Member Enumeration Documentation

◆ CairoClipMode

Enumerator
CLIP_MODE_PATH 
CLIP_MODE_MASK 

Definition at line 91 of file cairo-render-context.h.

◆ CairoPaintOrder

Enumerator
STROKE_OVER_FILL 
FILL_OVER_STROKE 
FILL_ONLY 
STROKE_ONLY 

Definition at line 79 of file cairo-render-context.h.

◆ CairoRenderMode

Enumerator
RENDER_MODE_NORMAL 
RENDER_MODE_CLIP 

Definition at line 86 of file cairo-render-context.h.

◆ OmitTextPageState

Enumerator
EMPTY 
GRAPHIC_ON_TOP 
NEW_PAGE_ON_GRAPHIC 

Definition at line 184 of file cairo-render-context.h.

Constructor & Destructor Documentation

◆ ~CairoRenderContext()

Inkscape::Extension::Internal::CairoRenderContext::~CairoRenderContext ( )

Definition at line 145 of file cairo-render-context.cpp.

References _freeResources().

◆ CairoRenderContext() [1/3]

Inkscape::Extension::Internal::CairoRenderContext::CairoRenderContext ( CairoRenderContext const &  other)
delete

◆ CairoRenderContext() [2/3]

Inkscape::Extension::Internal::CairoRenderContext::CairoRenderContext ( CairoRenderContext &&  other)

Definition at line 143 of file cairo-render-context.cpp.

◆ CairoRenderContext() [3/3]

Inkscape::Extension::Internal::CairoRenderContext::CairoRenderContext ( CairoRenderer renderer)
private

Definition at line 112 of file cairo-render-context.cpp.

References _addState().

Member Function Documentation

◆ _addState()

CairoRenderState * Inkscape::Extension::Internal::CairoRenderContext::_addState ( )
inlineprivate

Definition at line 266 of file cairo-render-context.h.

References _state_stack.

Referenced by CairoRenderContext(), and pushState().

◆ _concatTransform() [1/2]

void Inkscape::Extension::Internal::CairoRenderContext::_concatTransform ( cairo_t cr,
double  xx,
double  yx,
double  xy,
double  yy,
double  x0,
double  y0 
)
private

◆ _concatTransform() [2/2]

void Inkscape::Extension::Internal::CairoRenderContext::_concatTransform ( cairo_t cr,
Geom::Affine const &  transform 
)
private

◆ _createHatchPainter()

◆ _createPatternForPaintServer()

cairo_pattern_t * Inkscape::Extension::Internal::CairoRenderContext::_createPatternForPaintServer ( SPPaintServer const *const  paintserver,
Geom::OptRect const &  pbox,
float  alpha 
)
private

◆ _createPatternPainter()

◆ _finishSurfaceSetup()

bool Inkscape::Extension::Internal::CairoRenderContext::_finishSurfaceSetup ( cairo_surface_t surface,
cairo_matrix_t *  ctm = nullptr 
)
private

◆ _freeResources()

void Inkscape::Extension::Internal::CairoRenderContext::_freeResources ( )
private

Definition at line 118 of file cairo-render-context.cpp.

References _cr, _font_table, _layout, _stream, _surface, and font_data_free().

Referenced by operator=(), and ~CairoRenderContext().

◆ _mergedOpacity()

float Inkscape::Extension::Internal::CairoRenderContext::_mergedOpacity ( float  source_opacity) const
private

Definition at line 1323 of file cairo-render-context.cpp.

References _state_stack.

Referenced by _setFillStyle(), and _setStrokeStyle().

◆ _prepareRenderGraphic()

void Inkscape::Extension::Internal::CairoRenderContext::_prepareRenderGraphic ( )
private

◆ _prepareRenderText()

void Inkscape::Extension::Internal::CairoRenderContext::_prepareRenderText ( )
private

◆ _setFillStyle()

void Inkscape::Extension::Internal::CairoRenderContext::_setFillStyle ( SPStyle const *  style,
Geom::OptRect const &  pbox 
)
private

◆ _setStrokeStyle()

◆ _setSurfaceMetadata()

◆ _setVectorTarget()

template<cairo_surface_type_t type>
bool Inkscape::Extension::Internal::CairoRenderContext::_setVectorTarget ( gchar const *  utf8_fn)
private

◆ _showGlyphs()

unsigned int Inkscape::Extension::Internal::CairoRenderContext::_showGlyphs ( cairo_t cr,
PangoFont font,
std::vector< CairoGlyphInfo > const &  glyphtext,
bool  is_stroke 
)
private

Definition at line 1670 of file cairo-render-context.cpp.

Referenced by renderGlyphtext().

◆ addClipPath()

void Inkscape::Extension::Internal::CairoRenderContext::addClipPath ( Geom::PathVector const &  pv,
SPIEnum< SPWindRule > const *  fill_rule 
)

◆ addClippingRect()

void Inkscape::Extension::Internal::CairoRenderContext::addClippingRect ( double  x,
double  y,
double  width,
double  height 
)

◆ addPathVector()

void Inkscape::Extension::Internal::CairoRenderContext::addPathVector ( Geom::PathVector const &  pv)

Definition at line 1812 of file cairo-render-context.cpp.

References _cr, and feed_pathvector_to_cairo().

Referenced by addClipPath(), and setPathVector().

◆ createSimilar()

CairoRenderContext Inkscape::Extension::Internal::CairoRenderContext::createSimilar ( double  width,
double  height 
) const

Creates a new render context which will be compatible with the given context's Cairo surface.

Parameters
widthwidth of the surface to be created
heightheight of the surface to be created

Definition at line 263 of file cairo-render-context.cpp.

References _cr, _height, _is_valid, _renderer, _surface, _width, Inkscape::Extension::Internal::CairoRenderer::createContext(), height, and width.

Referenced by _createHatchPainter(), and _createPatternPainter().

◆ destBegin()

void Inkscape::Extension::Internal::CairoRenderContext::destBegin ( const char *  link)

◆ destEnd()

void Inkscape::Extension::Internal::CairoRenderContext::destEnd ( )

◆ finish()

bool Inkscape::Extension::Internal::CairoRenderContext::finish ( bool  finish_surface = true)

◆ finishPage()

bool Inkscape::Extension::Internal::CairoRenderContext::finishPage ( )

Each page that's made should call finishPage to complete it.

Definition at line 865 of file cairo-render-context.cpp.

References _cr, _is_show_page, _is_valid, and _vector_based_target.

Referenced by Inkscape::Extension::Internal::CairoRenderer::renderPages().

◆ font_data_free()

void Inkscape::Extension::Internal::CairoRenderContext::font_data_free ( gpointer  data)
staticprivate

Definition at line 203 of file cairo-render-context.cpp.

References data.

Referenced by _freeResources().

◆ getBitmapResolution()

unsigned Inkscape::Extension::Internal::CairoRenderContext::getBitmapResolution ( )
inline

◆ getClipMode()

CairoClipMode Inkscape::Extension::Internal::CairoRenderContext::getClipMode ( ) const
inline

◆ getCurrentState()

◆ getFilterToBitmap()

bool Inkscape::Extension::Internal::CairoRenderContext::getFilterToBitmap ( )
inline

◆ getItemTransform()

Geom::Affine Inkscape::Extension::Internal::CairoRenderContext::getItemTransform ( ) const

Definition at line 991 of file cairo-render-context.cpp.

References getCurrentState(), and getParentTransform().

Referenced by popLayer().

◆ getParentState()

const CairoRenderState * Inkscape::Extension::Internal::CairoRenderContext::getParentState ( ) const

Definition at line 210 of file cairo-render-context.cpp.

References _state_stack, and getCurrentState().

Referenced by getParentTransform(), and popLayer().

◆ getParentTransform()

Geom::Affine Inkscape::Extension::Internal::CairoRenderContext::getParentTransform ( ) const

◆ getRenderer()

◆ getRenderMode()

CairoRenderMode Inkscape::Extension::Internal::CairoRenderContext::getRenderMode ( ) const
inline

◆ getSurface()

cairo_surface_t * Inkscape::Extension::Internal::CairoRenderContext::getSurface ( )

Definition at line 400 of file cairo-render-context.cpp.

References _is_valid, and _surface.

Referenced by _createHatchPainter(), _createPatternPainter(), and popLayer().

◆ getTransform()

Geom::Affine Inkscape::Extension::Internal::CairoRenderContext::getTransform ( ) const

◆ newPage()

void Inkscape::Extension::Internal::CairoRenderContext::newPage ( )

On targets supporting multiple pages, sends subsequent rendering to a new page.

◆ nextPage()

bool Inkscape::Extension::Internal::CairoRenderContext::nextPage ( double  width,
double  height,
char const *  label 
)

When writing multiple pages, resize the next page.

Definition at line 888 of file cairo-render-context.cpp.

References _height, _is_pdf, _is_ps, _is_show_page, _is_valid, _surface, _vector_based_target, _width, height, label, and width.

Referenced by Inkscape::Extension::Internal::CairoRenderer::renderPage().

◆ operator=() [1/2]

◆ operator=() [2/2]

CairoRenderContext & Inkscape::Extension::Internal::CairoRenderContext::operator= ( CairoRenderContext const &  other)
delete

◆ popLayer()

◆ popState()

◆ pushLayer()

void Inkscape::Extension::Internal::CairoRenderContext::pushLayer ( )

◆ pushState()

◆ renderGlyphtext()

bool Inkscape::Extension::Internal::CairoRenderContext::renderGlyphtext ( PangoFont font,
Geom::Affine const &  font_matrix,
std::vector< CairoGlyphInfo > const &  glyphtext,
SPStyle const *  style,
bool  second_pass = false 
)

Called by Layout-TNG-Output, this function decides how to apply styles and write out the final shapes of a set of glyphs to the target.

font - The PangoFont to use in cairo. font_matrix - The specific text transform to apply to these glyphs. glyphtext - A list of glyphs to write or render out. style - The style from the span or text node in context. second_pass - True if this is being called in a second pass.

Returns true if a second pass is required for fill over stroke paint order.

Definition at line 1715 of file cairo-render-context.cpp.

References _clip_mode, _cr, _font_table, _is_omittext, _is_texttopath, _prepareRenderText(), _render_mode, _setFillStyle(), _setStrokeStyle(), _showGlyphs(), CLIP_MODE_MASK, SPStyle::fill, fill, SPStyle::fill_rule, ink_css_blend_to_cairo_operator(), ink_matrix_to_cairo(), SPStyle::mix_blend_mode, SPStyle::paint_order, RENDER_MODE_CLIP, SP_CSS_PAINT_ORDER_FILL, SP_CSS_PAINT_ORDER_STROKE, SP_WIND_RULE_EVENODD, SPStyle::stroke, and stroke.

Referenced by Inkscape::Text::Layout::showGlyphs().

◆ renderImage()

◆ renderPathVector()

◆ saveAsPng()

bool Inkscape::Extension::Internal::CairoRenderContext::saveAsPng ( const char *  file_name)

Saves the contents of the context to a PNG file.

Definition at line 407 of file cairo-render-context.cpp.

References _surface, and file_name.

Referenced by _createHatchPainter(), _createPatternPainter(), and popLayer().

◆ setBitmapResolution()

void Inkscape::Extension::Internal::CairoRenderContext::setBitmapResolution ( unsigned  resolution)
inline

◆ setClipMode()

void Inkscape::Extension::Internal::CairoRenderContext::setClipMode ( CairoClipMode  mode)

Definition at line 425 of file cairo-render-context.cpp.

References _clip_mode, CLIP_MODE_MASK, CLIP_MODE_PATH, and mode.

Referenced by popLayer().

◆ setEPS()

void Inkscape::Extension::Internal::CairoRenderContext::setEPS ( bool  eps)
inline

Definition at line 113 of file cairo-render-context.h.

References _eps.

Referenced by Inkscape::Extension::Internal::ps_print_document_to_file().

◆ setFilterToBitmap()

void Inkscape::Extension::Internal::CairoRenderContext::setFilterToBitmap ( bool  filtertobitmap)
inline

◆ setImageTarget()

bool Inkscape::Extension::Internal::CairoRenderContext::setImageTarget ( cairo_format_t  format)

Definition at line 278 of file cairo-render-context.cpp.

References _is_valid, _target, and _target_format.

Referenced by popLayer().

◆ setItemTransform()

void Inkscape::Extension::Internal::CairoRenderContext::setItemTransform ( Geom::Affine const &  transform)

Definition at line 976 of file cairo-render-context.cpp.

References _is_valid, _state_stack, and transform().

◆ setMetadata()

◆ setOmitText()

void Inkscape::Extension::Internal::CairoRenderContext::setOmitText ( bool  omittext)
inline

◆ setPathVector()

void Inkscape::Extension::Internal::CairoRenderContext::setPathVector ( Geom::PathVector const &  pv)

Definition at line 1806 of file cairo-render-context.cpp.

References _cr, and addPathVector().

Referenced by renderPathVector().

◆ setPDFLevel()

void Inkscape::Extension::Internal::CairoRenderContext::setPDFLevel ( unsigned int  level)

◆ setPdfTarget()

bool Inkscape::Extension::Internal::CairoRenderContext::setPdfTarget ( gchar const *  utf8_fn)

◆ setPSLevel()

void Inkscape::Extension::Internal::CairoRenderContext::setPSLevel ( unsigned int  level)

◆ setPsTarget()

bool Inkscape::Extension::Internal::CairoRenderContext::setPsTarget ( gchar const *  utf8_fn)

◆ setRenderMode()

void Inkscape::Extension::Internal::CairoRenderContext::setRenderMode ( CairoRenderMode  mode)

◆ setStateForItem()

◆ setStateForStyle()

void Inkscape::Extension::Internal::CairoRenderContext::setStateForStyle ( SPStyle const *  style)

◆ setStateMergeOpacity()

void Inkscape::Extension::Internal::CairoRenderContext::setStateMergeOpacity ( bool  state_merge_opacity)
inline

◆ setStateNeedsLayer()

void Inkscape::Extension::Internal::CairoRenderContext::setStateNeedsLayer ( bool  state_needs_layer)
inline

◆ setSurfaceTarget()

bool Inkscape::Extension::Internal::CairoRenderContext::setSurfaceTarget ( cairo_surface_t surface,
bool  is_vector,
cairo_matrix_t *  ctm = nullptr 
)

Set the cairo_surface_t from an external source.

Definition at line 739 of file cairo-render-context.cpp.

References _finishSurfaceSetup(), _is_valid, _vector_based_target, and surface.

◆ setTextToPath()

void Inkscape::Extension::Internal::CairoRenderContext::setTextToPath ( bool  texttopath)
inline

◆ setTransform()

◆ setupSurface()

bool Inkscape::Extension::Internal::CairoRenderContext::setupSurface ( double  width,
double  height 
)

Creates the cairo_surface_t for the context with the given width, height and with the currently set target surface type.

Also sets supported metadata on the surface.

Definition at line 694 of file cairo-render-context.cpp.

References _eps, _finishSurfaceSetup(), _height, _is_valid, _pdf_level, _ps_level, _setSurfaceMetadata(), _stream, _target, _target_format, _vector_based_target, _width, Inkscape::Extension::Internal::_write_callback(), height, surface, and width.

Referenced by popLayer(), and Inkscape::Extension::Internal::CairoRenderer::setupDocument().

◆ tagBegin()

void Inkscape::Extension::Internal::CairoRenderContext::tagBegin ( const char *  link)

Definition at line 639 of file cairo-render-context.cpp.

References _cr.

Referenced by Inkscape::Extension::Internal::sp_anchor_render().

◆ tagEnd()

void Inkscape::Extension::Internal::CairoRenderContext::tagEnd ( )

Definition at line 646 of file cairo-render-context.cpp.

References _cr.

Referenced by Inkscape::Extension::Internal::sp_anchor_render().

◆ transform()

Friends And Related Symbol Documentation

◆ CairoRenderer

friend class CairoRenderer
friend

Definition at line 67 of file cairo-render-context.h.

Member Data Documentation

◆ _bitmapresolution

unsigned Inkscape::Extension::Internal::CairoRenderContext::_bitmapresolution = 72
private

Definition at line 195 of file cairo-render-context.h.

Referenced by getBitmapResolution(), operator=(), and setBitmapResolution().

◆ _clip_mode

CairoClipMode Inkscape::Extension::Internal::CairoRenderContext::_clip_mode = CLIP_MODE_MASK
private

◆ _clip_rule

unsigned int Inkscape::Extension::Internal::CairoRenderContext::_clip_rule
private

Definition at line 207 of file cairo-render-context.h.

Referenced by operator=().

◆ _clip_winding_failed

unsigned int Inkscape::Extension::Internal::CairoRenderContext::_clip_winding_failed
private

Definition at line 208 of file cairo-render-context.h.

Referenced by operator=().

◆ _cr

◆ _dpi

unsigned Inkscape::Extension::Internal::CairoRenderContext::_dpi = 72
private

Definition at line 192 of file cairo-render-context.h.

Referenced by operator=(), and popLayer().

◆ _eps

bool Inkscape::Extension::Internal::CairoRenderContext::_eps
private

Definition at line 198 of file cairo-render-context.h.

Referenced by operator=(), setEPS(), and setupSurface().

◆ _font_table

std::map<gpointer, cairo_font_face_t *> Inkscape::Extension::Internal::CairoRenderContext::_font_table
private

Definition at line 263 of file cairo-render-context.h.

Referenced by _freeResources(), and renderGlyphtext().

◆ _height

float Inkscape::Extension::Internal::CairoRenderContext::_height = 0.0
private

◆ _is_filtertobitmap

bool Inkscape::Extension::Internal::CairoRenderContext::_is_filtertobitmap
private

Definition at line 202 of file cairo-render-context.h.

Referenced by getFilterToBitmap(), operator=(), and setFilterToBitmap().

◆ _is_omittext

bool Inkscape::Extension::Internal::CairoRenderContext::_is_omittext
private

◆ _is_pdf

bool Inkscape::Extension::Internal::CairoRenderContext::_is_pdf
private

Definition at line 204 of file cairo-render-context.h.

Referenced by nextPage(), operator=(), setPDFLevel(), and setPSLevel().

◆ _is_ps

bool Inkscape::Extension::Internal::CairoRenderContext::_is_ps
private

Definition at line 205 of file cairo-render-context.h.

Referenced by nextPage(), operator=(), setPDFLevel(), and setPSLevel().

◆ _is_show_page

bool Inkscape::Extension::Internal::CairoRenderContext::_is_show_page
private

Definition at line 201 of file cairo-render-context.h.

Referenced by finish(), finishPage(), nextPage(), and operator=().

◆ _is_texttopath

bool Inkscape::Extension::Internal::CairoRenderContext::_is_texttopath
private

Definition at line 199 of file cairo-render-context.h.

Referenced by operator=(), renderGlyphtext(), and setTextToPath().

◆ _is_valid

◆ _layout

PangoLayout* Inkscape::Extension::Internal::CairoRenderContext::_layout = nullptr
private

Definition at line 219 of file cairo-render-context.h.

Referenced by _freeResources(), finish(), and operator=().

◆ _metadata

struct Inkscape::Extension::Internal::CairoRenderContext::CairoRenderContextMetadata Inkscape::Extension::Internal::CairoRenderContext::_metadata
private

◆ _omittext_state

OmitTextPageState Inkscape::Extension::Internal::CairoRenderContext::_omittext_state = OmitTextPageState::EMPTY
private

Definition at line 210 of file cairo-render-context.h.

Referenced by _prepareRenderGraphic(), _prepareRenderText(), and operator=().

◆ _pdf_level

unsigned int Inkscape::Extension::Internal::CairoRenderContext::_pdf_level = 1
private

Definition at line 193 of file cairo-render-context.h.

Referenced by operator=(), setPDFLevel(), and setupSurface().

◆ _ps_level

unsigned int Inkscape::Extension::Internal::CairoRenderContext::_ps_level = 1
private

Definition at line 194 of file cairo-render-context.h.

Referenced by operator=(), setPSLevel(), and setupSurface().

◆ _render_mode

CairoRenderMode Inkscape::Extension::Internal::CairoRenderContext::_render_mode = RENDER_MODE_NORMAL
private

◆ _renderer

CairoRenderer* Inkscape::Extension::Internal::CairoRenderContext::_renderer
private

◆ _state_stack

◆ _stream

FILE* Inkscape::Extension::Internal::CairoRenderContext::_stream = nullptr
private

◆ _surface

cairo_surface_t* Inkscape::Extension::Internal::CairoRenderContext::_surface = nullptr
private

◆ _target

cairo_surface_type_t Inkscape::Extension::Internal::CairoRenderContext::_target = CAIRO_SURFACE_TYPE_IMAGE
private

◆ _target_format

cairo_format_t Inkscape::Extension::Internal::CairoRenderContext::_target_format = CAIRO_FORMAT_ARGB32
private

Definition at line 217 of file cairo-render-context.h.

Referenced by operator=(), setImageTarget(), and setupSurface().

◆ _vector_based_target

◆ _width

float Inkscape::Extension::Internal::CairoRenderContext::_width = 0.0
private

The documentation for this class was generated from the following files: