summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqcanvas.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqcanvas.3qt')
-rw-r--r--doc/man/man3/tqcanvas.3qt66
1 files changed, 33 insertions, 33 deletions
diff --git a/doc/man/man3/tqcanvas.3qt b/doc/man/man3/tqcanvas.3qt
index 5e84ff8c7..802b50b6b 100644
--- a/doc/man/man3/tqcanvas.3qt
+++ b/doc/man/man3/tqcanvas.3qt
@@ -22,19 +22,19 @@ Inherits TQObject.
.BI "\fBTQCanvas\fR ( int w, int h )"
.br
.ti -1c
-.BI "\fBTQCanvas\fR ( QPixmap p, int h, int v, int tilewidth, int tileheight )"
+.BI "\fBTQCanvas\fR ( TQPixmap p, int h, int v, int tilewidth, int tileheight )"
.br
.ti -1c
.BI "virtual \fB~TQCanvas\fR ()"
.br
.ti -1c
-.BI "virtual void \fBsetTiles\fR ( QPixmap p, int h, int v, int tilewidth, int tileheight )"
+.BI "virtual void \fBsetTiles\fR ( TQPixmap p, int h, int v, int tilewidth, int tileheight )"
.br
.ti -1c
-.BI "virtual void \fBsetBackgroundPixmap\fR ( const QPixmap & p )"
+.BI "virtual void \fBsetBackgroundPixmap\fR ( const TQPixmap & p )"
.br
.ti -1c
-.BI "QPixmap \fBbackgroundPixmap\fR () const"
+.BI "TQPixmap \fBbackgroundPixmap\fR () const"
.br
.ti -1c
.BI "virtual void \fBsetBackgroundColor\fR ( const TQColor & c )"
@@ -73,19 +73,19 @@ Inherits TQObject.
.BI "TQSize \fBsize\fR () const"
.br
.ti -1c
-.BI "QRect \fBrect\fR () const"
+.BI "TQRect \fBrect\fR () const"
.br
.ti -1c
.BI "bool \fBonCanvas\fR ( int x, int y ) const"
.br
.ti -1c
-.BI "bool \fBonCanvas\fR ( const QPoint & p ) const"
+.BI "bool \fBonCanvas\fR ( const TQPoint & p ) const"
.br
.ti -1c
.BI "bool \fBvalidChunk\fR ( int x, int y ) const"
.br
.ti -1c
-.BI "bool \fBvalidChunk\fR ( const QPoint & p ) const"
+.BI "bool \fBvalidChunk\fR ( const TQPoint & p ) const"
.br
.ti -1c
.BI "int \fBchunkSize\fR () const"
@@ -97,25 +97,25 @@ Inherits TQObject.
.BI "virtual void \fBsetAllChanged\fR ()"
.br
.ti -1c
-.BI "virtual void \fBsetChanged\fR ( const QRect & area )"
+.BI "virtual void \fBsetChanged\fR ( const TQRect & area )"
.br
.ti -1c
-.BI "virtual void \fBsetUnchanged\fR ( const QRect & area )"
+.BI "virtual void \fBsetUnchanged\fR ( const TQRect & area )"
.br
.ti -1c
.BI "TQCanvasItemList \fBallItems\fR ()"
.br
.ti -1c
-.BI "TQCanvasItemList \fBcollisions\fR ( const QPoint & p ) const"
+.BI "TQCanvasItemList \fBcollisions\fR ( const TQPoint & p ) const"
.br
.ti -1c
-.BI "TQCanvasItemList \fBcollisions\fR ( const QRect & r ) const"
+.BI "TQCanvasItemList \fBcollisions\fR ( const TQRect & r ) const"
.br
.ti -1c
-.BI "TQCanvasItemList \fBcollisions\fR ( const QPointArray & chunklist, const TQCanvasItem * item, bool exact ) const"
+.BI "TQCanvasItemList \fBcollisions\fR ( const TQPointArray & chunklist, const TQCanvasItem * item, bool exact ) const"
.br
.ti -1c
-.BI "void \fBdrawArea\fR ( const QRect & clip, TQPainter * painter, bool dbuf = FALSE )"
+.BI "void \fBdrawArea\fR ( const TQRect & clip, TQPainter * painter, bool dbuf = FALSE )"
.br
.ti -1c
.BI "virtual void \fBsetAdvancePeriod\fR ( int ms )"
@@ -145,10 +145,10 @@ Inherits TQObject.
.SS "Protected Members"
.in +1c
.ti -1c
-.BI "virtual void \fBdrawBackground\fR ( TQPainter & painter, const QRect & clip )"
+.BI "virtual void \fBdrawBackground\fR ( TQPainter & painter, const TQRect & clip )"
.br
.ti -1c
-.BI "virtual void \fBdrawForeground\fR ( TQPainter & painter, const QRect & clip )"
+.BI "virtual void \fBdrawForeground\fR ( TQPainter & painter, const TQRect & clip )"
.br
.in -1c
.SH DESCRIPTION
@@ -220,7 +220,7 @@ Create a TQCanvas with no size. \fIparent\fR and \fIname\fR are passed to the TQ
\fBWarning:\fR You \fImust\fR call resize() at some time after creation to be able to use the canvas.
.SH "TQCanvas::TQCanvas ( int w, int h )"
Constructs a TQCanvas that is \fIw\fR pixels wide and \fIh\fR pixels high.
-.SH "TQCanvas::TQCanvas ( QPixmap p, int h, int v, int tilewidth, int tileheight )"
+.SH "TQCanvas::TQCanvas ( TQPixmap p, int h, int v, int tilewidth, int tileheight )"
Constructs a TQCanvas which will be composed of \fIh\fR tiles horizontally and \fIv\fR tiles vertically. Each tile will be an image \fItilewidth\fR by \fItileheight\fR pixels taken from pixmap \fIp\fR.
.PP
The pixmap \fIp\fR is a list of tiles, arranged left to right, (and in the case of pixmaps that have multiple rows of tiles, top to bottom), with tile 0 in the top-left corner, tile 1 next to the right, and so on, e.g.
@@ -253,7 +253,7 @@ Returns the color set by setBackgroundColor(). By default, this is white.
This function is not a reimplementation of TQWidget::backgroundColor() (TQCanvas is not a subclass of TQWidget), but all TQCanvasViews that are viewing the canvas will set their backgrounds to this color.
.PP
See also setBackgroundColor() and backgroundPixmap().
-.SH "QPixmap TQCanvas::backgroundPixmap () const"
+.SH "TQPixmap TQCanvas::backgroundPixmap () const"
Returns the pixmap set by setBackgroundPixmap(). By default, this is a null pixmap.
.PP
See also setBackgroundPixmap() and backgroundColor().
@@ -261,26 +261,26 @@ See also setBackgroundPixmap() and backgroundColor().
Returns the chunk size of the canvas.
.PP
See also retune().
-.SH "TQCanvasItemList TQCanvas::collisions ( const QPoint & p ) const"
+.SH "TQCanvasItemList TQCanvas::collisions ( const TQPoint & p ) const"
Returns a list of canvas items that collide with the point \fIp\fR. The list is ordered by z coordinates, from highest z coordinate (front-most item) to lowest z coordinate (rear-most item).
-.SH "TQCanvasItemList TQCanvas::collisions ( const QRect & r ) const"
+.SH "TQCanvasItemList TQCanvas::collisions ( const TQRect & r ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns a list of items which collide with the rectangle \fIr\fR. The list is ordered by z coordinates, from highest z coordinate (front-most item) to lowest z coordinate (rear-most item).
-.SH "TQCanvasItemList TQCanvas::collisions ( const QPointArray & chunklist, const TQCanvasItem * item, bool exact ) const"
+.SH "TQCanvasItemList TQCanvas::collisions ( const TQPointArray & chunklist, const TQCanvasItem * item, bool exact ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns a list of canvas items which intersect with the chunks listed in \fIchunklist\fR, excluding \fIitem\fR. If \fIexact\fR is TRUE, only those which actually collide with \fIitem\fR are returned; otherwise canvas items are included just for being in the chunks.
.PP
This is a utility function mainly used to implement the simpler TQCanvasItem::collisions() function.
-.SH "void TQCanvas::drawArea ( const QRect & clip, TQPainter * painter, bool dbuf = FALSE )"
+.SH "void TQCanvas::drawArea ( const TQRect & clip, TQPainter * painter, bool dbuf = FALSE )"
Paints all canvas items that are in the area \fIclip\fR to \fIpainter\fR, using double-buffering if \fIdbuf\fR is TRUE.
.PP
e.g. to print the canvas to a printer:
.PP
.nf
.br
- QPrinter pr;
+ TQPrinter pr;
.br
if ( pr.setup() ) {
.br
@@ -293,16 +293,16 @@ e.g. to print the canvas to a printer:
.fi
.PP
Example: canvas/canvas.cpp.
-.SH "void TQCanvas::drawBackground ( TQPainter & painter, const QRect & clip )\fC [virtual protected]\fR"
+.SH "void TQCanvas::drawBackground ( TQPainter & painter, const TQRect & clip )\fC [virtual protected]\fR"
This virtual function is called for all updates of the canvas. It renders any background graphics using the painter \fIpainter\fR, in the area \fIclip\fR. If the canvas has a background pixmap or a tiled background, that graphic is used, otherwise the canvas is cleared using the background color.
.PP
-If the graphics for an area change, you must explicitly call setChanged(const QRect&) for the result to be visible when update() is next called.
+If the graphics for an area change, you must explicitly call setChanged(const TQRect&) for the result to be visible when update() is next called.
.PP
See also setBackgroundColor(), setBackgroundPixmap(), and setTiles().
-.SH "void TQCanvas::drawForeground ( TQPainter & painter, const QRect & clip )\fC [virtual protected]\fR"
+.SH "void TQCanvas::drawForeground ( TQPainter & painter, const TQRect & clip )\fC [virtual protected]\fR"
This virtual function is called for all updates of the canvas. It renders any foreground graphics using the painter \fIpainter\fR, in the area \fIclip\fR.
.PP
-If the graphics for an area change, you must explicitly call setChanged(const QRect&) for the result to be visible when update() is next called.
+If the graphics for an area change, you must explicitly call setChanged(const TQRect&) for the result to be visible when update() is next called.
.PP
The default is to draw nothing.
.SH "int TQCanvas::height () const"
@@ -313,13 +313,13 @@ Example: canvas/canvas.cpp.
Returns TRUE if the pixel position (\fIx\fR, \fIy\fR) is on the canvas; otherwise returns FALSE.
.PP
See also validChunk().
-.SH "bool TQCanvas::onCanvas ( const QPoint & p ) const"
+.SH "bool TQCanvas::onCanvas ( const TQPoint & p ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns TRUE if the pixel position \fIp\fR is on the canvas; otherwise returns FALSE.
.PP
See also validChunk().
-.SH "QRect TQCanvas::rect () const"
+.SH "TQRect TQCanvas::rect () const"
Returns a rectangle the size of the canvas.
.SH "void TQCanvas::resize ( int w, int h )\fC [virtual]\fR"
Changes the size of the canvas to have a width of \fIw\fR and a height of \fIh\fR. This is a slow operation.
@@ -348,11 +348,11 @@ Marks the whole canvas as changed. All views of the canvas will be entirely redr
Sets the solid background to be the color \fIc\fR.
.PP
See also backgroundColor(), setBackgroundPixmap(), and setTiles().
-.SH "void TQCanvas::setBackgroundPixmap ( const QPixmap & p )\fC [virtual]\fR"
+.SH "void TQCanvas::setBackgroundPixmap ( const TQPixmap & p )\fC [virtual]\fR"
Sets the solid background to be the pixmap \fIp\fR repeated as necessary to cover the entire canvas.
.PP
See also backgroundPixmap(), setBackgroundColor(), and setTiles().
-.SH "void TQCanvas::setChanged ( const QRect & area )\fC [virtual]\fR"
+.SH "void TQCanvas::setChanged ( const TQRect & area )\fC [virtual]\fR"
Marks \fIarea\fR as changed. This \fIarea\fR will be redrawn in all views that are showing it when update() is called next.
.SH "void TQCanvas::setDoubleBuffering ( bool y )\fC [virtual]\fR"
If \fIy\fR is TRUE (the default) double-buffering is switched on; otherwise double-buffering is switched off.
@@ -373,7 +373,7 @@ l - l. 0 1 2 3 4 5 6
</center>
.PP
See also tile() and setTiles().
-.SH "void TQCanvas::setTiles ( QPixmap p, int h, int v, int tilewidth, int tileheight )\fC [virtual]\fR"
+.SH "void TQCanvas::setTiles ( TQPixmap p, int h, int v, int tilewidth, int tileheight )\fC [virtual]\fR"
Sets the TQCanvas to be composed of \fIh\fR tiles horizontally and \fIv\fR tiles vertically. Each tile will be an image \fItilewidth\fR by \fItileheight\fR pixels from pixmap \fIp\fR.
.PP
The pixmap \fIp\fR is a list of tiles, arranged left to right, (and in the case of pixmaps that have multiple rows of tiles, top to bottom), with tile 0 in the top-left corner, tile 1 next to the right, and so on, e.g.
@@ -390,7 +390,7 @@ If the canvas is larger than the matrix of tiles, the entire matrix is repeated
The width and height of \fIp\fR must be a multiple of \fItilewidth\fR and \fItileheight\fR. If they are not the function will do nothing.
.PP
If you want to unset any tiling set, then just pass in a null pixmap and 0 for \fIh\fR, \fIv\fR, \fItilewidth\fR, and \fItileheight\fR.
-.SH "void TQCanvas::setUnchanged ( const QRect & area )\fC [virtual]\fR"
+.SH "void TQCanvas::setUnchanged ( const TQRect & area )\fC [virtual]\fR"
Marks \fIarea\fR as \fIunchanged\fR. The area will \fInot\fR be redrawn in the views for the next update(), unless it is marked or changed again before the next call to update().
.SH "void TQCanvas::setUpdatePeriod ( int ms )\fC [virtual]\fR"
Sets the canvas to call update() every \fIms\fR milliseconds. Any previous setting by setAdvancePeriod() or setUpdatePeriod() is overridden.
@@ -420,7 +420,7 @@ See also advance().
Returns TRUE if the chunk position (\fIx\fR, \fIy\fR) is on the canvas; otherwise returns FALSE.
.PP
See also onCanvas().
-.SH "bool TQCanvas::validChunk ( const QPoint & p ) const"
+.SH "bool TQCanvas::validChunk ( const TQPoint & p ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns TRUE if the chunk position \fIp\fR is on the canvas; otherwise returns FALSE.