diff options
Diffstat (limited to 'doc/man/man3/tqcursor.3qt')
-rw-r--r-- | doc/man/man3/tqcursor.3qt | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/doc/man/man3/tqcursor.3qt b/doc/man/man3/tqcursor.3qt index 11b9106eb..b308c7cbb 100644 --- a/doc/man/man3/tqcursor.3qt +++ b/doc/man/man3/tqcursor.3qt @@ -1,5 +1,5 @@ '\" t -.TH QCursor 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQCursor 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,34 +7,34 @@ .ad l .nh .SH NAME -QCursor \- Mouse cursor with an arbitrary shape +TQCursor \- Mouse cursor with an arbitrary shape .SH SYNOPSIS -\fC#include <ntqcursor.h>\fR +\fC#include <tqcursor.h>\fR .PP Inherits Qt. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQCursor\fR ()" +.BI "\fBTQCursor\fR ()" .br .ti -1c -.BI "\fBQCursor\fR ( int shape )" +.BI "\fBTQCursor\fR ( int shape )" .br .ti -1c -.BI "\fBQCursor\fR ( const TQBitmap & bitmap, const TQBitmap & mask, int hotX = -1, int hotY = -1 )" +.BI "\fBTQCursor\fR ( const TQBitmap & bitmap, const TQBitmap & mask, int hotX = -1, int hotY = -1 )" .br .ti -1c -.BI "\fBQCursor\fR ( const TQPixmap & pixmap, int hotX = -1, int hotY = -1 )" +.BI "\fBTQCursor\fR ( const TQPixmap & pixmap, int hotX = -1, int hotY = -1 )" .br .ti -1c -.BI "\fBQCursor\fR ( const QCursor & c )" +.BI "\fBTQCursor\fR ( const TQCursor & c )" .br .ti -1c -.BI "\fB~QCursor\fR ()" +.BI "\fB~TQCursor\fR ()" .br .ti -1c -.BI "QCursor & \fBoperator=\fR ( const QCursor & c )" +.BI "TQCursor & \fBoperator=\fR ( const TQCursor & c )" .br .ti -1c .BI "int \fBshape\fR () const" @@ -55,7 +55,7 @@ Inherits Qt. .BI "HCURSOR \fBhandle\fR () const" .br .ti -1c -.BI "\fBQCursor\fR ( HCURSOR handle )" +.BI "\fBTQCursor\fR ( HCURSOR handle )" .br .ti -1c .BI "HANDLE \fBhandle\fR () const" @@ -82,14 +82,14 @@ Inherits Qt. .SH RELATED FUNCTION DOCUMENTATION .in +1c .ti -1c -.BI "TQDataStream & \fBoperator<<\fR ( TQDataStream & s, const QCursor & c )" +.BI "TQDataStream & \fBoperator<<\fR ( TQDataStream & s, const TQCursor & c )" .br .ti -1c -.BI "TQDataStream & \fBoperator>>\fR ( TQDataStream & s, QCursor & c )" +.BI "TQDataStream & \fBoperator>>\fR ( TQDataStream & s, TQCursor & c )" .br .in -1c .SH DESCRIPTION -The QCursor class provides a mouse cursor with an arbitrary shape. +The TQCursor class provides a mouse cursor with an arbitrary shape. .PP This class is mainly used to create mouse cursors that are associated with particular widgets and to get and set the position of the mouse cursor. .PP @@ -97,11 +97,11 @@ Qt has a number of standard cursor shapes, but you can also make custom cursor s .PP To associate a cursor with a widget, use TQWidget::setCursor(). To associate a cursor with all widgets (normally for a short period of time), use QApplication::setOverrideCursor(). .PP -To set a cursor shape use QCursor::setShape() or use the QCursor constructor which takes the shape as argument, or you can use one of the predefined cursors defined in the CursorShape enum. +To set a cursor shape use TQCursor::setShape() or use the TQCursor constructor which takes the shape as argument, or you can use one of the predefined cursors defined in the CursorShape enum. .PP -If you want to create a cursor with your own bitmap, either use the QCursor constructor which takes a bitmap and a mask or the constructor which takes a pixmap as arguments. +If you want to create a cursor with your own bitmap, either use the TQCursor constructor which takes a bitmap and a mask or the constructor which takes a pixmap as arguments. .PP -To set or get the position of the mouse cursor use the static methods QCursor::pos() and QCursor::setPos(). +To set or get the position of the mouse cursor use the static methods TQCursor::pos() and TQCursor::setPos(). .PP <center> .ce 1 @@ -120,15 +120,15 @@ l - l. TQt::CursorShape Values Cursor Names TQt::ArrowCursor left_ptr TQt::UpArr .fi </center> .SH MEMBER FUNCTION DOCUMENTATION -.SH "QCursor::QCursor ()" +.SH "TQCursor::TQCursor ()" Constructs a cursor with the default arrow shape. -.SH "QCursor::QCursor ( int shape )" +.SH "TQCursor::TQCursor ( int shape )" Constructs a cursor with the specified \fIshape\fR. .PP See CursorShape for a list of shapes. .PP See also setShape(). -.SH "QCursor::QCursor ( const TQBitmap & bitmap, const TQBitmap & mask, int hotX = -1, int hotY = -1 )" +.SH "TQCursor::TQCursor ( const TQBitmap & bitmap, const TQBitmap & mask, int hotX = -1, int hotY = -1 )" Constructs a custom bitmap cursor. .PP \fIbitmap\fR and \fImask\fR make up the bitmap. \fIhotX\fR and \fIhotY\fR define the cursor's hot spot. @@ -150,7 +150,7 @@ Use the global TQt color \fCcolor0\fR to draw 0-pixels and \fCcolor1\fR to draw Valid cursor sizes depend on the display hardware (or the underlying window system). We recommend using 32x32 cursors, because this size is supported on all platforms. Some platforms also support 16x16, 48x48 and 64x64 cursors. .PP See also TQBitmap::TQBitmap() and TQBitmap::setMask(). -.SH "QCursor::QCursor ( const TQPixmap & pixmap, int hotX = -1, int hotY = -1 )" +.SH "TQCursor::TQCursor ( const TQPixmap & pixmap, int hotX = -1, int hotY = -1 )" Constructs a custom pixmap cursor. .PP \fIpixmap\fR is the image. It is usual to give it a mask (set using TQPixmap::setMask()). \fIhotX\fR and \fIhotY\fR define the cursor's hot spot. @@ -162,35 +162,35 @@ Valid cursor sizes depend on the display hardware (or the underlying window syst Currently, only black-and-white pixmaps can be used. .PP See also TQPixmap::TQPixmap() and TQPixmap::setMask(). -.SH "QCursor::QCursor ( const QCursor & c )" +.SH "TQCursor::TQCursor ( const TQCursor & c )" Constructs a copy of the cursor \fIc\fR. -.SH "QCursor::QCursor ( HCURSOR handle )" +.SH "TQCursor::TQCursor ( HCURSOR handle )" Creates a cursor with the specified window system handle \fIhandle\fR. .PP \fBWarning:\fR Portable in principle, but if you use it you are probably about to do something non-portable. Be careful. -.SH "QCursor::~QCursor ()" +.SH "TQCursor::~TQCursor ()" Destroys the cursor. -.SH "const TQBitmap * QCursor::bitmap () const" +.SH "const TQBitmap * TQCursor::bitmap () const" Returns the cursor bitmap, or 0 if it is one of the standard cursors. -.SH "void QCursor::cleanup ()\fC [static]\fR" +.SH "void TQCursor::cleanup ()\fC [static]\fR" Internal function that deinitializes the predefined cursors. This function is called from the QApplication destructor. .PP See also initialize(). -.SH "HANDLE QCursor::handle () const" +.SH "HANDLE TQCursor::handle () const" Returns the window system cursor handle. .PP \fBWarning:\fR Portable in principle, but if you use it you are probably about to do something non-portable. Be careful. -.SH "TQPoint QCursor::hotSpot () const" +.SH "TQPoint TQCursor::hotSpot () const" Returns the cursor hot spot, or (0, 0) if it is one of the standard cursors. -.SH "void QCursor::initialize ()\fC [static]\fR" +.SH "void TQCursor::initialize ()\fC [static]\fR" Internal function that initializes the predefined cursors. This function is called from the QApplication constructor. .PP See also cleanup(). -.SH "const TQBitmap * QCursor::mask () const" +.SH "const TQBitmap * TQCursor::mask () const" Returns the cursor bitmap mask, or 0 if it is one of the standard cursors. -.SH "QCursor & QCursor::operator= ( const QCursor & c )" +.SH "TQCursor & TQCursor::operator= ( const TQCursor & c )" Assigns \fIc\fR to this cursor and returns a reference to this cursor. -.SH "TQPoint QCursor::pos ()\fC [static]\fR" +.SH "TQPoint TQCursor::pos ()\fC [static]\fR" Returns the position of the cursor (hot spot) in global screen coordinates. .PP You can call TQWidget::mapFromGlobal() to translate it to widget coordinates. @@ -199,36 +199,36 @@ See also setPos(), TQWidget::mapFromGlobal(), and TQWidget::mapToGlobal(). .PP Examples: .)l chart/canvasview.cpp, fileiconview/tqfileiconview.cpp, and menu/menu.cpp. -.SH "void QCursor::setPos ( int x, int y )\fC [static]\fR" +.SH "void TQCursor::setPos ( int x, int y )\fC [static]\fR" Moves the cursor (hot spot) to the global screen position (\fIx\fR, \fIy\fR). .PP You can call TQWidget::mapToGlobal() to translate widget coordinates to global screen coordinates. .PP See also pos(), TQWidget::mapFromGlobal(), and TQWidget::mapToGlobal(). -.SH "void QCursor::setPos ( const TQPoint & )\fC [static]\fR" +.SH "void TQCursor::setPos ( const TQPoint & )\fC [static]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -.SH "void QCursor::setShape ( int shape )" +.SH "void TQCursor::setShape ( int shape )" Sets the cursor to the shape identified by \fIshape\fR. .PP See CursorShape for the list of cursor shapes. .PP See also shape(). -.SH "int QCursor::shape () const" +.SH "int TQCursor::shape () const" Returns the cursor shape identifier. The return value is one of the CursorShape enum values (cast to an int). .PP See also setShape(). .SH RELATED FUNCTION DOCUMENTATION -.SH "TQDataStream & operator<< ( TQDataStream & s, const QCursor & c )" +.SH "TQDataStream & operator<< ( TQDataStream & s, const TQCursor & c )" Writes the cursor \fIc\fR to the stream \fIs\fR. .PP See also Format of the TQDataStream operators. -.SH "TQDataStream & operator>> ( TQDataStream & s, QCursor & c )" +.SH "TQDataStream & operator>> ( TQDataStream & s, TQCursor & c )" Reads a cursor from the stream \fIs\fR and sets \fIc\fR to the read data. .PP See also Format of the TQDataStream operators. .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqcursor.html +.BR http://doc.trolltech.com/tqcursor.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |