diff options
Diffstat (limited to 'doc/man/man3/tqpoint.3qt')
-rw-r--r-- | doc/man/man3/tqpoint.3qt | 158 |
1 files changed, 79 insertions, 79 deletions
diff --git a/doc/man/man3/tqpoint.3qt b/doc/man/man3/tqpoint.3qt index 862870427..fedb4aef2 100644 --- a/doc/man/man3/tqpoint.3qt +++ b/doc/man/man3/tqpoint.3qt @@ -1,5 +1,5 @@ '\" t -.TH QPoint 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQPoint 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,17 +7,17 @@ .ad l .nh .SH NAME -QPoint \- Defines a point in the plane +TQPoint \- Defines a point in the plane .SH SYNOPSIS -\fC#include <ntqpoint.h>\fR +\fC#include <tqpoint.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQPoint\fR ()" +.BI "\fBTQPoint\fR ()" .br .ti -1c -.BI "\fBQPoint\fR ( int xpos, int ypos )" +.BI "\fBTQPoint\fR ( int xpos, int ypos )" .br .ti -1c .BI "bool \fBisNull\fR () const" @@ -44,68 +44,68 @@ QPoint \- Defines a point in the plane .BI "QCOORD & \fBry\fR ()" .br .ti -1c -.BI "QPoint & \fBoperator+=\fR ( const QPoint & p )" +.BI "TQPoint & \fBoperator+=\fR ( const TQPoint & p )" .br .ti -1c -.BI "QPoint & \fBoperator-=\fR ( const QPoint & p )" +.BI "TQPoint & \fBoperator-=\fR ( const TQPoint & p )" .br .ti -1c -.BI "QPoint & \fBoperator*=\fR ( int c )" +.BI "TQPoint & \fBoperator*=\fR ( int c )" .br .ti -1c -.BI "QPoint & \fBoperator*=\fR ( double c )" +.BI "TQPoint & \fBoperator*=\fR ( double c )" .br .ti -1c -.BI "QPoint & \fBoperator/=\fR ( int c )" +.BI "TQPoint & \fBoperator/=\fR ( int c )" .br .ti -1c -.BI "QPoint & \fBoperator/=\fR ( double c )" +.BI "TQPoint & \fBoperator/=\fR ( double c )" .br .in -1c .SH RELATED FUNCTION DOCUMENTATION .in +1c .ti -1c -.BI "bool \fBoperator==\fR ( const QPoint & p1, const QPoint & p2 )" +.BI "bool \fBoperator==\fR ( const TQPoint & p1, const TQPoint & p2 )" .br .ti -1c -.BI "bool \fBoperator!=\fR ( const QPoint & p1, const QPoint & p2 )" +.BI "bool \fBoperator!=\fR ( const TQPoint & p1, const TQPoint & p2 )" .br .ti -1c -.BI "const QPoint \fBoperator+\fR ( const QPoint & p1, const QPoint & p2 )" +.BI "const TQPoint \fBoperator+\fR ( const TQPoint & p1, const TQPoint & p2 )" .br .ti -1c -.BI "const QPoint \fBoperator-\fR ( const QPoint & p1, const QPoint & p2 )" +.BI "const TQPoint \fBoperator-\fR ( const TQPoint & p1, const TQPoint & p2 )" .br .ti -1c -.BI "const QPoint \fBoperator*\fR ( const QPoint & p, int c )" +.BI "const TQPoint \fBoperator*\fR ( const TQPoint & p, int c )" .br .ti -1c -.BI "const QPoint \fBoperator*\fR ( int c, const QPoint & p )" +.BI "const TQPoint \fBoperator*\fR ( int c, const TQPoint & p )" .br .ti -1c -.BI "const QPoint \fBoperator*\fR ( const QPoint & p, double c )" +.BI "const TQPoint \fBoperator*\fR ( const TQPoint & p, double c )" .br .ti -1c -.BI "const QPoint \fBoperator*\fR ( double c, const QPoint & p )" +.BI "const TQPoint \fBoperator*\fR ( double c, const TQPoint & p )" .br .ti -1c -.BI "const QPoint \fBoperator-\fR ( const QPoint & p )" +.BI "const TQPoint \fBoperator-\fR ( const TQPoint & p )" .br .ti -1c -.BI "const QPoint \fBoperator/\fR ( const QPoint & p, int c )" +.BI "const TQPoint \fBoperator/\fR ( const TQPoint & p, int c )" .br .ti -1c -.BI "const QPoint \fBoperator/\fR ( const QPoint & p, double c )" +.BI "const TQPoint \fBoperator/\fR ( const TQPoint & p, double c )" .br .ti -1c -.BI "TQDataStream & \fBoperator<<\fR ( TQDataStream & s, const QPoint & p )" +.BI "TQDataStream & \fBoperator<<\fR ( TQDataStream & s, const TQPoint & p )" .br .ti -1c -.BI "TQDataStream & \fBoperator>>\fR ( TQDataStream & s, QPoint & p )" +.BI "TQDataStream & \fBoperator>>\fR ( TQDataStream & s, TQPoint & p )" .br .in -1c .SH DESCRIPTION -The QPoint class defines a point in the plane. +The TQPoint class defines a point in the plane. .PP A point is specified by an x coordinate and a y coordinate. .PP @@ -119,25 +119,25 @@ Given a point \fIp\fR, the following statements are all equivalent: .br p.setX( p.x() + 1 ); .br - p += QPoint( 1, 0 ); + p += TQPoint( 1, 0 ); .br p.rx()++; .br .fi .PP -A QPoint can also be used as a vector. Addition and subtraction of QPoints are defined as for vectors (each component is added separately). You can divide or multiply a QPoint by an \fCint\fR or a \fCdouble\fR. The function manhattanLength() gives an inexpensive approximation of the length of the QPoint interpreted as a vector. +A TQPoint can also be used as a vector. Addition and subtraction of TQPoints are defined as for vectors (each component is added separately). You can divide or multiply a TQPoint by an \fCint\fR or a \fCdouble\fR. The function manhattanLength() gives an inexpensive approximation of the length of the TQPoint interpreted as a vector. .PP Example: .PP .nf .br - //QPoint oldPos is defined somewhere else + //TQPoint oldPos is defined somewhere else .br MyWidget::mouseMoveEvent( QMouseEvent *e ) .br { .br - QPoint vector = e->pos() - oldPos; + TQPoint vector = e->pos() - oldPos; .br if ( vector.manhattanLength() > 3 ) .br @@ -147,33 +147,33 @@ Example: .br .fi .PP -QPoints can be compared for equality or inequality, and they can be written to and read from a QStream. +TQPoints can be compared for equality or inequality, and they can be written to and read from a QStream. .PP -See also QPointArray, TQSize, QRect, Graphics Classes, and Image Processing Classes. +See also TQPointArray, TQSize, TQRect, Graphics Classes, and Image Processing Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QPoint::QPoint ()" +.SH "TQPoint::TQPoint ()" Constructs a point with coordinates (0, 0) (isNull() returns TRUE). -.SH "QPoint::QPoint ( int xpos, int ypos )" +.SH "TQPoint::TQPoint ( int xpos, int ypos )" Constructs a point with x value \fIxpos\fR and y value \fIypos\fR. -.SH "bool QPoint::isNull () const" +.SH "bool TQPoint::isNull () const" Returns TRUE if both the x value and the y value are 0; otherwise returns FALSE. -.SH "int QPoint::manhattanLength () const" +.SH "int TQPoint::manhattanLength () const" Returns the sum of the absolute values of x() and y(), traditionally known as the "Manhattan length" of the vector from the origin to the point. The tradition arises because such distances apply to travelers who can only travel on a rectangular grid, like the streets of Manhattan. .PP This is a useful, and quick to calculate, approximation to the true length: sqrt(pow(x(),2)+pow(y(),2)). -.SH "QPoint & QPoint::operator*= ( int c )" +.SH "TQPoint & TQPoint::operator*= ( int c )" Multiplies this point's x and y by \fIc\fR, and returns a reference to this point. .PP Example: .PP .nf .br - QPoint p( -1, 4 ); + TQPoint p( -1, 4 ); .br p *= 2; // p becomes (-2,8) .br .fi -.SH "QPoint & QPoint::operator*= ( double c )" +.SH "TQPoint & TQPoint::operator*= ( double c )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Multiplies this point's x and y by \fIc\fR, and returns a reference to this point. @@ -182,54 +182,54 @@ Example: .PP .nf .br - QPoint p( -1, 4 ); + TQPoint p( -1, 4 ); .br p *= 2.5; // p becomes (-3,10) .br .fi .PP Note that the result is truncated because points are held as integers. -.SH "QPoint & QPoint::operator+= ( const QPoint & p )" +.SH "TQPoint & TQPoint::operator+= ( const TQPoint & p )" Adds point \fIp\fR to this point and returns a reference to this point. .PP Example: .PP .nf .br - QPoint p( 3, 7 ); + TQPoint p( 3, 7 ); .br - QPoint q( -1, 4 ); + TQPoint q( -1, 4 ); .br p += q; // p becomes (2,11) .br .fi -.SH "QPoint & QPoint::operator-= ( const QPoint & p )" +.SH "TQPoint & TQPoint::operator-= ( const TQPoint & p )" Subtracts point \fIp\fR from this point and returns a reference to this point. .PP Example: .PP .nf .br - QPoint p( 3, 7 ); + TQPoint p( 3, 7 ); .br - QPoint q( -1, 4 ); + TQPoint q( -1, 4 ); .br p -= q; // p becomes (4,3) .br .fi -.SH "QPoint & QPoint::operator/= ( int c )" +.SH "TQPoint & TQPoint::operator/= ( int c )" Divides both x and y by \fIc\fR, and returns a reference to this point. .PP Example: .PP .nf .br - QPoint p( -2, 8 ); + TQPoint p( -2, 8 ); .br p /= 2; // p becomes (-1,4) .br .fi -.SH "QPoint & QPoint::operator/= ( double c )" +.SH "TQPoint & TQPoint::operator/= ( double c )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Divides both x and y by \fIc\fR, and returns a reference to this point. @@ -238,14 +238,14 @@ Example: .PP .nf .br - QPoint p( -3, 10 ); + TQPoint p( -3, 10 ); .br p /= 2.5; // p becomes (-1,4) .br .fi .PP Note that the result is truncated because points are held as integers. -.SH "QCOORD & QPoint::rx ()" +.SH "QCOORD & TQPoint::rx ()" Returns a reference to the x coordinate of the point. .PP Using a reference makes it possible to directly manipulate x. @@ -254,14 +254,14 @@ Example: .PP .nf .br - QPoint p( 1, 2 ); + TQPoint p( 1, 2 ); .br p.rx()--; // p becomes (0, 2) .br .fi .PP See also ry(). -.SH "QCOORD & QPoint::ry ()" +.SH "QCOORD & TQPoint::ry ()" Returns a reference to the y coordinate of the point. .PP Using a reference makes it possible to directly manipulate y. @@ -270,33 +270,33 @@ Example: .PP .nf .br - QPoint p( 1, 2 ); + TQPoint p( 1, 2 ); .br p.ry()++; // p becomes (1, 3) .br .fi .PP See also rx(). -.SH "void QPoint::setX ( int x )" +.SH "void TQPoint::setX ( int x )" Sets the x coordinate of the point to \fIx\fR. .PP See also x() and setY(). .PP Example: t14/cannon.cpp. -.SH "void QPoint::setY ( int y )" +.SH "void TQPoint::setY ( int y )" Sets the y coordinate of the point to \fIy\fR. .PP See also y() and setX(). .PP Example: t14/cannon.cpp. -.SH "int QPoint::x () const" +.SH "int TQPoint::x () const" Returns the x coordinate of the point. .PP See also setX() and y(). .PP Examples: .)l canvas/canvas.cpp, chart/canvasview.cpp, dirview/dirview.cpp, fileiconview/tqfileiconview.cpp, helpsystem/tooltip.cpp, life/life.cpp, and t14/cannon.cpp. -.SH "int QPoint::y () const" +.SH "int TQPoint::y () const" Returns the y coordinate of the point. .PP See also setY() and x(). @@ -304,55 +304,55 @@ See also setY() and x(). Examples: .)l canvas/canvas.cpp, chart/canvasview.cpp, fileiconview/tqfileiconview.cpp, helpsystem/tooltip.cpp, life/life.cpp, t14/cannon.cpp, and themes/wood.cpp. .SH RELATED FUNCTION DOCUMENTATION -.SH "bool operator!= ( const QPoint & p1, const QPoint & p2 )" +.SH "bool operator!= ( const TQPoint & p1, const TQPoint & p2 )" Returns TRUE if \fIp1\fR and \fIp2\fR are not equal; otherwise returns FALSE. -.SH "const QPoint operator* ( const QPoint & p, int c )" -Returns the QPoint formed by multiplying both components of \fIp\fR by \fIc\fR. -.SH "const QPoint operator* ( int c, const QPoint & p )" +.SH "const TQPoint operator* ( const TQPoint & p, int c )" +Returns the TQPoint formed by multiplying both components of \fIp\fR by \fIc\fR. +.SH "const TQPoint operator* ( int c, const TQPoint & p )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP -Returns the QPoint formed by multiplying both components of \fIp\fR by \fIc\fR. -.SH "const QPoint operator* ( const QPoint & p, double c )" +Returns the TQPoint formed by multiplying both components of \fIp\fR by \fIc\fR. +.SH "const TQPoint operator* ( const TQPoint & p, double c )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP -Returns the QPoint formed by multiplying both components of \fIp\fR by \fIc\fR. +Returns the TQPoint formed by multiplying both components of \fIp\fR by \fIc\fR. .PP Note that the result is truncated because points are held as integers. -.SH "const QPoint operator* ( double c, const QPoint & p )" +.SH "const TQPoint operator* ( double c, const TQPoint & p )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP -Returns the QPoint formed by multiplying both components of \fIp\fR by \fIc\fR. +Returns the TQPoint formed by multiplying both components of \fIp\fR by \fIc\fR. .PP Note that the result is truncated because points are held as integers. -.SH "const QPoint operator+ ( const QPoint & p1, const QPoint & p2 )" +.SH "const TQPoint operator+ ( const TQPoint & p1, const TQPoint & p2 )" Returns the sum of \fIp1\fR and \fIp2\fR; each component is added separately. -.SH "const QPoint operator- ( const QPoint & p1, const QPoint & p2 )" +.SH "const TQPoint operator- ( const TQPoint & p1, const TQPoint & p2 )" Returns \fIp2\fR subtracted from \fIp1\fR; each component is subtracted separately. -.SH "const QPoint operator- ( const QPoint & p )" +.SH "const TQPoint operator- ( const TQPoint & p )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP -Returns the QPoint formed by changing the sign of both components of \fIp\fR, equivalent to \fCQPoint(0,0) - p\fR. -.SH "const QPoint operator/ ( const QPoint & p, int c )" -Returns the QPoint formed by dividing both components of \fIp\fR by \fIc\fR. -.SH "const QPoint operator/ ( const QPoint & p, double c )" +Returns the TQPoint formed by changing the sign of both components of \fIp\fR, equivalent to \fCTQPoint(0,0) - p\fR. +.SH "const TQPoint operator/ ( const TQPoint & p, int c )" +Returns the TQPoint formed by dividing both components of \fIp\fR by \fIc\fR. +.SH "const TQPoint operator/ ( const TQPoint & p, double c )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP -Returns the QPoint formed by dividing both components of \fIp\fR by \fIc\fR. +Returns the TQPoint formed by dividing both components of \fIp\fR by \fIc\fR. .PP Note that the result is truncated because points are held as integers. -.SH "TQDataStream & operator<< ( TQDataStream & s, const QPoint & p )" +.SH "TQDataStream & operator<< ( TQDataStream & s, const TQPoint & p )" Writes point \fIp\fR to the stream \fIs\fR and returns a reference to the stream. .PP See also Format of the TQDataStream operators. -.SH "bool operator== ( const QPoint & p1, const QPoint & p2 )" +.SH "bool operator== ( const TQPoint & p1, const TQPoint & p2 )" Returns TRUE if \fIp1\fR and \fIp2\fR are equal; otherwise returns FALSE. -.SH "TQDataStream & operator>> ( TQDataStream & s, QPoint & p )" -Reads a QPoint from the stream \fIs\fR into point \fIp\fR and returns a reference to the stream. +.SH "TQDataStream & operator>> ( TQDataStream & s, TQPoint & p )" +Reads a TQPoint from the stream \fIs\fR into point \fIp\fR and returns a reference to the stream. .PP See also Format of the TQDataStream operators. .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqpoint.html +.BR http://doc.trolltech.com/tqpoint.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |