diff options
Diffstat (limited to 'doc/man/man3/tqmouseevent.3qt')
-rw-r--r-- | doc/man/man3/tqmouseevent.3qt | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/doc/man/man3/tqmouseevent.3qt b/doc/man/man3/tqmouseevent.3qt index 91ea44b13..397a9e9ff 100644 --- a/doc/man/man3/tqmouseevent.3qt +++ b/doc/man/man3/tqmouseevent.3qt @@ -1,5 +1,5 @@ '\" t -.TH QMouseEvent 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQMouseEvent 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,7 +7,7 @@ .ad l .nh .SH NAME -QMouseEvent \- Parameters that describe a mouse event +TQMouseEvent \- Parameters that describe a mouse event .SH SYNOPSIS \fC#include <tqevent.h>\fR .PP @@ -16,10 +16,10 @@ Inherits TQEvent. .SS "Public Members" .in +1c .ti -1c -.BI "\fBQMouseEvent\fR ( Type type, const TQPoint & pos, int button, int state )" +.BI "\fBTQMouseEvent\fR ( Type type, const TQPoint & pos, int button, int state )" .br .ti -1c -.BI "\fBQMouseEvent\fR ( Type type, const TQPoint & pos, const TQPoint & globalPos, int button, int state )" +.BI "\fBTQMouseEvent\fR ( Type type, const TQPoint & pos, const TQPoint & globalPos, int button, int state )" .br .ti -1c .BI "const TQPoint & \fBpos\fR () const" @@ -59,7 +59,7 @@ Inherits TQEvent. .br .in -1c .SH DESCRIPTION -The QMouseEvent class contains parameters that describe a mouse event. +The TQMouseEvent class contains parameters that describe a mouse event. .PP Mouse events occur when a mouse button is pressed or released inside a widget or when the mouse cursor is moved. .PP @@ -67,7 +67,7 @@ Mouse move events will occur only when a mouse button is pressed down, unless mo .PP Qt automatically grabs the mouse when a mouse button is pressed inside a widget; the widget will continue to receive mouse events until the last mouse button is released. .PP -A mouse event contains a special accept flag that indicates whether the receiver wants the event. You should call QMouseEvent::ignore() if the mouse event is not handled by your widget. A mouse event is propagated up the parent widget chain until a widget accepts it with QMouseEvent::accept() or an event filter consumes it. +A mouse event contains a special accept flag that indicates whether the receiver wants the event. You should call TQMouseEvent::ignore() if the mouse event is not handled by your widget. A mouse event is propagated up the parent widget chain until a widget accepts it with TQMouseEvent::accept() or an event filter consumes it. .PP The functions pos(), x() and y() give the cursor position relative to the widget that receives the mouse event. If you move the widget as a result of the mouse event, use the global position returned by globalPos() to avoid a shaking motion. .PP @@ -77,7 +77,7 @@ The event handlers TQWidget::mousePressEvent(), TQWidget::mouseReleaseEvent(), T .PP See also TQWidget::mouseTracking, TQWidget::grabMouse(), TQCursor::pos(), and Event Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QMouseEvent::QMouseEvent ( Type type, const TQPoint & pos, int button, int state )" +.SH "TQMouseEvent::TQMouseEvent ( Type type, const TQPoint & pos, int button, int state )" Constructs a mouse event object. .PP The \fItype\fR parameter must be one of TQEvent::MouseButtonPress, TQEvent::MouseButtonRelease, TQEvent::MouseButtonDblClick or TQEvent::MouseMove. @@ -85,13 +85,13 @@ The \fItype\fR parameter must be one of TQEvent::MouseButtonPress, TQEvent::Mous The \fIpos\fR parameter specifies the position relative to the receiving widget. \fIbutton\fR specifies the button that caused the event, which should be TQt::NoButton (0), if \fItype\fR is MouseMove. \fIstate\fR is the ButtonState at the time of the event. .PP The globalPos() is initialized to TQCursor::pos(), which may not be appropriate. Use the other constructor to specify the global position explicitly. -.SH "QMouseEvent::QMouseEvent ( Type type, const TQPoint & pos, const TQPoint & globalPos, int button, int state )" +.SH "TQMouseEvent::TQMouseEvent ( Type type, const TQPoint & pos, const TQPoint & globalPos, int button, int state )" Constructs a mouse event object. .PP The \fItype\fR parameter must be TQEvent::MouseButtonPress, TQEvent::MouseButtonRelease, TQEvent::MouseButtonDblClick or TQEvent::MouseMove. .PP The \fIpos\fR parameter specifies the position relative to the receiving widget. \fIglobalPos\fR is the position in absolute coordinates. \fIbutton\fR specifies the button that caused the event, which should be TQt::NoButton (0), if \fItype\fR is MouseMove. \fIstate\fR is the ButtonState at the time of the event. -.SH "void QMouseEvent::accept ()" +.SH "void TQMouseEvent::accept ()" Sets the accept flag of the mouse event object. .PP Setting the accept parameter indicates that the receiver of the event wants the mouse event. Unwanted mouse events are sent to the parent widget. @@ -99,7 +99,7 @@ Setting the accept parameter indicates that the receiver of the event wants the The accept flag is set by default. .PP See also ignore(). -.SH "ButtonState QMouseEvent::button () const" +.SH "ButtonState TQMouseEvent::button () const" Returns the button that caused the event. .PP Possible return values are LeftButton, RightButton, MidButton and NoButton. @@ -110,21 +110,21 @@ See also state() and TQt::ButtonState. .PP Examples: .)l dclock/dclock.cpp, life/life.cpp, and t14/cannon.cpp. -.SH "const TQPoint & QMouseEvent::globalPos () const" +.SH "const TQPoint & TQMouseEvent::globalPos () const" Returns the global position of the mouse pointer \fIat the time of the event\fR. This is important on asynchronous window systems like X11. Whenever you move your widgets around in response to mouse events, globalPos() may differ a lot from the current pointer position TQCursor::pos(), and from TQWidget::mapToGlobal( pos() ). .PP See also globalX() and globalY(). .PP Example: aclock/aclock.cpp. -.SH "int QMouseEvent::globalX () const" +.SH "int TQMouseEvent::globalX () const" Returns the global x-position of the mouse pointer at the time of the event. .PP See also globalY() and globalPos(). -.SH "int QMouseEvent::globalY () const" +.SH "int TQMouseEvent::globalY () const" Returns the global y-position of the mouse pointer at the time of the event. .PP See also globalX() and globalPos(). -.SH "void QMouseEvent::ignore ()" +.SH "void TQMouseEvent::ignore ()" Clears the accept flag parameter of the mouse event object. .PP Clearing the accept parameter indicates that the event receiver does not want the mouse event. Unwanted mouse events are sent to the parent widget. @@ -132,9 +132,9 @@ Clearing the accept parameter indicates that the event receiver does not want th The accept flag is set by default. .PP See also accept(). -.SH "bool QMouseEvent::isAccepted () const" +.SH "bool TQMouseEvent::isAccepted () const" Returns TRUE if the receiver of the event wants to keep the key; otherwise returns FALSE. -.SH "const TQPoint & QMouseEvent::pos () const" +.SH "const TQPoint & TQMouseEvent::pos () const" Returns the position of the mouse pointer relative to the widget that received the event. .PP If you move the widget as a result of the mouse event, use the global position returned by globalPos() to avoid a shaking motion. @@ -143,7 +143,7 @@ See also x(), y(), and globalPos(). .PP Examples: .)l chart/canvasview.cpp, drawlines/connect.cpp, life/life.cpp, popup/popup.cpp, qmag/qmag.cpp, t14/cannon.cpp, and tooltip/tooltip.cpp. -.SH "ButtonState QMouseEvent::state () const" +.SH "ButtonState TQMouseEvent::state () const" Returns the button state (a combination of mouse buttons and keyboard modifiers), i.e. what buttons and keys were being pressed immediately before the event was generated. .PP This means that if you have a TQEvent::MouseButtonPress or a TQEvent::MouseButtonDblClick state() will \fInot\fR include the mouse button that's pressed. But once the mouse button has been released, the TQEvent::MouseButtonRelease event will have the button() that was pressed. @@ -156,17 +156,17 @@ See also button(), stateAfter(), and TQt::ButtonState. .PP Examples: .)l popup/popup.cpp and showimg/showimg.cpp. -.SH "ButtonState QMouseEvent::stateAfter () const" +.SH "ButtonState TQMouseEvent::stateAfter () const" Returns the state of buttons after the event. .PP See also state() and TQt::ButtonState. -.SH "int QMouseEvent::x () const" +.SH "int TQMouseEvent::x () const" Returns the x-position of the mouse pointer, relative to the widget that received the event. .PP See also y() and pos(). .PP Example: showimg/showimg.cpp. -.SH "int QMouseEvent::y () const" +.SH "int TQMouseEvent::y () const" Returns the y-position of the mouse pointer, relative to the widget that received the event. .PP See also x() and pos(). @@ -174,7 +174,7 @@ See also x() and pos(). Example: showimg/showimg.cpp. .SH "SEE ALSO" -.BR http://doc.trolltech.com/qmouseevent.html +.BR http://doc.trolltech.com/tqmouseevent.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |