LibreOffice Module canvas (master)
1
|
#include <dx_devicehelper.hxx>
Public Member Functions | |
DeviceHelper () | |
~DeviceHelper () | |
DeviceHelper (const DeviceHelper &)=delete | |
make noncopyable More... | |
const DeviceHelper & | operator= (const DeviceHelper &)=delete |
void | init (HDC hdc, OutputDevice *pOutputDev, css::rendering::XGraphicDevice &rDevice) |
Init the device helper. More... | |
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 > | getColorSpace () const |
void | dumpScreenContent () const |
called when DumpScreenContent property is enabled on XGraphicDevice, and writes out bitmaps of current screen. More... | |
Protected Member Functions | |
HDC | getHDC () const |
css::rendering::XGraphicDevice * | getDevice () const |
Private Attributes | |
css::rendering::XGraphicDevice * | mpDevice |
Phyical output device. More... | |
HDC | mnHDC |
VclPtr< OutputDevice > | mpOutDev |
Definition at line 37 of file dx_devicehelper.hxx.
dxcanvas::DeviceHelper::DeviceHelper | ( | ) |
Definition at line 44 of file dx_devicehelper.cxx.
dxcanvas::DeviceHelper::~DeviceHelper | ( | ) |
Definition at line 51 of file dx_devicehelper.cxx.
|
delete |
make noncopyable
css::uno::Reference< css::rendering::XBitmap > dxcanvas::DeviceHelper::createCompatibleAlphaBitmap | ( | const css::uno::Reference< css::rendering::XGraphicDevice > & | rDevice, |
const css::geometry::IntegerSize2D & | size | ||
) |
css::uno::Reference< css::rendering::XBezierPolyPolygon2D > dxcanvas::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 > dxcanvas::DeviceHelper::createCompatibleBitmap | ( | const css::uno::Reference< css::rendering::XGraphicDevice > & | rDevice, |
const css::geometry::IntegerSize2D & | size | ||
) |
css::uno::Reference< css::rendering::XLinePolyPolygon2D > dxcanvas::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 > dxcanvas::DeviceHelper::createVolatileAlphaBitmap | ( | const css::uno::Reference< css::rendering::XGraphicDevice > & | rDevice, |
const css::geometry::IntegerSize2D & | size | ||
) |
css::uno::Reference< css::rendering::XVolatileBitmap > dxcanvas::DeviceHelper::createVolatileBitmap | ( | const css::uno::Reference< css::rendering::XGraphicDevice > & | rDevice, |
const css::geometry::IntegerSize2D & | size | ||
) |
void dxcanvas::DeviceHelper::disposing | ( | ) |
Dispose all internal references.
Definition at line 63 of file dx_devicehelper.cxx.
References mnHDC, mpDevice, and mpOutDev.
Referenced by dxcanvas::SpriteDeviceHelper::disposing().
|
inline |
called when DumpScreenContent property is enabled on XGraphicDevice, and writes out bitmaps of current screen.
Definition at line 93 of file dx_devicehelper.hxx.
uno::Reference< rendering::XColorSpace > dxcanvas::DeviceHelper::getColorSpace | ( | ) | const |
Definition at line 204 of file dx_devicehelper.cxx.
|
inlineprotected |
Definition at line 97 of file dx_devicehelper.hxx.
References mpDevice.
uno::Any dxcanvas::DeviceHelper::getDeviceHandle | ( | ) | const |
Definition at line 180 of file dx_devicehelper.cxx.
References VclPtr< OutputDevice >::get(), and mpOutDev.
|
inlineprotected |
Definition at line 96 of file dx_devicehelper.hxx.
References mnHDC.
Referenced by getPhysicalResolution(), and getPhysicalSize().
geometry::RealSize2D dxcanvas::DeviceHelper::getPhysicalResolution | ( | ) |
Definition at line 71 of file dx_devicehelper.cxx.
References canvas::tools::createInfiniteSize2D(), ENSURE_OR_THROW, getHDC(), and mpDevice.
geometry::RealSize2D dxcanvas::DeviceHelper::getPhysicalSize | ( | ) |
Definition at line 89 of file dx_devicehelper.cxx.
References canvas::tools::createInfiniteSize2D(), ENSURE_OR_THROW, getHDC(), and mpDevice.
uno::Any dxcanvas::DeviceHelper::getSurfaceHandle | ( | ) | const |
Definition at line 185 of file dx_devicehelper.cxx.
void dxcanvas::DeviceHelper::init | ( | HDC | hdc, |
OutputDevice * | pOutputDev, | ||
css::rendering::XGraphicDevice & | rDevice | ||
) |
Init the device helper.
hdc | private or class dc of the output device. is only stored, not release |
rDevice | Ref back to owning UNO device |
uno::Any dxcanvas::DeviceHelper::isAccelerated | ( | ) | const |
Definition at line 175 of file dx_devicehelper.cxx.
|
delete |
|
private |
Definition at line 107 of file dx_devicehelper.hxx.
Referenced by disposing(), and getHDC().
|
private |
Phyical output device.
Deliberately not a refcounted reference, because of potential circular references for canvas. Needed to create bitmaps
Definition at line 106 of file dx_devicehelper.hxx.
Referenced by disposing(), getDevice(), getPhysicalResolution(), and getPhysicalSize().
|
private |
Definition at line 108 of file dx_devicehelper.hxx.
Referenced by disposing(), and getDeviceHandle().