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 38 of file devicehelper.hxx.

Constructor & Destructor Documentation

vclcanvas::DeviceHelper::DeviceHelper ( )

Definition at line 40 of file devicehelper.cxx.

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

make noncopyable

Member Function Documentation

css::uno::Reference< css::rendering::XBitmap > vclcanvas::DeviceHelper::createCompatibleAlphaBitmap ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const css::geometry::IntegerSize2D &  size 
)
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 
)
css::uno::Reference< css::rendering::XBitmap > vclcanvas::DeviceHelper::createCompatibleBitmap ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const css::geometry::IntegerSize2D &  size 
)
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 
)
css::uno::Reference< css::rendering::XVolatileBitmap > vclcanvas::DeviceHelper::createVolatileAlphaBitmap ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const css::geometry::IntegerSize2D &  size 
)
css::uno::Reference< css::rendering::XVolatileBitmap > vclcanvas::DeviceHelper::createVolatileBitmap ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const css::geometry::IntegerSize2D &  size 
)
void vclcanvas::DeviceHelper::disposing ( )

Dispose all internal references.

Definition at line 153 of file devicehelper.cxx.

References mpOutDev.

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

void vclcanvas::DeviceHelper::dumpScreenContent ( ) const

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

Definition at line 198 of file devicehelper.cxx.

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

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

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

Definition at line 192 of file devicehelper.cxx.

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

Definition at line 164 of file devicehelper.cxx.

References mpOutDev.

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

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

Definition at line 80 of file devicehelper.hxx.

References mpOutDev.

geometry::RealSize2D vclcanvas::DeviceHelper::getPhysicalResolution ( )
geometry::RealSize2D vclcanvas::DeviceHelper::getPhysicalSize ( )
uno::Any vclcanvas::DeviceHelper::getSurfaceHandle ( ) const

Definition at line 173 of file devicehelper.cxx.

References getDeviceHandle().

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

Definition at line 44 of file devicehelper.cxx.

References mpOutDev.

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

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

Definition at line 159 of file devicehelper.cxx.

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

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

Member Data Documentation

OutDevProviderSharedPtr vclcanvas::DeviceHelper::mpOutDev
private

For retrieving device info.

Definition at line 89 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: