30using namespace ::
cairo;
43 const ::basegfx::B2ISize& rSize,
64 SAL_WARN(
"canvas.cairo",
"showBuffer Not supposed to be called, handled by SpriteCanvas");
70 SAL_WARN(
"canvas.cairo",
"showBuffer Not supposed to be called, handled by SpriteCanvas");
76 return css::uno::Any(
true);
93 "device size " << rSize.getWidth() <<
" x " << rSize.getHeight());
105 rSize.getWidth(), rSize.getHeight() );
127 return mpBufferSurface->getSimilar( aContent, rSize.getWidth(), rSize.getHeight() );
149 pWinSurface->flush();
cairo::SurfaceSharedPtr CreateBitmapSurface(const BitmapSystemData &rData, const Size &rSize) const
void init(SurfaceProvider &rSurfaceProvider, OutputDevice &rRefDevice)
init helper
void setSize(const ::basegfx::B2ISize &rSize)
const ::cairo::SurfaceSharedPtr & getSurface() const
css::uno::Any getSurfaceHandle() const
OutputDevice * getOutputDevice() const
css::uno::Any getDeviceHandle() const
Product of this component's factory.
void setSizePixel(const ::basegfx::B2ISize &rSize)
bool showBuffer(bool, bool)
::cairo::SurfaceSharedPtr const & getWindowSurface() const
void flush()
SpriteDeviceHelper::flush Flush the platform native window.
void notifySizeUpdate(const css::awt::Rectangle &rBounds)
::basegfx::B2ISize maSize
::cairo::SurfaceSharedPtr mpBufferSurface
css::uno::Any getSurfaceHandle() const
css::uno::Any getDeviceHandle() const
SpriteCanvas * mpSpriteCanvas
Pointer to sprite canvas (owner of this helper), needed to create bitmaps.
void setSize(const ::basegfx::B2ISize &rSize)
bool switchBuffer(bool, bool bUpdateAll)
void disposing()
Dispose all internal references.
::cairo::SurfaceSharedPtr createSurface(const ::basegfx::B2ISize &rSize, int aContent)
void init(vcl::Window &rOutputWindow, SpriteCanvas &rSpriteCanvas, const ::basegfx::B2ISize &rSize, bool bFullscreen)
css::uno::Any isAccelerated() const
::OutputDevice const * GetOutDev() const
#define SAL_WARN(area, stream)
#define SAL_INFO(area, stream)
std::shared_ptr< Surface > SurfaceSharedPtr
const cppcanvas::SpriteCanvasSharedPtr mpSpriteCanvas