LibreOffice Module canvas (master) 1
|
Helper interface to connect SpriteCanvas with various sprite implementations. More...
#include <sprite.hxx>
Public Types | |
typedef ::rtl::Reference< Sprite > | Reference |
Public Member Functions | |
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 () | |
Helper interface to connect SpriteCanvas with various sprite implementations.
This interface should be implemented from every sprite class, as it provides essential repaint and update area facilitates.
Definition at line 50 of file inc/base/sprite.hxx.
typedef ::rtl::Reference< Sprite > canvas::Sprite::Reference |
Definition at line 53 of file inc/base/sprite.hxx.
|
inlineprotected |
Definition at line 91 of file inc/base/sprite.hxx.
|
pure virtual |
Query position of the left, top pixel of the sprite.
Referenced by vclcanvas::SpriteCanvasHelper::genericUpdate().
|
pure virtual |
Query sprite priority.
|
pure virtual |
Query size of the sprite in pixel.
|
pure virtual |
Get area that is currently covered by the sprite.
This area is already adapted to clipping, alpha and transformation state of this sprite.
|
pure virtual |
Query whether sprite update will fully cover the given area.
Use this method to determine whether any background content (regardless of static or sprite) needs an update before rendering this sprite.
|
pure virtual |
Query whether content has changed.