khtmlImLoad::ImagePlane
#include <imageplane.h>

Public Member Functions | |
ImagePlane (unsigned int _width, unsigned int _height) | |
virtual void | ensureUpToDate (unsigned int tileX, unsigned int tileY, PixmapTile *tile)=0 |
virtual void | flushCache ()=0 |
virtual bool | isUpToDate (unsigned int tileX, unsigned int tileY, PixmapTile *tile)=0 |
![]() | |
Plane (unsigned int _width, unsigned int _height) | |
unsigned int | tileHeight (unsigned int tileY) |
unsigned int | tileWidth (unsigned int tileX) |
Public Attributes | |
ImageFormat | format |
![]() | |
unsigned int | height |
unsigned int | tilesHeight |
unsigned int | tilesWidth |
unsigned int | width |
Protected Member Functions | |
bool | checkUpToDate (const unsigned char *versions, PixmapTile *tile) |
void | setupTile (unsigned int tileX, unsigned int tileY, PixmapTile *tile) |
void | updatePixmap (PixmapTile *tile, const QImage &image, unsigned int tileX, unsigned int tileY, unsigned int offX, unsigned int offY, unsigned char *versions) |
Detailed Description
Image planes represent client-side image data, and are primarily an abstraction for pushing data to the server, as needed.
Definition at line 38 of file imageplane.h.
Member Function Documentation
◆ checkUpToDate()
|
protected |
Checks whether the tile is up-to-date for a given version array.
Definition at line 33 of file imageplane.cpp.
◆ ensureUpToDate()
|
pure virtual |
Ensures that the given pixmap tile is up-to-date.
Implemented in khtmlImLoad::RawImagePlane, and khtmlImLoad::ScaledImagePlane.
◆ isUpToDate()
|
pure virtual |
Returns true if the given pixmap tile is up-to-date.
Note that this should compare the information in the pixmap with ideal the up-to-date image using the decoding information thus far, and not with the state of the image proper. (Which might not even be in memory)
Implemented in khtmlImLoad::RawImagePlane, and khtmlImLoad::ScaledImagePlane.
◆ setupTile()
|
protected |
Creates the pixmap in the tile.
Definition at line 46 of file imageplane.cpp.
◆ updatePixmap()
|
protected |
Update the pixmap using the appropriate image, starting from offset (offX, offY), and the matching version array.
Definition at line 52 of file imageplane.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Aug 11 2022 03:57:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.