LibreOffice Module canvas (master) 1
|
#include <cairo_spritedevicehelper.hxx>
Public Member Functions | |
SpriteDeviceHelper () | |
void | init (vcl::Window &rOutputWindow, SpriteCanvas &rSpriteCanvas, const ::basegfx::B2ISize &rSize, bool bFullscreen) |
void | disposing () |
Dispose all internal references. More... | |
bool | showBuffer (bool, bool) |
bool | switchBuffer (bool, bool bUpdateAll) |
css::uno::Any | isAccelerated () const |
css::uno::Any | getDeviceHandle () const |
css::uno::Any | getSurfaceHandle () const |
void | notifySizeUpdate (const css::awt::Rectangle &rBounds) |
void | setSize (const ::basegfx::B2ISize &rSize) |
const ::cairo::SurfaceSharedPtr & | getBufferSurface () const |
::cairo::SurfaceSharedPtr const & | getWindowSurface () const |
::cairo::SurfaceSharedPtr | createSurface (const ::basegfx::B2ISize &rSize, int aContent) |
::cairo::SurfaceSharedPtr | createSurface (BitmapSystemData const &rData, const Size &rSize) |
const ::basegfx::B2ISize & | getSizePixel () const |
void | flush () |
SpriteDeviceHelper::flush Flush the platform native window. More... | |
Public Member Functions inherited from cairocanvas::DeviceHelper | |
DeviceHelper (const DeviceHelper &)=delete | |
make noncopyable More... | |
const DeviceHelper & | operator= (const DeviceHelper &)=delete |
DeviceHelper () | |
void | init (SurfaceProvider &rSurfaceProvider, OutputDevice &rRefDevice) |
init 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 > const & | getColorSpace () const |
void | dumpScreenContent () const |
called when DumpScreenContent property is enabled on XGraphicDevice, and writes out bitmaps of current screen. More... | |
OutputDevice * | getOutputDevice () const |
const ::cairo::SurfaceSharedPtr & | getSurface () const |
::cairo::SurfaceSharedPtr | createSurface (const ::basegfx::B2ISize &rSize, int aContent) |
::cairo::SurfaceSharedPtr | createSurface (BitmapSystemData const &rData, const Size &rSize) |
Private Attributes | |
SpriteCanvas * | mpSpriteCanvas |
Pointer to sprite canvas (owner of this helper), needed to create bitmaps. More... | |
::cairo::SurfaceSharedPtr | mpBufferSurface |
::basegfx::B2ISize | maSize |
bool | mbFullScreen |
Additional Inherited Members | |
Protected Member Functions inherited from cairocanvas::DeviceHelper | |
void | implInit (SurfaceProvider &rSurfaceProvider, OutputDevice &rRefDevice) |
init helper More... | |
void | setSize (const ::basegfx::B2ISize &rSize) |
Definition at line 35 of file cairo_spritedevicehelper.hxx.
cairocanvas::SpriteDeviceHelper::SpriteDeviceHelper | ( | ) |
Definition at line 36 of file cairo_spritedevicehelper.cxx.
References mpSpriteCanvas.
SurfaceSharedPtr cairocanvas::SpriteDeviceHelper::createSurface | ( | BitmapSystemData const & | rData, |
const Size & | rSize | ||
) |
Definition at line 132 of file cairo_spritedevicehelper.cxx.
References OutputDevice::CreateBitmapSurface(), and cairocanvas::DeviceHelper::getOutputDevice().
SurfaceSharedPtr cairocanvas::SpriteDeviceHelper::createSurface | ( | const ::basegfx::B2ISize & | rSize, |
int | aContent | ||
) |
Definition at line 124 of file cairo_spritedevicehelper.cxx.
References mpBufferSurface.
void cairocanvas::SpriteDeviceHelper::disposing | ( | ) |
Dispose all internal references.
Definition at line 55 of file cairo_spritedevicehelper.cxx.
References mpBufferSurface, and mpSpriteCanvas.
void cairocanvas::SpriteDeviceHelper::flush | ( | ) |
SpriteDeviceHelper::flush Flush the platform native window.
Flushes the window by using the internally stored mpSysData.
Definition at line 145 of file cairo_spritedevicehelper.cxx.
References getWindowSurface().
|
inline |
Definition at line 59 of file cairo_spritedevicehelper.hxx.
References mpBufferSurface.
uno::Any cairocanvas::SpriteDeviceHelper::getDeviceHandle | ( | ) | const |
Definition at line 79 of file cairo_spritedevicehelper.cxx.
References cairocanvas::DeviceHelper::getDeviceHandle().
|
inline |
Definition at line 63 of file cairo_spritedevicehelper.hxx.
References maSize.
uno::Any cairocanvas::SpriteDeviceHelper::getSurfaceHandle | ( | ) | const |
Definition at line 84 of file cairo_spritedevicehelper.cxx.
References cairocanvas::DeviceHelper::getSurfaceHandle().
SurfaceSharedPtr const & cairocanvas::SpriteDeviceHelper::getWindowSurface | ( | ) | const |
Definition at line 119 of file cairo_spritedevicehelper.cxx.
References cairocanvas::DeviceHelper::getSurface().
void cairocanvas::SpriteDeviceHelper::init | ( | vcl::Window & | rOutputWindow, |
SpriteCanvas & | rSpriteCanvas, | ||
const ::basegfx::B2ISize & | rSize, | ||
bool | bFullscreen | ||
) |
Definition at line 41 of file cairo_spritedevicehelper.cxx.
References vcl::Window::GetOutDev(), cairocanvas::DeviceHelper::init(), mbFullScreen, mpSpriteCanvas, and setSize().
uno::Any cairocanvas::SpriteDeviceHelper::isAccelerated | ( | ) | const |
Definition at line 74 of file cairo_spritedevicehelper.cxx.
void cairocanvas::SpriteDeviceHelper::notifySizeUpdate | ( | const css::awt::Rectangle & | rBounds | ) |
void cairocanvas::SpriteDeviceHelper::setSize | ( | const ::basegfx::B2ISize & | rSize | ) |
Definition at line 89 of file cairo_spritedevicehelper.cxx.
References getWindowSurface(), maSize, mpBufferSurface, mpSpriteCanvas, SAL_INFO, cairocanvas::DeviceHelper::setSize(), and cairocanvas::SpriteCanvas::setSizePixel().
Referenced by init().
bool cairocanvas::SpriteDeviceHelper::showBuffer | ( | bool | , |
bool | |||
) |
Definition at line 62 of file cairo_spritedevicehelper.cxx.
References SAL_WARN.
bool cairocanvas::SpriteDeviceHelper::switchBuffer | ( | bool | , |
bool | bUpdateAll | ||
) |
Definition at line 68 of file cairo_spritedevicehelper.cxx.
References SAL_WARN.
|
private |
Definition at line 72 of file cairo_spritedevicehelper.hxx.
Referenced by getSizePixel(), and setSize().
|
private |
Definition at line 73 of file cairo_spritedevicehelper.hxx.
Referenced by init().
|
private |
Definition at line 70 of file cairo_spritedevicehelper.hxx.
Referenced by createSurface(), disposing(), getBufferSurface(), and setSize().
|
private |
Pointer to sprite canvas (owner of this helper), needed to create bitmaps.
Definition at line 68 of file cairo_spritedevicehelper.hxx.
Referenced by disposing(), init(), and setSize().