khtmlImLoad::ImagePainter

khtmlImLoad::ImagePainter Class Reference

#include <imagepainter.h>

Public Member Functions

 ImagePainter (Image *image)
 
 ImagePainter (Image *image, QSize size)
 
 ImagePainter (const ImagePainter &src)
 
 ~ImagePainter ()
 
ImagePainteroperator= (const ImagePainter &src)
 
void paint (int dx, int dy, QPainter *p, int sx=0, int sy=0, int width=-1, int height=-1)
 
void setDefaultSize ()
 
void setSize (QSize size)
 

Detailed Description

An image painter let's one paint an image at the given size.

Definition at line 40 of file imagepainter.h.

Constructor & Destructor Documentation

khtmlImLoad::ImagePainter::ImagePainter ( Image image)

Creates an image painter for the given image...

Definition at line 33 of file imagepainter.cpp.

khtmlImLoad::ImagePainter::ImagePainter ( Image image,
QSize  size 
)

Creates an image painter for the given image, of given size.

Definition at line 39 of file imagepainter.cpp.

khtmlImLoad::ImagePainter::~ImagePainter ( )

Cleans up.

Definition at line 46 of file imagepainter.cpp.

Member Function Documentation

void khtmlImLoad::ImagePainter::paint ( int  dx,
int  dy,
QPainter p,
int  sx = 0,
int  sy = 0,
int  width = -1,
int  height = -1 
)

Paints a portion of the image frame on the painter 'p' at dx and dy.

The source rectangle starts at sx, sy and has dimension width * height

Definition at line 100 of file imagepainter.cpp.

void khtmlImLoad::ImagePainter::setDefaultSize ( )

Sets the image to the default size.

Definition at line 91 of file imagepainter.cpp.

void khtmlImLoad::ImagePainter::setSize ( QSize  size)

Sets the size of the image.

Definition at line 71 of file imagepainter.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Aug 8 2020 22:45:02 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.