LibreOffice Module cppcanvas (master) 1
Static Public Member Functions | Private Member Functions | List of all members
cppcanvas::VCLFactory Class Reference

The VCLFactory creates Canvas objects for various VCL OutputDevice primitives, such as windows, polygons, bitmaps and metafiles. More...

#include <vclfactory.hxx>

Static Public Member Functions

static CanvasSharedPtr createCanvas (const css::uno::Reference< css::rendering::XCanvas > &xCanvas)
 
static BitmapCanvasSharedPtr createBitmapCanvas (const css::uno::Reference< css::rendering::XBitmapCanvas > &xCanvas)
 
static SpriteCanvasSharedPtr createSpriteCanvas (const vcl::Window &rVCLWindow)
 
static SpriteCanvasSharedPtr createSpriteCanvas (const css::uno::Reference< css::rendering::XSpriteCanvas > &xCanvas)
 
static BitmapSharedPtr createBitmap (const CanvasSharedPtr &, const ::BitmapEx &rBmpEx)
 Create a bitmap from a VCL Bitmap. More...
 
static RendererSharedPtr createRenderer (const CanvasSharedPtr &rCanvas, const ::GDIMetaFile &rMtf, const Renderer::Parameters &rParms)
 Create a renderer object from a Metafile. More...
 

Private Member Functions

 VCLFactory ()=delete
 
 VCLFactory (const VCLFactory &)=delete
 
VCLFactoryoperator= (const VCLFactory &)=delete
 

Detailed Description

The VCLFactory creates Canvas objects for various VCL OutputDevice primitives, such as windows, polygons, bitmaps and metafiles.

Please note that the objects created for a specific Canvas can only be drawn on exactly that canvas. You have to regenerate them for different canvases.

Definition at line 55 of file vclfactory.hxx.

Constructor & Destructor Documentation

◆ VCLFactory() [1/2]

cppcanvas::VCLFactory::VCLFactory ( )
privatedelete

◆ VCLFactory() [2/2]

cppcanvas::VCLFactory::VCLFactory ( const VCLFactory )
privatedelete

Member Function Documentation

◆ createBitmap()

BitmapSharedPtr cppcanvas::VCLFactory::createBitmap ( const CanvasSharedPtr rCanvas,
const ::BitmapEx rBmpEx 
)
static

Create a bitmap from a VCL Bitmap.

Definition at line 56 of file vclfactory.cxx.

References vcl::unotools::xBitmapFromBitmapEx().

◆ createBitmapCanvas()

BitmapCanvasSharedPtr cppcanvas::VCLFactory::createBitmapCanvas ( const css::uno::Reference< css::rendering::XBitmapCanvas > &  xCanvas)
static

Definition at line 40 of file vclfactory.cxx.

◆ createCanvas()

CanvasSharedPtr cppcanvas::VCLFactory::createCanvas ( const css::uno::Reference< css::rendering::XCanvas > &  xCanvas)
static

Definition at line 35 of file vclfactory.cxx.

◆ createRenderer()

RendererSharedPtr cppcanvas::VCLFactory::createRenderer ( const CanvasSharedPtr rCanvas,
const ::GDIMetaFile rMtf,
const Renderer::Parameters rParms 
)
static

Create a renderer object from a Metafile.

The created renderer initially draws the metafile one-by-one units large, in user coordinate space

Definition at line 73 of file vclfactory.cxx.

◆ createSpriteCanvas() [1/2]

static SpriteCanvasSharedPtr cppcanvas::VCLFactory::createSpriteCanvas ( const css::uno::Reference< css::rendering::XSpriteCanvas > &  xCanvas)
static

◆ createSpriteCanvas() [2/2]

SpriteCanvasSharedPtr cppcanvas::VCLFactory::createSpriteCanvas ( const vcl::Window rVCLWindow)
static

Definition at line 45 of file vclfactory.cxx.

References vcl::Window::GetOutDev(), and OutputDevice::GetSpriteCanvas().

◆ operator=()

VCLFactory & cppcanvas::VCLFactory::operator= ( const VCLFactory )
privatedelete

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