LibreOffice Module vcl (master) 1
AnimationRenderer.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <vcl/dllapi.h>
24#include <vcl/vclptr.hxx>
25
26class Animation;
27class OutputDevice;
28class VirtualDevice;
29struct AnimationFrame;
30
32{
39
41};
42
43
45{
46private:
47
48 friend class Animation;
49
69
70public:
72 const Point& rPt, const Size& rSz, sal_uLong nRendererId,
73 OutputDevice* pFirstFrameOutDev = nullptr );
76
77 bool matches(const OutputDevice* pOut, tools::Long nRendererId) const;
78 void drawToIndex( sal_uLong nIndex );
79 void draw( sal_uLong nIndex, VirtualDevice* pVDev=nullptr );
80 void repaint();
81 AnimationData* createAnimationData() const;
82
83 void getPosSize( const AnimationFrame& rAnm, Point& rPosPix, Size& rSizePix );
84
85 const Point& getOriginPosition() const { return maOriginPt; }
86
87 const Size& getOutSizePix() const { return maSizePx; }
88
89 void pause( bool bIsPaused ) { mbIsPaused = bIsPaused; }
90 bool isPaused() const { return mbIsPaused; }
91
92 void setMarked( bool bIsMarked ) { mbIsMarked = bIsMarked; }
93 bool isMarked() const { return mbIsMarked; }
94};
95
96/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Disposal
void setMarked(bool bIsMarked)
void pause(bool bIsPaused)
VclPtr< OutputDevice > mpRenderContext
AnimationRenderer(AnimationRenderer &&)=delete
VclPtr< VirtualDevice > mpBackground
const Point & getOriginPosition() const
const Size & getOutSizePix() const
VclPtr< VirtualDevice > mpRestore
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Definition: outdev.hxx:171
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
long Long
sal_uIntPtr sal_uLong
VclPtr< OutputDevice > mpRenderContext
tools::Long mnRendererId