LibreOffice Module vcl (master) 1
|
#include <AnimationRenderer.hxx>
Public Member Functions | |
AnimationRenderer (Animation *pParent, OutputDevice *pOut, const Point &rPt, const Size &rSz, sal_uLong nRendererId, OutputDevice *pFirstFrameOutDev=nullptr) | |
AnimationRenderer (AnimationRenderer &&)=delete | |
~AnimationRenderer () | |
bool | matches (const OutputDevice *pOut, tools::Long nRendererId) const |
void | drawToIndex (sal_uLong nIndex) |
void | draw (sal_uLong nIndex, VirtualDevice *pVDev=nullptr) |
void | repaint () |
AnimationData * | createAnimationData () const |
void | getPosSize (const AnimationFrame &rAnm, Point &rPosPix, Size &rSizePix) |
const Point & | getOriginPosition () const |
const Size & | getOutSizePix () const |
void | pause (bool bIsPaused) |
bool | isPaused () const |
void | setMarked (bool bIsMarked) |
bool | isMarked () const |
Definition at line 44 of file AnimationRenderer.hxx.
AnimationRenderer::AnimationRenderer | ( | Animation * | pParent, |
OutputDevice * | pOut, | ||
const Point & | rPt, | ||
const Size & | rSz, | ||
sal_uLong | nRendererId, | ||
OutputDevice * | pFirstFrameOutDev = nullptr |
||
) |
Definition at line 29 of file AnimationRenderer.cxx.
References Back, Create(), drawToIndex(), OutputDevice::GetClipRegion(), Height, Size::Height(), Animation::ImplGetCurPos(), Animation::ImplIncAnimCount(), maClip, maClip, maDispPt, maDispSz, maLogicalSize, maOriginPt, maSizePx, mbIsMirroredHorizontally, mbIsMirroredVertically, mpBackground, mpBackground, mpParent, mpParent, mpRenderContext, pOut, OutputDevice::SaveBackground(), Size::setHeight(), VirtualDevice::SetOutputSizePixel(), Size::setWidth(), Point::setX(), Point::setY(), Width, Size::Width(), Point::X(), and Point::Y().
|
delete |
AnimationRenderer::~AnimationRenderer | ( | ) |
Definition at line 92 of file AnimationRenderer.cxx.
References VclPtr< reference_type >::disposeAndClear(), Animation::ImplDecAnimCount(), mpBackground, and mpRestore.
AnimationData * AnimationRenderer::createAnimationData | ( | ) | const |
Definition at line 312 of file AnimationRenderer.cxx.
References maLogicalSize, maOriginPt, AnimationData::maOriginStartPt, AnimationData::maStartSize, AnimationData::mbIsPaused, mbIsPaused, AnimationData::mnRendererId, mnRendererId, AnimationData::mpRenderContext, mpRenderContext, and AnimationData::mpRendererData.
void AnimationRenderer::draw | ( | sal_uLong | nIndex, |
VirtualDevice * | pVDev = nullptr |
||
) |
Definition at line 176 of file AnimationRenderer.cxx.
References Back, Animation::Count(), VclPtr< reference_type >::Create(), VclPtr< reference_type >::disposeAndClear(), OutputDevice::DrawBitmapEx(), OutputDevice::DrawOutDev(), VclPtr< reference_type >::get(), Animation::Get(), OutputDevice::GetOutDevType(), getPosSize(), Size::Height(), vcl::Window::ImplGetWindowImpl(), tools::Rectangle::Intersection(), tools::Rectangle::IsEmpty(), vcl::Region::IsNull(), AnimationFrame::maBitmapEx, maClip, maDispPt, maDispSz, maRestPt, maRestSz, maSizePx, mbIsMirroredHorizontally, mbIsMirroredVertically, mbIsPaused, AnimationFrame::meDisposal, meLastDisposal, mnActIndex, mpBackground, WindowImpl::mpFrameData, mpParent, mpRenderContext, mpRestore, nIndex, Not, OUTDEV_WINDOW, VclPtr< reference_type >::reset(), Size::setHeight(), setMarked(), VirtualDevice::SetOutputSizePixel(), Size::setWidth(), Point::setX(), Point::setY(), Size::Width(), Point::X(), and Point::Y().
Referenced by drawToIndex().
void AnimationRenderer::drawToIndex | ( | sal_uLong | nIndex | ) |
Definition at line 142 of file AnimationRenderer.cxx.
References Animation::Count(), draw(), VclPtr< reference_type >::get(), OutputDevice::GetOutDevType(), i, vcl::Window::ImplGetWindowImpl(), vcl::Region::IsNull(), maClip, maDispPt, maDispSz, maSizePx, WindowImpl::mpFrameData, mpParent, mpRenderContext, nIndex, and OUTDEV_WINDOW.
Referenced by AnimationRenderer(), and repaint().
|
inline |
Definition at line 82 of file AnimationRenderer.hxx.
|
inline |
Definition at line 84 of file AnimationRenderer.hxx.
void AnimationRenderer::getPosSize | ( | const AnimationFrame & | rAnm, |
Point & | rPosPix, | ||
Size & | rSizePix | ||
) |
Definition at line 105 of file AnimationRenderer.cxx.
References FRound(), Animation::GetDisplaySizePixel(), Size::Height(), AnimationFrame::maPositionPixel, AnimationFrame::maSizePixel, maSizePx, mbIsMirroredHorizontally, mbIsMirroredVertically, mpParent, Size::setHeight(), Size::setWidth(), Point::setX(), Point::setY(), Size::Width(), Point::X(), and Point::Y().
Referenced by draw().
|
inline |
Definition at line 90 of file AnimationRenderer.hxx.
|
inline |
Definition at line 87 of file AnimationRenderer.hxx.
bool AnimationRenderer::matches | ( | const OutputDevice * | pOut, |
tools::Long | nRendererId | ||
) | const |
Definition at line 100 of file AnimationRenderer.cxx.
References mnRendererId, mpRenderContext, and pOut.
|
inline |
Definition at line 86 of file AnimationRenderer.hxx.
Referenced by Animation::PopulateRenderers().
void AnimationRenderer::repaint | ( | ) |
Definition at line 301 of file AnimationRenderer.cxx.
References drawToIndex(), maDispPt, maDispSz, maSizePx, mbIsPaused, mnActIndex, mpBackground, mpRenderContext, and OutputDevice::SaveBackground().
|
inline |
Definition at line 89 of file AnimationRenderer.hxx.
Referenced by draw(), and Animation::PopulateRenderers().
|
private |
Definition at line 57 of file AnimationRenderer.hxx.
Referenced by AnimationRenderer(), draw(), and drawToIndex().
|
private |
Definition at line 51 of file AnimationRenderer.hxx.
Referenced by AnimationRenderer(), draw(), drawToIndex(), and repaint().
|
private |
Definition at line 55 of file AnimationRenderer.hxx.
Referenced by AnimationRenderer(), draw(), drawToIndex(), and repaint().
|
private |
Definition at line 53 of file AnimationRenderer.hxx.
Referenced by AnimationRenderer(), and createAnimationData().
|
private |
Definition at line 50 of file AnimationRenderer.hxx.
Referenced by AnimationRenderer(), and createAnimationData().
|
private |
Definition at line 52 of file AnimationRenderer.hxx.
Referenced by draw().
|
private |
Definition at line 56 of file AnimationRenderer.hxx.
Referenced by draw().
|
private |
Definition at line 54 of file AnimationRenderer.hxx.
Referenced by AnimationRenderer(), draw(), drawToIndex(), getPosSize(), and repaint().
|
private |
Definition at line 63 of file AnimationRenderer.hxx.
|
private |
Definition at line 64 of file AnimationRenderer.hxx.
Referenced by AnimationRenderer(), draw(), and getPosSize().
|
private |
Definition at line 65 of file AnimationRenderer.hxx.
Referenced by AnimationRenderer(), draw(), and getPosSize().
|
private |
Definition at line 62 of file AnimationRenderer.hxx.
Referenced by createAnimationData(), draw(), and repaint().
|
private |
Definition at line 61 of file AnimationRenderer.hxx.
Referenced by draw().
|
private |
Definition at line 60 of file AnimationRenderer.hxx.
|
private |
Definition at line 49 of file AnimationRenderer.hxx.
Referenced by createAnimationData(), and matches().
|
private |
Definition at line 58 of file AnimationRenderer.hxx.
Referenced by AnimationRenderer(), draw(), repaint(), and ~AnimationRenderer().
|
private |
Definition at line 47 of file AnimationRenderer.hxx.
Referenced by AnimationRenderer(), draw(), drawToIndex(), and getPosSize().
|
private |
Definition at line 48 of file AnimationRenderer.hxx.
Referenced by AnimationRenderer(), createAnimationData(), draw(), drawToIndex(), matches(), and repaint().
|
private |
Definition at line 59 of file AnimationRenderer.hxx.
Referenced by draw(), and ~AnimationRenderer().