LibreOffice Module canvas (master) 1
|
#include <devicehelper.hxx>
Public Member Functions | |
DeviceHelper () | |
DeviceHelper (const DeviceHelper &)=delete | |
make noncopyable More... | |
const DeviceHelper & | operator= (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 OutDevProviderSharedPtr & | getOutDev () 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... | |
Definition at line 31 of file devicehelper.hxx.
vclcanvas::DeviceHelper::DeviceHelper | ( | ) |
Definition at line 36 of file devicehelper.cxx.
|
delete |
make noncopyable
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 148 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 194 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 188 of file devicehelper.cxx.
uno::Any vclcanvas::DeviceHelper::getDeviceHandle | ( | ) | const |
Definition at line 159 of file devicehelper.cxx.
References mpOutDev.
Referenced by vclcanvas::SpriteDeviceHelper::getDeviceHandle(), and getSurfaceHandle().
|
inline |
Definition at line 73 of file devicehelper.hxx.
References mpOutDev.
geometry::RealSize2D vclcanvas::DeviceHelper::getPhysicalResolution | ( | ) |
Definition at line 44 of file devicehelper.cxx.
References canvas::tools::createInfiniteSize2D(), OutputDevice::GetMapMode(), OutputDevice::LogicToPixel(), mpOutDev, OutputDevice::SetMapMode(), and vcl::unotools::size2DFromSize().
geometry::RealSize2D vclcanvas::DeviceHelper::getPhysicalSize | ( | ) |
Definition at line 59 of file devicehelper.cxx.
References canvas::tools::createInfiniteSize2D(), OutputDevice::GetMapMode(), OutputDevice::GetOutputSizePixel(), mpOutDev, OutputDevice::PixelToLogic(), OutputDevice::SetMapMode(), and vcl::unotools::size2DFromSize().
uno::Any vclcanvas::DeviceHelper::getSurfaceHandle | ( | ) | const |
Definition at line 168 of file devicehelper.cxx.
References getDeviceHandle().
void vclcanvas::DeviceHelper::init | ( | const OutDevProviderSharedPtr & | rOutDev | ) |
Definition at line 39 of file devicehelper.cxx.
References mpOutDev.
Referenced by vclcanvas::SpriteDeviceHelper::init().
uno::Any vclcanvas::DeviceHelper::isAccelerated | ( | ) | const |
Definition at line 154 of file devicehelper.cxx.
Referenced by vclcanvas::SpriteDeviceHelper::isAccelerated().
|
delete |
|
private |
For retrieving device info.
Definition at line 82 of file devicehelper.hxx.
Referenced by disposing(), dumpScreenContent(), getDeviceHandle(), getOutDev(), getPhysicalResolution(), getPhysicalSize(), and init().