Main Page | Class Hierarchy | Class List | File List | Class Members

Canvas::TiledPixmap Class Reference

A tiled pixmap (brush). More...

#include <canvas.h>

Inheritance diagram for Canvas::TiledPixmap:

Inheritance graph
[legend]
Collaboration diagram for Canvas::TiledPixmap:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TiledPixmap (const QPixmap &pixmap, QSize size, QPoint origin, bool move_orig, Abstract *canvas=NULL)
 TiledPixmap (Abstract *canvas=NULL)
QPixmap pixmap () const
void setPixmap (const QPixmap &pixmap)
void setSize (QSize size)
QPoint origin () const
void setOrigin (QPoint size)
bool moveOrigin ()
void setMoveOrigin (bool move_orig)
virtual void paint (QPainter *p)
virtual QRect rect () const

Detailed Description

A tiled pixmap (brush).

A Pixmap is a pixmap that can be put in the canvas.


Constructor & Destructor Documentation

Canvas::TiledPixmap::TiledPixmap const QPixmap &  pixmap,
QSize  size,
QPoint  origin,
bool  move_orig,
Abstract canvas = NULL
 

Constructor, specifying the pixmap and the parameters to use

Canvas::TiledPixmap::TiledPixmap Abstract canvas = NULL  ) 
 

Constructor, creating with an empty pixmap


Member Function Documentation

bool Canvas::TiledPixmap::moveOrigin  )  [inline]
 

If the origin is moved

QPoint Canvas::TiledPixmap::origin  )  const [inline]
 

The origin

void Canvas::TiledPixmap::paint QPainter *  p  )  [virtual]
 

Override this function to draw the item with the painter

Implements Canvas::Item.

QPixmap Canvas::TiledPixmap::pixmap  )  const [inline]
 

Returns the pixmap

QRect Canvas::TiledPixmap::rect  )  const [virtual]
 

Override this function to return the rect the item will be drawn into

Implements Canvas::Item.

void Canvas::TiledPixmap::setMoveOrigin bool  move_orig  ) 
 

Sets if the origin of the brush will be moved with the pixmap

void Canvas::TiledPixmap::setOrigin QPoint  size  ) 
 

Sets the origin of the tiles

void Canvas::TiledPixmap::setPixmap const QPixmap &  pixmap  ) 
 

Sets the pixmap of the tile

void Canvas::TiledPixmap::setSize QSize  size  ) 
 

Sets the size


The documentation for this class was generated from the following files:
Generated on Thu Aug 10 03:19:31 2006 for kboard by  doxygen 1.4.3-20050530