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:
66
67public:
69 const Point& rPt, const Size& rSz, sal_uLong nRendererId,
70 OutputDevice* pFirstFrameOutDev = nullptr );
73
74 bool matches(const OutputDevice* pOut, tools::Long nRendererId) const;
75 void drawToIndex( sal_uLong nIndex );
76 void draw( sal_uLong nIndex, VirtualDevice* pVDev=nullptr );
77 void repaint();
78 AnimationData* createAnimationData() const;
79
80 void getPosSize( const AnimationFrame& rAnm, Point& rPosPix, Size& rSizePix );
81
82 const Point& getOriginPosition() const { return maOriginPt; }
83
84 const Size& getOutSizePix() const { return maSizePx; }
85
86 void pause( bool bIsPaused ) { mbIsPaused = bIsPaused; }
87 bool isPaused() const { return mbIsPaused; }
88
89 void setMarked( bool bIsMarked ) { mbIsMarked = bIsMarked; }
90 bool isMarked() const { return mbIsMarked; }
91};
92
93/* 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:170
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
long Long
sal_uIntPtr sal_uLong
VclPtr< OutputDevice > mpRenderContext
tools::Long mnRendererId