LibreOffice Module canvas (master) 1
|
Canvas surface containing sprites. More...
#include <spritesurface.hxx>
Public Types | |
typedef ::rtl::Reference< SpriteSurface > | Reference |
Public Member Functions | |
virtual void | showSprite (const Sprite::Reference &rSprite)=0 |
Sprites should call this from XSprite::show() More... | |
virtual void | hideSprite (const Sprite::Reference &rSprite)=0 |
Sprites should call this from XSprite::hide() More... | |
virtual void | moveSprite (const Sprite::Reference &rSprite, const ::basegfx::B2DPoint &rOldPos, const ::basegfx::B2DPoint &rNewPos, const ::basegfx::B2DVector &rSpriteSize)=0 |
Sprites should call this from XSprite::move() More... | |
virtual void | updateSprite (const Sprite::Reference &rSprite, const ::basegfx::B2DPoint &rPos, const ::basegfx::B2DRange &rUpdateArea)=0 |
Sprites should call this when some part of the content has changed. More... | |
Protected Member Functions | |
~SpriteSurface () | |
Canvas surface containing sprites.
Every canvas surface that contains sprites must implement this interface, when employing the canvas base framework. The methods provided here are used from the individual sprites to notify the canvas about necessary screen updates.
Definition at line 35 of file spritesurface.hxx.
Definition at line 38 of file spritesurface.hxx.
|
inlineprotected |
Definition at line 63 of file spritesurface.hxx.
|
pure virtual |
Sprites should call this from XSprite::hide()
|
pure virtual |
Sprites should call this from XSprite::move()
|
pure virtual |
Sprites should call this from XSprite::show()
|
pure virtual |
Sprites should call this when some part of the content has changed.
That includes show/hide, i.e. for show, both showSprite() and updateSprite() must be called.