• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kviewshell

RenderedDocumentPagePixmap Class Reference

#include <renderedDocumentPagePixmap.h>

Inheritance diagram for RenderedDocumentPagePixmap:

Inheritance graph
[legend]

List of all members.


Public Member Functions

QPixmap accessiblePixmap ()
virtual QPainter * getPainter ()
virtual int height ()
unsigned int memory ()
 RenderedDocumentPagePixmap ()
void resize (int width, int height)
void resize (const QSize &size)
virtual void returnPainter (QPainter *pt)
virtual QSize size ()
virtual int width ()
virtual ~RenderedDocumentPagePixmap ()

Detailed Description

Definition at line 22 of file renderedDocumentPagePixmap.h.


Constructor & Destructor Documentation

RenderedDocumentPagePixmap::RenderedDocumentPagePixmap (  ) 

Definition at line 30 of file renderedDocumentPagePixmap.cpp.

RenderedDocumentPagePixmap::~RenderedDocumentPagePixmap (  )  [virtual]

Definition at line 35 of file renderedDocumentPagePixmap.cpp.


Member Function Documentation

QPixmap RenderedDocumentPagePixmap::accessiblePixmap (  ) 

Definition at line 65 of file renderedDocumentPagePixmap.cpp.

QPainter * RenderedDocumentPagePixmap::getPainter (  )  [virtual]

Returns a pointer to the paintDevice (in most implementation either a QPixmap, or a QPrinter).

The pointer returned is valid as long as *this RenderedDocumentPage exists. This method is used by the renderer to draw on the page.

Implements RenderedDocumentPage.

Definition at line 41 of file renderedDocumentPagePixmap.cpp.

virtual int RenderedDocumentPagePixmap::height (  )  [inline, virtual]

Returns the height of the page in pixel.

Warning:
If you are implementing DocumentRenderer::drawPage(), it may be tempting to compute the image size in pixel, using page->height() and page->width(). DON'T DO THAT. KViewShell uses transformations e.g. to rotate the page, and sets the argument 'resolution' accordingly; these changes are not reflected in page->height() and page->width(). Similar problems occur if KViewShell required a shrunken version of the page, e.g. to print multiple pages on one sheet of paper. See the documentation of DocumentRenderer::drawPage() to learn how to compute the sizes properly.

Reimplemented from RenderedDocumentPage.

Definition at line 47 of file renderedDocumentPagePixmap.h.

unsigned int RenderedDocumentPagePixmap::memory (  ) 

Returns the amount of memory used by this pixmap.

Definition at line 117 of file renderedDocumentPagePixmap.cpp.

void RenderedDocumentPagePixmap::resize ( int  width,
int  height 
)

Reimplemented from QPixmap.

Definition at line 51 of file renderedDocumentPagePixmap.cpp.

void RenderedDocumentPagePixmap::resize ( const QSize &  size  ) 

Reimplemented from QPixmap.

Definition at line 60 of file renderedDocumentPagePixmap.cpp.

virtual void RenderedDocumentPagePixmap::returnPainter ( QPainter *  pt  )  [inline, virtual]

This implementation delete the QPainter *pt (and thereby initiates the drawing).

Implements RenderedDocumentPage.

Definition at line 38 of file renderedDocumentPagePixmap.h.

virtual QSize RenderedDocumentPagePixmap::size (  )  [inline, virtual]

Returns the size of the page in pixel.

Implements RenderedDocumentPage.

Definition at line 45 of file renderedDocumentPagePixmap.h.

virtual int RenderedDocumentPagePixmap::width (  )  [inline, virtual]

Returns the width of the page in pixel.

Warning:
If you are implementing DocumentRenderer::drawPage(), it may be tempting to compute the image size in pixel, using page->height() and page->width(). DON'T DO THAT. KViewShell uses transformations e.g. to rotate the page, and sets the argument 'resolution' accordingly; these changes are not reflected in page->height() and page->width(). Similar problems occur if KViewShell required a shrunken version of the page, e.g. to print multiple pages on one sheet of paper. See the documentation of DocumentRenderer::drawPage() to learn how to compute the sizes properly.

Reimplemented from RenderedDocumentPage.

Definition at line 46 of file renderedDocumentPagePixmap.h.


The documentation for this class was generated from the following files:
  • renderedDocumentPagePixmap.h
  • renderedDocumentPagePixmap.cpp

kviewshell

Skip menu "kviewshell"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • kviewshell
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal