16#include <com/sun/star/rendering/XGraphicDevice.hpp>
24namespace basegfx{
class B2IVector;
class B2DHomMatrix; }
33 class CanvasCustomSprite;
48 const css::awt::Rectangle& rViewArea );
57 const css::uno::Reference< css::rendering::XGraphicDevice >& rDevice,
58 const css::uno::Sequence< css::uno::Sequence< css::geometry::RealPoint2D > >& points );
60 const css::uno::Reference< css::rendering::XGraphicDevice >& rDevice,
61 const css::uno::Sequence< css::uno::Sequence< css::geometry::RealBezierSegment2D > >& points );
63 const css::uno::Reference< css::rendering::XGraphicDevice >& rDevice,
64 const css::geometry::IntegerSize2D& size );
66 const css::uno::Reference< css::rendering::XGraphicDevice >& rDevice,
67 const css::geometry::IntegerSize2D& size );
69 const css::uno::Reference< css::rendering::XGraphicDevice >& rDevice,
70 const css::geometry::IntegerSize2D& size );
72 const css::uno::Reference< css::rendering::XGraphicDevice >& rDevice,
73 const css::geometry::IntegerSize2D& size );
91 void show( const ::rtl::Reference< CanvasCustomSprite >& );
92 void hide( const ::rtl::Reference< CanvasCustomSprite >& );
96 const css::uno::Sequence< double >& rStops,
97 const ::basegfx::B2DHomMatrix& rTexTransform );
100 const css::uno::Sequence< double >& rStops,
101 const ::basegfx::B2DHomMatrix& rTexTransform );
104 const css::uno::Sequence< double >& rStops,
105 const ::basegfx::B2DHomMatrix& rTexTransform );
Product of this component's factory.
void useRadialGradientShader(const css::rendering::ARGBColor *pColors, const css::uno::Sequence< double > &rStops, const ::basegfx::B2DHomMatrix &rTexTransform)
enable radial gradient shader "texture" with given parameters
std::shared_ptr< TextureCache > mpTextureCache
css::uno::Reference< css::rendering::XVolatileBitmap > createVolatileAlphaBitmap(const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
css::geometry::RealSize2D getPhysicalResolution()
unsigned int mnRectangularTwoColorGradientProgram
TextureCache & getTextureCache() const
Get instance of internal texture cache.
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::Any isAccelerated() const
bool showBuffer(bool bIsVisible, bool bUpdateAll)
void notifySizeUpdate(const css::awt::Rectangle &rBounds)
unsigned int mnLinearTwoColorGradientProgram
css::uno::Reference< css::rendering::XColorSpace > getColorSpace() const
css::uno::Any getSurfaceHandle() const
::canvas::tools::ElapsedTime maLastUpdate
For the frame counter timings.
void useRectangularGradientShader(const css::rendering::ARGBColor *pColors, const css::uno::Sequence< double > &rStops, const ::basegfx::B2DHomMatrix &rTexTransform)
enable rectangular gradient shader "texture" with given parameters
IBufferContextSharedPtr createBufferContext(const ::basegfx::B2IVector &rSize) const
create a pbuffer context (for rendering into background surface)
void show(const ::rtl::Reference< CanvasCustomSprite > &)
css::uno::Reference< css::rendering::XVolatileBitmap > createVolatileBitmap(const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
const SpriteDeviceHelper & operator=(const SpriteDeviceHelper &)=delete
SpriteDeviceHelper(const SpriteDeviceHelper &)=delete
make noncopyable
css::geometry::RealSize2D getPhysicalSize()
std::set< ::rtl::Reference< CanvasCustomSprite > > maActiveSprites
unsigned int mnRadialTwoColorGradientProgram
css::uno::Reference< css::rendering::XBitmap > createCompatibleBitmap(const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
void dumpScreenContent() const
called when DumpScreenContent property is enabled on XGraphicDevice, and writes out bitmaps of curren...
void hide(const ::rtl::Reference< CanvasCustomSprite > &)
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)
void useLinearGradientShader(const css::rendering::ARGBColor *pColors, const css::uno::Sequence< double > &rStops, const ::basegfx::B2DHomMatrix &rTexTransform)
enable linear gradient shader "texture" with given parameters
unsigned int mnRectangularMultiColorGradientProgram
unsigned int mnRadialMultiColorGradientProgram
SpriteCanvas * mpSpriteCanvas
Pointer to sprite canvas (owner of this helper), needed to create bitmaps.
void disposing()
Dispose all internal references.
rtl::Reference< OpenGLContext > mxContext
css::uno::Reference< css::rendering::XBitmap > createCompatibleAlphaBitmap(const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
void init(vcl::Window &rWindow, SpriteCanvas &rSpriteCanvas, const css::awt::Rectangle &rViewArea)
css::uno::Any getDeviceHandle() const
bool switchBuffer(bool bIsVisible, bool bUpdateAll)
unsigned int mnLinearMultiColorGradientProgram
std::shared_ptr< IBufferContext > IBufferContextSharedPtr