Search for usage in LXR

khtmlImLoad::ImagePainter Class Reference

#include <imagepainter.h>

Public Member Functions

 ImagePainter (const ImagePainter &src)
 ImagePainter (Image *image)
 ImagePainter (Image *image, QSize size)
 ~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

◆ ImagePainter() [1/2]

khtmlImLoad::ImagePainter::ImagePainter ( Image image)

Creates an image painter for the given image...

Definition at line 33 of file imagepainter.cpp.

◆ ImagePainter() [2/2]

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.

◆ ~ImagePainter()

khtmlImLoad::ImagePainter::~ImagePainter ( )

Cleans up.

Definition at line 46 of file imagepainter.cpp.

Member Function Documentation

◆ paint()

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.

◆ setDefaultSize()

void khtmlImLoad::ImagePainter::setDefaultSize ( )

Sets the image to the default size.

Definition at line 91 of file imagepainter.cpp.

◆ setSize()

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-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.