LibreOffice Module canvas (master) 1
Public Member Functions | Private Attributes | List of all members
vclcanvas::DeviceHelper Class Reference

#include <devicehelper.hxx>

Inheritance diagram for vclcanvas::DeviceHelper:
[legend]

Public Member Functions

 DeviceHelper ()
 
 DeviceHelper (const DeviceHelper &)=delete
 make noncopyable More...
 
const DeviceHelperoperator= (const DeviceHelper &)=delete
 
void init (const OutDevProviderSharedPtr &rOutDev)
 
void disposing ()
 Dispose all internal references. More...
 
css::geometry::RealSize2D getPhysicalResolution ()
 
css::geometry::RealSize2D getPhysicalSize ()
 
css::uno::Reference< css::rendering::XLinePolyPolygon2D > createCompatibleLinePolyPolygon (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::uno::Sequence< css::uno::Sequence< css::geometry::RealPoint2D > > &points)
 
css::uno::Reference< css::rendering::XBezierPolyPolygon2D > createCompatibleBezierPolyPolygon (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::uno::Sequence< css::uno::Sequence< css::geometry::RealBezierSegment2D > > &points)
 
css::uno::Reference< css::rendering::XBitmap > createCompatibleBitmap (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
 
css::uno::Reference< css::rendering::XVolatileBitmap > createVolatileBitmap (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
 
css::uno::Reference< css::rendering::XBitmap > createCompatibleAlphaBitmap (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
 
css::uno::Reference< css::rendering::XVolatileBitmap > createVolatileAlphaBitmap (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
 
css::uno::Any isAccelerated () const
 
css::uno::Any getDeviceHandle () const
 
css::uno::Any getSurfaceHandle () const
 
css::uno::Reference< css::rendering::XColorSpace > const & getColorSpace () const
 
const OutDevProviderSharedPtrgetOutDev () const
 
void dumpScreenContent () const
 called when DumpScreenContent property is enabled on XGraphicDevice, and writes out bitmaps of current screen. More...
 

Private Attributes

OutDevProviderSharedPtr mpOutDev
 For retrieving device info. More...
 

Detailed Description

Definition at line 31 of file devicehelper.hxx.

Constructor & Destructor Documentation

◆ DeviceHelper() [1/2]

vclcanvas::DeviceHelper::DeviceHelper ( )

Definition at line 36 of file devicehelper.cxx.

◆ DeviceHelper() [2/2]

vclcanvas::DeviceHelper::DeviceHelper ( const DeviceHelper )
delete

make noncopyable

Member Function Documentation

◆ createCompatibleAlphaBitmap()

css::uno::Reference< css::rendering::XBitmap > vclcanvas::DeviceHelper::createCompatibleAlphaBitmap ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const css::geometry::IntegerSize2D &  size 
)

◆ createCompatibleBezierPolyPolygon()

css::uno::Reference< css::rendering::XBezierPolyPolygon2D > vclcanvas::DeviceHelper::createCompatibleBezierPolyPolygon ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const css::uno::Sequence< css::uno::Sequence< css::geometry::RealBezierSegment2D > > &  points 
)

◆ createCompatibleBitmap()

css::uno::Reference< css::rendering::XBitmap > vclcanvas::DeviceHelper::createCompatibleBitmap ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const css::geometry::IntegerSize2D &  size 
)

◆ createCompatibleLinePolyPolygon()

css::uno::Reference< css::rendering::XLinePolyPolygon2D > vclcanvas::DeviceHelper::createCompatibleLinePolyPolygon ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const css::uno::Sequence< css::uno::Sequence< css::geometry::RealPoint2D > > &  points 
)

◆ createVolatileAlphaBitmap()

css::uno::Reference< css::rendering::XVolatileBitmap > vclcanvas::DeviceHelper::createVolatileAlphaBitmap ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const css::geometry::IntegerSize2D &  size 
)

◆ createVolatileBitmap()

css::uno::Reference< css::rendering::XVolatileBitmap > vclcanvas::DeviceHelper::createVolatileBitmap ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const css::geometry::IntegerSize2D &  size 
)

◆ disposing()

void vclcanvas::DeviceHelper::disposing ( )

Dispose all internal references.

Definition at line 148 of file devicehelper.cxx.

References mpOutDev.

Referenced by vclcanvas::SpriteDeviceHelper::disposing().

◆ dumpScreenContent()

void vclcanvas::DeviceHelper::dumpScreenContent ( ) const

called when DumpScreenContent property is enabled on XGraphicDevice, and writes out bitmaps of current screen.

Definition at line 194 of file devicehelper.cxx.

References OutputDevice::EnableMapMode(), OutputDevice::GetBitmapEx(), OutputDevice::GetOutputSizePixel(), OutputDevice::IsMapModeEnabled(), mpOutDev, and WriteDIB().

Referenced by vclcanvas::SpriteDeviceHelper::dumpScreenContent().

◆ getColorSpace()

uno::Reference< rendering::XColorSpace > const & vclcanvas::DeviceHelper::getColorSpace ( ) const

Definition at line 188 of file devicehelper.cxx.

◆ getDeviceHandle()

uno::Any vclcanvas::DeviceHelper::getDeviceHandle ( ) const

Definition at line 159 of file devicehelper.cxx.

References mpOutDev.

Referenced by vclcanvas::SpriteDeviceHelper::getDeviceHandle(), and getSurfaceHandle().

◆ getOutDev()

const OutDevProviderSharedPtr & vclcanvas::DeviceHelper::getOutDev ( ) const
inline

Definition at line 73 of file devicehelper.hxx.

References mpOutDev.

◆ getPhysicalResolution()

geometry::RealSize2D vclcanvas::DeviceHelper::getPhysicalResolution ( )

◆ getPhysicalSize()

geometry::RealSize2D vclcanvas::DeviceHelper::getPhysicalSize ( )

◆ getSurfaceHandle()

uno::Any vclcanvas::DeviceHelper::getSurfaceHandle ( ) const

Definition at line 168 of file devicehelper.cxx.

References getDeviceHandle().

◆ init()

void vclcanvas::DeviceHelper::init ( const OutDevProviderSharedPtr rOutDev)

Definition at line 39 of file devicehelper.cxx.

References mpOutDev.

Referenced by vclcanvas::SpriteDeviceHelper::init().

◆ isAccelerated()

uno::Any vclcanvas::DeviceHelper::isAccelerated ( ) const

Definition at line 154 of file devicehelper.cxx.

Referenced by vclcanvas::SpriteDeviceHelper::isAccelerated().

◆ operator=()

const DeviceHelper & vclcanvas::DeviceHelper::operator= ( const DeviceHelper )
delete

Member Data Documentation

◆ mpOutDev

OutDevProviderSharedPtr vclcanvas::DeviceHelper::mpOutDev
private

For retrieving device info.

Definition at line 82 of file devicehelper.hxx.

Referenced by disposing(), dumpScreenContent(), getDeviceHandle(), getOutDev(), getPhysicalResolution(), getPhysicalSize(), and init().


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