KHtml

canvasimage.h
1 /*
2  KHTML image displaying library.
3 
4  Copyright (C) 2007 Maks Orlovich ([email protected])
5 
6  Permission is hereby granted, free of charge, to any person obtaining a copy
7  of this software and associated documentation files (the "Software"), to deal
8  in the Software without restriction, including without limitation the rights
9  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  copies of the Software, and to permit persons to whom the Software is
11  furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in
14  all copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20  AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 
23 */
24 #ifndef IMLOAD_CANVAS_IMAGE_H
25 #define IMLOAD_CANVAS_IMAGE_H
26 
27 class QImage;
28 
29 #include "image.h"
30 
31 namespace khtmlImLoad
32 {
33 
39 class CanvasImage : public Image
40 {
41 public:
42  CanvasImage(int width, int height);
43  void contentUpdated();
44  void resizeImage(int width, int height);
45 private:
46  void setupOriginalPlane(int width, int height);
47  void flushAllCaches();
48  static ImageOwner *trivialOwner();
49  static ImageOwner *s_trivialOwner;
50 };
51 
52 }
53 
54 #endif
An image represents a static picture or an animation, that may be incrementally loaded.
Definition: image.h:51
A CanvasImage encapsulates a QImage that will be painted on externally, in order to permit scaling of...
Definition: canvasimage.h:39
The users of Image's need to inherit off ImageOwner, in order to receive the information about their ...
Definition: imageowner.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jul 11 2020 22:45:21 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.