LibreOffice Module vcl (master)  1
impanmvw.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 #ifndef INCLUDED_VCL_SOURCE_GDI_IMPANMVW_HXX
21 #define INCLUDED_VCL_SOURCE_GDI_IMPANMVW_HXX
22 
23 #include <vcl/dllapi.h>
25 #include <vcl/vclptr.hxx>
26 
27 class Animation;
28 class OutputDevice;
29 class VirtualDevice;
30 struct AnimationBitmap;
31 
32 struct AInfo
33 {
37  void* pViewData;
39  bool bPause;
40 
41  AInfo();
42 };
43 
44 
46 {
47 private:
48 
49  friend class Animation;
50 
66  bool mbIsPaused;
67  bool mbIsMarked;
70 
71 public:
72  ImplAnimView( Animation* pParent, OutputDevice* pOut,
73  const Point& rPt, const Size& rSz, sal_uLong nExtraData,
74  OutputDevice* pFirstFrameOutDev = nullptr );
75  ImplAnimView(ImplAnimView&&) = delete;
76  ~ImplAnimView();
77 
78  bool matches(const OutputDevice* pOut, tools::Long nExtraData) const;
79  void drawToPos( sal_uLong nPos );
80  void draw( sal_uLong nPos, VirtualDevice* pVDev=nullptr );
81  void repaint();
82  AInfo* createAInfo() const;
83 
84  void getPosSize( const AnimationBitmap& rAnm, Point& rPosPix, Size& rSizePix );
85 
86  const Point& getOutPos() const { return maPt; }
87 
88  const Size& getOutSizePix() const { return maSzPix; }
89 
90  void pause( bool bIsPaused ) { mbIsPaused = bIsPaused; }
91  bool isPause() const { return mbIsPaused; }
92 
93  void setMarked( bool bIsMarked ) { mbIsMarked = bIsMarked; }
94  bool isMarked() const { return mbIsMarked; }
95 };
96 
97 #endif
98 
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const Point & getOutPos() const
Definition: impanmvw.hxx:86
Animation * mpParent
Definition: impanmvw.hxx:51
void setMarked(bool bIsMarked)
Definition: impanmvw.hxx:93
void pause(bool bIsPaused)
Definition: impanmvw.hxx:90
bool mbIsMarked
Definition: impanmvw.hxx:67
Point aStartOrg
Definition: impanmvw.hxx:34
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
sal_uIntPtr sal_uLong
long Long
bool isPause() const
Definition: impanmvw.hxx:91
Size maDispSz
Definition: impanmvw.hxx:59
void * pViewData
Definition: impanmvw.hxx:37
VclPtr< OutputDevice > pOutDev
Definition: impanmvw.hxx:36
VclPtr< VirtualDevice > mpRestore
Definition: impanmvw.hxx:63
Point maPt
Definition: impanmvw.hxx:54
tools::Long mnExtraData
Definition: impanmvw.hxx:53
VclPtr< VirtualDevice > mpBackground
Definition: impanmvw.hxx:62
Size maSzPix
Definition: impanmvw.hxx:58
const Size & getOutSizePix() const
Definition: impanmvw.hxx:88
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Definition: outdev.hxx:175
Disposal meLastDisposal
Definition: impanmvw.hxx:65
bool mbIsMirroredHorizontally
Definition: impanmvw.hxx:68
bool mbIsMirroredVertically
Definition: impanmvw.hxx:69
bool bPause
Definition: impanmvw.hxx:39
bool isMarked() const
Definition: impanmvw.hxx:94
Point maDispPt
Definition: impanmvw.hxx:55
vcl::Region maClip
Definition: impanmvw.hxx:61
tools::Long nExtraData
Definition: impanmvw.hxx:38
Point maRestPt
Definition: impanmvw.hxx:56
bool mbIsPaused
Definition: impanmvw.hxx:66
Size maRestSz
Definition: impanmvw.hxx:60
sal_uLong mnActPos
Definition: impanmvw.hxx:64
VclPtr< OutputDevice > mpRenderContext
Definition: impanmvw.hxx:52
Size aStartSize
Definition: impanmvw.hxx:35
Disposal