LibreOffice Module cppcanvas (master) 1
Functions
cppcanvas::internal::PolyPolyActionFactory Namespace Reference

Creates encapsulated converters between GDIMetaFile and XCanvas. More...

Functions

std::shared_ptr< ActioncreatePolyPolyAction (const ::basegfx::B2DPolyPolygon &, const CanvasSharedPtr &, const OutDevState &)
 Create polygon, fill/stroke according to state. More...
 
std::shared_ptr< ActioncreatePolyPolyAction (const ::basegfx::B2DPolyPolygon &, const CanvasSharedPtr &, const OutDevState &, const css::rendering::Texture &)
 Create texture-filled polygon. More...
 
std::shared_ptr< ActioncreateLinePolyPolyAction (const ::basegfx::B2DPolyPolygon &, const CanvasSharedPtr &, const OutDevState &)
 Create line polygon (always stroked, not filled) More...
 
std::shared_ptr< ActioncreatePolyPolyAction (const ::basegfx::B2DPolyPolygon &, const CanvasSharedPtr &, const OutDevState &, const css::rendering::StrokeAttributes &)
 Create stroked polygon. More...
 
std::shared_ptr< ActioncreatePolyPolyAction (const ::basegfx::B2DPolyPolygon &, const CanvasSharedPtr &, const OutDevState &, int nTransparency)
 For transparent painting of the given polygon (normally, we take the colors always opaque) More...
 

Detailed Description

Creates encapsulated converters between GDIMetaFile and XCanvas.

The Canvas argument is deliberately placed at the constructor, to force reconstruction of this object for a new canvas. This considerably eases internal state handling, since a lot of the internal state (e.g. fonts, text layout) is Canvas-dependent.

Function Documentation

◆ createLinePolyPolyAction()

std::shared_ptr< Action > cppcanvas::internal::PolyPolyActionFactory::createLinePolyPolyAction ( const ::basegfx::B2DPolyPolygon rPoly,
const CanvasSharedPtr rCanvas,
const OutDevState rState 
)

Create line polygon (always stroked, not filled)

Definition at line 462 of file polypolyaction.cxx.

References cppcanvas::internal::OutDevState::isLineColorSet.

Referenced by cppcanvas::internal::ImplRenderer::createActions().

◆ createPolyPolyAction() [1/4]

std::shared_ptr< Action > cppcanvas::internal::PolyPolyActionFactory::createPolyPolyAction ( const ::basegfx::B2DPolyPolygon rPoly,
const CanvasSharedPtr rCanvas,
const OutDevState rState 
)

◆ createPolyPolyAction() [2/4]

std::shared_ptr< Action > cppcanvas::internal::PolyPolyActionFactory::createPolyPolyAction ( const ::basegfx::B2DPolyPolygon ,
const CanvasSharedPtr ,
const OutDevState ,
const css::rendering::StrokeAttributes &   
)

Create stroked polygon.

◆ createPolyPolyAction() [3/4]

std::shared_ptr< Action > cppcanvas::internal::PolyPolyActionFactory::createPolyPolyAction ( const ::basegfx::B2DPolyPolygon ,
const CanvasSharedPtr ,
const OutDevState ,
const css::rendering::Texture &   
)

Create texture-filled polygon.

◆ createPolyPolyAction() [4/4]

std::shared_ptr< Action > cppcanvas::internal::PolyPolyActionFactory::createPolyPolyAction ( const ::basegfx::B2DPolyPolygon rPoly,
const CanvasSharedPtr rCanvas,
const OutDevState rState,
int  nTransparency 
)

For transparent painting of the given polygon (normally, we take the colors always opaque)

Definition at line 484 of file polypolyaction.cxx.

References cppcanvas::internal::OutDevState::isFillColorSet, and cppcanvas::internal::OutDevState::isLineColorSet.