LibreOffice Module canvas (master) 1
Public Member Functions | Protected Member Functions | List of all members
cairocanvas::Sprite Class Referenceabstract

Specialization of canvas::Sprite interface, to also provide redraw methods. More...

#include <cairo_sprite.hxx>

Inheritance diagram for cairocanvas::Sprite:
[legend]
Collaboration diagram for cairocanvas::Sprite:
[legend]

Public Member Functions

virtual void redraw (const ::cairo::CairoSharedPtr &pCairo, bool bBufferedUpdate) const =0
 Redraw sprite at the stored position. More...
 
virtual void redraw (const ::cairo::CairoSharedPtr &pCairo, const ::basegfx::B2DPoint &rOrigOutputPos, bool bBufferedUpdate) const =0
 Redraw sprite at the given position. More...
 
- Public Member Functions inherited from canvas::Sprite
virtual bool isAreaUpdateOpaque (const ::basegfx::B2DRange &rUpdateArea) const =0
 Query whether sprite update will fully cover the given area. More...
 
virtual bool isContentChanged () const =0
 Query whether content has changed. More...
 
virtual ::basegfx::B2DPoint getPosPixel () const =0
 Query position of the left, top pixel of the sprite. More...
 
virtual ::basegfx::B2DVector getSizePixel () const =0
 Query size of the sprite in pixel. More...
 
virtual ::basegfx::B2DRange getUpdateArea () const =0
 Get area that is currently covered by the sprite. More...
 
virtual double getPriority () const =0
 Query sprite priority. More...
 

Protected Member Functions

 ~Sprite ()
 
- Protected Member Functions inherited from canvas::Sprite
 ~Sprite ()
 

Additional Inherited Members

- Public Types inherited from canvas::Sprite
typedef ::rtl::Reference< SpriteReference
 

Detailed Description

Specialization of canvas::Sprite interface, to also provide redraw methods.

Definition at line 31 of file cairo_sprite.hxx.

Constructor & Destructor Documentation

◆ ~Sprite()

cairocanvas::Sprite::~Sprite ( )
inlineprotected

Definition at line 61 of file cairo_sprite.hxx.

Member Function Documentation

◆ redraw() [1/2]

virtual void cairocanvas::Sprite::redraw ( const ::cairo::CairoSharedPtr pCairo,
bool  bBufferedUpdate 
) const
pure virtual

Redraw sprite at the stored position.

Parameters
bBufferedUpdateWhen true, the redraw does not happen directly on the front buffer, but within a VDev. Used to speed up drawing.

◆ redraw() [2/2]

virtual void cairocanvas::Sprite::redraw ( const ::cairo::CairoSharedPtr pCairo,
const ::basegfx::B2DPoint rOrigOutputPos,
bool  bBufferedUpdate 
) const
pure virtual

Redraw sprite at the given position.

Parameters
rPosOutput position of the sprite. Overrides the sprite's own output position.
bBufferedUpdateWhen true, the redraw does not happen directly on the front buffer, but within a VDev. Used to speed up drawing.

The documentation for this class was generated from the following file: