summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqcanvassprite.3qt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-05-31 11:32:43 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-05-31 11:59:34 +0900
commit68b81013e8668f50fc18b7e26a520ec93a7a1251 (patch)
treed6d15d07cb34e5443a10b71f91adee1473906263 /doc/man/man3/tqcanvassprite.3qt
parent1702a6daff27f5d3e6fdac16962d1828df6ca270 (diff)
downloadtqt-68b81013.tar.gz
tqt-68b81013.zip
Rename nt* canvas related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/man/man3/tqcanvassprite.3qt')
-rw-r--r--doc/man/man3/tqcanvassprite.3qt116
1 files changed, 58 insertions, 58 deletions
diff --git a/doc/man/man3/tqcanvassprite.3qt b/doc/man/man3/tqcanvassprite.3qt
index 8a3e194b8..adcc403bb 100644
--- a/doc/man/man3/tqcanvassprite.3qt
+++ b/doc/man/man3/tqcanvassprite.3qt
@@ -1,5 +1,5 @@
'\" t
-.TH QCanvasSprite 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
+.TH TQCanvasSprite 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@@ -7,22 +7,22 @@
.ad l
.nh
.SH NAME
-QCanvasSprite \- Animated canvas item on a QCanvas
+TQCanvasSprite \- Animated canvas item on a TQCanvas
.SH SYNOPSIS
-\fC#include <ntqcanvas.h>\fR
+\fC#include <tqcanvas.h>\fR
.PP
-Inherits QCanvasItem.
+Inherits TQCanvasItem.
.PP
.SS "Public Members"
.in +1c
.ti -1c
-.BI "\fBQCanvasSprite\fR ( QCanvasPixmapArray * a, QCanvas * canvas )"
+.BI "\fBTQCanvasSprite\fR ( TQCanvasPixmapArray * a, TQCanvas * canvas )"
.br
.ti -1c
-.BI "void \fBsetSequence\fR ( QCanvasPixmapArray * a )"
+.BI "void \fBsetSequence\fR ( TQCanvasPixmapArray * a )"
.br
.ti -1c
-.BI "virtual \fB~QCanvasSprite\fR ()"
+.BI "virtual \fB~TQCanvasSprite\fR ()"
.br
.ti -1c
.BI "virtual void \fBmove\fR ( double nx, double ny, int nf )"
@@ -79,13 +79,13 @@ Inherits QCanvasItem.
.BI "int \fBbottomEdge\fR ( int ny ) const"
.br
.ti -1c
-.BI "QCanvasPixmap * \fBimage\fR () const"
+.BI "TQCanvasPixmap * \fBimage\fR () const"
.br
.ti -1c
-.BI "virtual QCanvasPixmap * \fBimageAdvanced\fR () const"
+.BI "virtual TQCanvasPixmap * \fBimageAdvanced\fR () const"
.br
.ti -1c
-.BI "QCanvasPixmap * \fBimage\fR ( int f ) const"
+.BI "TQCanvasPixmap * \fBimage\fR ( int f ) const"
.br
.ti -1c
.BI "virtual void \fBadvance\fR ( int phase )"
@@ -95,9 +95,9 @@ Inherits QCanvasItem.
.br
.in -1c
.SH DESCRIPTION
-The QCanvasSprite class provides an animated canvas item on a QCanvas.
+The TQCanvasSprite class provides an animated canvas item on a TQCanvas.
.PP
-A canvas sprite is an object which can contain any number of images (referred to as frames), only one of which is current, i.e. displayed, at any one time. The images can be passed in the constructor or set or changed later with setSequence(). If you subclass QCanvasSprite you can change the frame that is displayed periodically, e.g. whenever QCanvasItem::advance(1) is called to create the effect of animation.
+A canvas sprite is an object which can contain any number of images (referred to as frames), only one of which is current, i.e. displayed, at any one time. The images can be passed in the constructor or set or changed later with setSequence(). If you subclass TQCanvasSprite you can change the frame that is displayed periodically, e.g. whenever TQCanvasItem::advance(1) is called to create the effect of animation.
.PP
The current frame can be set with setFrame() or with move(). The number of frames available is given by frameCount(). The bounding rectangle of the current frame is returned by boundingRect().
.PP
@@ -107,110 +107,110 @@ Use width() and height() to retrieve the dimensions of the current frame.
.PP
Use leftEdge() and rightEdge() to retrieve the current frame's left-hand and right-hand x-coordinates respectively. Use bottomEdge() and topEdge() to retrieve the current frame's bottom and top y-coordinates respectively. These functions have an overload which will accept an integer frame number to retrieve the coordinates of a particular frame.
.PP
-QCanvasSprite draws very quickly, at the expense of memory.
+TQCanvasSprite draws very quickly, at the expense of memory.
.PP
The current frame's image can be drawn on a painter with draw().
.PP
-Like any other canvas item, canvas sprites can be moved with move() which sets the x and y coordinates and the frame number, as well as with QCanvasItem::move() and QCanvasItem::moveBy(), or by setting coordinates with QCanvasItem::setX(), QCanvasItem::setY() and QCanvasItem::setZ().
+Like any other canvas item, canvas sprites can be moved with move() which sets the x and y coordinates and the frame number, as well as with TQCanvasItem::move() and TQCanvasItem::moveBy(), or by setting coordinates with TQCanvasItem::setX(), TQCanvasItem::setY() and TQCanvasItem::setZ().
.PP
See also Graphics Classes and Image Processing Classes.
.SS "Member Type Documentation"
-.SH "QCanvasSprite::FrameAnimationType"
-This enum is used to identify the different types of frame animation offered by QCanvasSprite.
+.SH "TQCanvasSprite::FrameAnimationType"
+This enum is used to identify the different types of frame animation offered by TQCanvasSprite.
.TP
-\fCQCanvasSprite::Cycle\fR - at each advance the frame number will be incremented by 1 (modulo the frame count).
+\fCTQCanvasSprite::Cycle\fR - at each advance the frame number will be incremented by 1 (modulo the frame count).
.TP
-\fCQCanvasSprite::Oscillate\fR - at each advance the frame number will be incremented by 1 up to the frame count then decremented to by 1 to 0, repeating this sequence forever.
+\fCTQCanvasSprite::Oscillate\fR - at each advance the frame number will be incremented by 1 up to the frame count then decremented to by 1 to 0, repeating this sequence forever.
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "QCanvasSprite::QCanvasSprite ( QCanvasPixmapArray * a, QCanvas * canvas )"
-Constructs a QCanvasSprite which uses images from the QCanvasPixmapArray \fIa\fR.
+.SH "TQCanvasSprite::TQCanvasSprite ( TQCanvasPixmapArray * a, TQCanvas * canvas )"
+Constructs a TQCanvasSprite which uses images from the TQCanvasPixmapArray \fIa\fR.
.PP
The sprite in initially positioned at (0, 0) on \fIcanvas\fR, using frame 0.
-.SH "QCanvasSprite::~QCanvasSprite ()\fC [virtual]\fR"
+.SH "TQCanvasSprite::~TQCanvasSprite ()\fC [virtual]\fR"
Destroys the sprite and removes it from the canvas. Does \fInot\fR delete the images.
-.SH "void QCanvasSprite::advance ( int phase )\fC [virtual]\fR"
-Extends the default QCanvasItem implementation to provide the functionality of setFrameAnimation().
+.SH "void TQCanvasSprite::advance ( int phase )\fC [virtual]\fR"
+Extends the default TQCanvasItem implementation to provide the functionality of setFrameAnimation().
.PP
-The \fIphase\fR is 0 or 1: see QCanvasItem::advance() for details.
+The \fIphase\fR is 0 or 1: see TQCanvasItem::advance() for details.
.PP
-See also QCanvasItem::advance() and setVelocity().
+See also TQCanvasItem::advance() and setVelocity().
.PP
Example: canvas/canvas.cpp.
.PP
-Reimplemented from QCanvasItem.
-.SH "int QCanvasSprite::bottomEdge () const"
+Reimplemented from TQCanvasItem.
+.SH "int TQCanvasSprite::bottomEdge () const"
Returns the y-coordinate of the current bottom edge of the sprite. (This may change as the sprite animates since different frames may have different bottom edges.)
.PP
See also leftEdge(), rightEdge(), and topEdge().
-.SH "int QCanvasSprite::bottomEdge ( int ny ) const"
+.SH "int TQCanvasSprite::bottomEdge ( int ny ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns what the y-coordinate of the top edge of the sprite would be if the sprite (actually its hotspot) were moved to y-position \fIny\fR.
.PP
See also leftEdge(), rightEdge(), and topEdge().
-.SH "QRect QCanvasSprite::boundingRect () const\fC [virtual]\fR"
+.SH "QRect TQCanvasSprite::boundingRect () const\fC [virtual]\fR"
Returns the bounding rectangle for the image in the sprite's current frame. This assumes that the images are tightly cropped (i.e. do not have transparent pixels all along a side).
.PP
-Reimplemented from QCanvasItem.
-.SH "void QCanvasSprite::draw ( QPainter & painter )\fC [virtual]\fR"
+Reimplemented from TQCanvasItem.
+.SH "void TQCanvasSprite::draw ( QPainter & painter )\fC [virtual]\fR"
Draws the current frame's image at the sprite's current position on painter \fIpainter\fR.
.PP
-Reimplemented from QCanvasItem.
-.SH "int QCanvasSprite::frame () const"
-Returns the index of the current animation frame in the QCanvasSprite's QCanvasPixmapArray.
+Reimplemented from TQCanvasItem.
+.SH "int TQCanvasSprite::frame () const"
+Returns the index of the current animation frame in the TQCanvasSprite's TQCanvasPixmapArray.
.PP
See also setFrame() and move().
-.SH "int QCanvasSprite::frameCount () const"
-Returns the number of frames in the QCanvasSprite's QCanvasPixmapArray.
-.SH "int QCanvasSprite::height () const"
+.SH "int TQCanvasSprite::frameCount () const"
+Returns the number of frames in the TQCanvasSprite's TQCanvasPixmapArray.
+.SH "int TQCanvasSprite::height () const"
The height of the sprite for the current frame's image.
.PP
See also frame().
-.SH "QCanvasPixmap * QCanvasSprite::image () const"
+.SH "TQCanvasPixmap * TQCanvasSprite::image () const"
Returns the current frame's image.
.PP
See also frame() and setFrame().
-.SH "QCanvasPixmap * QCanvasSprite::image ( int f ) const"
+.SH "TQCanvasPixmap * TQCanvasSprite::image ( int f ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns the image for frame \fIf\fR. Does not do any bounds checking on \fIf\fR.
-.SH "QCanvasPixmap * QCanvasSprite::imageAdvanced () const\fC [virtual]\fR"
+.SH "TQCanvasPixmap * TQCanvasSprite::imageAdvanced () const\fC [virtual]\fR"
Returns the image the sprite \fIwill\fR have after advance(1) is called. By default this is the same as image().
-.SH "int QCanvasSprite::leftEdge () const"
+.SH "int TQCanvasSprite::leftEdge () const"
Returns the x-coordinate of the current left edge of the sprite. (This may change as the sprite animates since different frames may have different left edges.)
.PP
See also rightEdge(), bottomEdge(), and topEdge().
-.SH "int QCanvasSprite::leftEdge ( int nx ) const"
+.SH "int TQCanvasSprite::leftEdge ( int nx ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns what the x-coordinate of the left edge of the sprite would be if the sprite (actually its hotspot) were moved to x-position \fInx\fR.
.PP
See also rightEdge(), bottomEdge(), and topEdge().
-.SH "void QCanvasSprite::move ( double nx, double ny, int nf )\fC [virtual]\fR"
+.SH "void TQCanvasSprite::move ( double nx, double ny, int nf )\fC [virtual]\fR"
Set the position of the sprite to \fInx\fR, \fIny\fR and the current frame to \fInf\fR. \fInf\fR will be ignored if it is larger than frameCount() or smaller than 0.
-.SH "int QCanvasSprite::rightEdge () const"
+.SH "int TQCanvasSprite::rightEdge () const"
Returns the x-coordinate of the current right edge of the sprite. (This may change as the sprite animates since different frames may have different right edges.)
.PP
See also leftEdge(), bottomEdge(), and topEdge().
-.SH "int QCanvasSprite::rightEdge ( int nx ) const"
+.SH "int TQCanvasSprite::rightEdge ( int nx ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns what the x-coordinate of the right edge of the sprite would be if the sprite (actually its hotspot) were moved to x-position \fInx\fR.
.PP
See also leftEdge(), bottomEdge(), and topEdge().
-.SH "int QCanvasSprite::rtti () const\fC [virtual]\fR"
-Returns 1 (QCanvasItem::Rtti_Sprite).
+.SH "int TQCanvasSprite::rtti () const\fC [virtual]\fR"
+Returns 1 (TQCanvasItem::Rtti_Sprite).
.PP
-See also QCanvasItem::rtti().
+See also TQCanvasItem::rtti().
.PP
Example: canvas/canvas.cpp.
.PP
-Reimplemented from QCanvasItem.
-.SH "void QCanvasSprite::setFrame ( int f )"
-Sets the animation frame used for displaying the sprite to \fIf\fR, an index into the QCanvasSprite's QCanvasPixmapArray. The call will be ignored if \fIf\fR is larger than frameCount() or smaller than 0.
+Reimplemented from TQCanvasItem.
+.SH "void TQCanvasSprite::setFrame ( int f )"
+Sets the animation frame used for displaying the sprite to \fIf\fR, an index into the TQCanvasSprite's TQCanvasPixmapArray. The call will be ignored if \fIf\fR is larger than frameCount() or smaller than 0.
.PP
See also frame() and move().
-.SH "void QCanvasSprite::setFrameAnimation ( FrameAnimationType type = Cycle, int step = 1, int state = 0 )\fC [virtual]\fR"
+.SH "void TQCanvasSprite::setFrameAnimation ( FrameAnimationType type = Cycle, int step = 1, int state = 0 )\fC [virtual]\fR"
Sets the animation characteristics for the sprite.
.PP
For \fItype\fR == Cycle, the frames will increase by \fIstep\fR at each advance, modulo the frameCount().
@@ -218,27 +218,27 @@ For \fItype\fR == Cycle, the frames will increase by \fIstep\fR at each advance,
For \fItype\fR == Oscillate, the frames will increase by \fIstep\fR at each advance, up to the frameCount(), then decrease by \fIstep\fR back to 0, repeating forever.
.PP
The \fIstate\fR parameter is for internal use.
-.SH "void QCanvasSprite::setSequence ( QCanvasPixmapArray * a )"
-Set the array of images used for displaying the sprite to the QCanvasPixmapArray \fIa\fR.
+.SH "void TQCanvasSprite::setSequence ( TQCanvasPixmapArray * a )"
+Set the array of images used for displaying the sprite to the TQCanvasPixmapArray \fIa\fR.
.PP
If the current frame() is larger than the number of images in \fIa\fR, the current frame will be reset to 0.
-.SH "int QCanvasSprite::topEdge () const"
+.SH "int TQCanvasSprite::topEdge () const"
Returns the y-coordinate of the top edge of the sprite. (This may change as the sprite animates since different frames may have different top edges.)
.PP
See also leftEdge(), rightEdge(), and bottomEdge().
-.SH "int QCanvasSprite::topEdge ( int ny ) const"
+.SH "int TQCanvasSprite::topEdge ( int ny ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns what the y-coordinate of the top edge of the sprite would be if the sprite (actually its hotspot) were moved to y-position \fIny\fR.
.PP
See also leftEdge(), rightEdge(), and bottomEdge().
-.SH "int QCanvasSprite::width () const"
+.SH "int TQCanvasSprite::width () const"
The width of the sprite for the current frame's image.
.PP
See also frame().
.SH "SEE ALSO"
-.BR http://doc.trolltech.com/qcanvassprite.html
+.BR http://doc.trolltech.com/tqcanvassprite.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the