LibreOffice Module canvas (master) 1
Public Member Functions | Private Attributes | List of all members
canvas::SpriteRedrawManager::SpriteInfo Class Reference

Data container for the connected components list. More...

#include <spriteredrawmanager.hxx>

Collaboration diagram for canvas::SpriteRedrawManager::SpriteInfo:
[legend]

Public Member Functions

 SpriteInfo (Sprite::Reference aRef, const ::basegfx::B2DRange &rTrueUpdateArea, bool bNeedsUpdate)
 Create sprite info. More...
 
 SpriteInfo (Sprite::Reference aRef, const ::basegfx::B2DRange &rTrueUpdateArea, bool bNeedsUpdate, bool bIsPureMove)
 Create sprite info, specify move type. More...
 
const Sprite::ReferencegetSprite () const
 
const ::basegfx::B2DRangegetUpdateArea () const
 
bool needsUpdate () const
 
bool isPureMove () const
 

Private Attributes

Sprite::Reference mpSprite
 
::basegfx::B2DRange maTrueUpdateArea
 
bool mbNeedsUpdate
 
bool mbIsPureMove
 

Detailed Description

Data container for the connected components list.

Definition at line 62 of file spriteredrawmanager.hxx.

Constructor & Destructor Documentation

◆ SpriteInfo() [1/2]

canvas::SpriteRedrawManager::SpriteInfo::SpriteInfo ( Sprite::Reference  aRef,
const ::basegfx::B2DRange rTrueUpdateArea,
bool  bNeedsUpdate 
)
inline

Create sprite info.

Parameters
rRefSprite this info represents (might be the NULL ref)
rTrueUpdateAreaTrue (un-rounded) update area this sprite has recorded
bNeedsUpdateWhen false, this sprite is not a member of the change record list. Thus, it only needs redraw if within the update area of other, changed sprites.

Definition at line 80 of file spriteredrawmanager.hxx.

References mpSprite.

◆ SpriteInfo() [2/2]

canvas::SpriteRedrawManager::SpriteInfo::SpriteInfo ( Sprite::Reference  aRef,
const ::basegfx::B2DRange rTrueUpdateArea,
bool  bNeedsUpdate,
bool  bIsPureMove 
)
inline

Create sprite info, specify move type.

Parameters
rRefSprite this info represents (might be the NULL ref)
rTrueUpdateAreaTrue (un-rounded) update area this sprite has recorded
bNeedsUpdateWhen false, this sprite is not a member of the change record list. Thus, it only needs redraw if within the update area of other, changed sprites.
bIsPureMoveWhen true, this sprite is only moved, no other changes happened.

Definition at line 109 of file spriteredrawmanager.hxx.

References mpSprite.

Member Function Documentation

◆ getSprite()

const Sprite::Reference & canvas::SpriteRedrawManager::SpriteInfo::getSprite ( ) const
inline

Definition at line 120 of file spriteredrawmanager.hxx.

References mpSprite.

◆ getUpdateArea()

const ::basegfx::B2DRange & canvas::SpriteRedrawManager::SpriteInfo::getUpdateArea ( ) const
inline

Definition at line 123 of file spriteredrawmanager.hxx.

◆ isPureMove()

bool canvas::SpriteRedrawManager::SpriteInfo::isPureMove ( ) const
inline

Definition at line 125 of file spriteredrawmanager.hxx.

◆ needsUpdate()

bool canvas::SpriteRedrawManager::SpriteInfo::needsUpdate ( ) const
inline

Definition at line 124 of file spriteredrawmanager.hxx.

Member Data Documentation

◆ maTrueUpdateArea

::basegfx::B2DRange canvas::SpriteRedrawManager::SpriteInfo::maTrueUpdateArea
private

Definition at line 129 of file spriteredrawmanager.hxx.

◆ mbIsPureMove

bool canvas::SpriteRedrawManager::SpriteInfo::mbIsPureMove
private

Definition at line 131 of file spriteredrawmanager.hxx.

◆ mbNeedsUpdate

bool canvas::SpriteRedrawManager::SpriteInfo::mbNeedsUpdate
private

Definition at line 130 of file spriteredrawmanager.hxx.

◆ mpSprite

Sprite::Reference canvas::SpriteRedrawManager::SpriteInfo::mpSprite
private

Definition at line 128 of file spriteredrawmanager.hxx.


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