LibreOffice Module vcl (master) 1
Public Member Functions | Private Attributes | List of all members
cairo::QtSvpSurface Class Referencefinal

#include <QtSvpSurface.hxx>

Inheritance diagram for cairo::QtSvpSurface:
[legend]
Collaboration diagram for cairo::QtSvpSurface:
[legend]

Public Member Functions

 QtSvpSurface (CairoSurfaceSharedPtr pSurface)
 takes over ownership of passed cairo_surface More...
 
 QtSvpSurface (const QtSvpGraphics *pGraphics, int x, int y, int width, int height)
 create surface on subarea of given drawable More...
 
 ~QtSvpSurface () override
 
CairoSharedPtr getCairo () const override
 
CairoSurfaceSharedPtr getCairoSurface () const override
 
SurfaceSharedPtr getSimilar (int nContentType, int width, int height) const override
 
VclPtr< VirtualDevicecreateVirtualDevice () const override
 factory for VirDev on this surface More...
 
void flush () const override
 Flush all pending output to surface. More...
 
- Public Member Functions inherited from cairo::Surface
virtual ~Surface ()
 
virtual CairoSharedPtr getCairo () const =0
 
virtual CairoSurfaceSharedPtr getCairoSurface () const =0
 
virtual SurfaceSharedPtr getSimilar (int cairo_content_type, int width, int height) const =0
 
virtual VclPtr< VirtualDevicecreateVirtualDevice () const =0
 factory for VirDev on this surface More...
 
virtual bool Resize (int, int)
 Resize the surface (possibly destroying content), only possible for X11 typically so on failure caller must create a new surface instead. More...
 
virtual void flush () const =0
 Flush all pending output to surface. More...
 

Private Attributes

const QtSvpGraphicsm_pGraphics
 
cairo_t *const m_pCairoContext
 
CairoSurfaceSharedPtr m_pSurface
 

Detailed Description

Definition at line 21 of file qt5/QtSvpSurface.hxx.

Constructor & Destructor Documentation

◆ QtSvpSurface() [1/2]

cairo::QtSvpSurface::QtSvpSurface ( CairoSurfaceSharedPtr  pSurface)
explicit

takes over ownership of passed cairo_surface

◆ QtSvpSurface() [2/2]

cairo::QtSvpSurface::QtSvpSurface ( const QtSvpGraphics pGraphics,
int  x,
int  y,
int  width,
int  height 
)
explicit

create surface on subarea of given drawable

◆ ~QtSvpSurface()

cairo::QtSvpSurface::~QtSvpSurface ( )
override

Member Function Documentation

◆ createVirtualDevice()

VclPtr< VirtualDevice > cairo::QtSvpSurface::createVirtualDevice ( ) const
overridevirtual

factory for VirDev on this surface

Implements cairo::Surface.

◆ flush()

void cairo::QtSvpSurface::flush ( ) const
overridevirtual

Flush all pending output to surface.

Implements cairo::Surface.

◆ getCairo()

CairoSharedPtr cairo::QtSvpSurface::getCairo ( ) const
overridevirtual

Implements cairo::Surface.

◆ getCairoSurface()

CairoSurfaceSharedPtr cairo::QtSvpSurface::getCairoSurface ( ) const
inlineoverridevirtual

Implements cairo::Surface.

Definition at line 36 of file qt5/QtSvpSurface.hxx.

References m_pSurface.

◆ getSimilar()

SurfaceSharedPtr cairo::QtSvpSurface::getSimilar ( int  nContentType,
int  width,
int  height 
) const
overridevirtual

Implements cairo::Surface.

Member Data Documentation

◆ m_pCairoContext

cairo_t* const cairo::QtSvpSurface::m_pCairoContext
private

Definition at line 24 of file qt5/QtSvpSurface.hxx.

◆ m_pGraphics

const QtSvpGraphics* cairo::QtSvpSurface::m_pGraphics
private

Definition at line 23 of file qt5/QtSvpSurface.hxx.

◆ m_pSurface

CairoSurfaceSharedPtr cairo::QtSvpSurface::m_pSurface
private

Definition at line 25 of file qt5/QtSvpSurface.hxx.

Referenced by getCairoSurface().


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