<class name="QWheelEvent" doc="/**
&lt;p&gt;The &lt;a href=&quot;QWheelEvent.html#QWheelEvent(com.trolltech.qt.core.QPoint, com.trolltech.qt.core.QPoint, int, com.trolltech.qt.core.Qt.MouseButtons, com.trolltech.qt.core.Qt.KeyboardModifiers, com.trolltech.qt.core.Qt.Orientation)&quot;&gt;&lt;tt&gt;QWheelEvent&lt;/tt&gt;&lt;/a&gt; class contains parameters that describe a wheel event.&lt;/p&gt;
&lt;p&gt;Wheel events are sent to the widget under the mouse cursor, but if that widget does not handle the event they are sent to the focus widget. The rotation distance is provided by &lt;a href=&quot;QWheelEvent.html#delta()&quot;&gt;&lt;tt&gt;delta&lt;/tt&gt;&lt;/a&gt;. The functions &lt;a href=&quot;QWheelEvent.html#pos()&quot;&gt;&lt;tt&gt;pos&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QWheelEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt; return the mouse cursor's location at the time of the event.&lt;/p&gt;
&lt;p&gt;A wheel event contains a special accept flag that indicates whether the receiver wants the event. You should call &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QEvent.html#ignore()&quot;&gt;&lt;tt&gt;ignore&lt;/tt&gt;&lt;/a&gt; if you do not handle the wheel event; this ensures that it will be sent to the parent widget.&lt;/p&gt;
&lt;p&gt;The QWidget::setEnabled() function can be used to enable or disable mouse and keyboard events for a widget.&lt;/p&gt;
&lt;p&gt;The event handler QWidget::wheelEvent() receives wheel events.&lt;/p&gt;

@see &lt;a href=&quot;QMouseEvent.html&quot;&gt;&lt;tt&gt;QMouseEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::grabMouse&lt;/tt&gt; */">
    <method name="public QWheelEvent(com.trolltech.qt.core.QPoint pos, int delta, com.trolltech.qt.core.Qt.MouseButtons buttons, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers, com.trolltech.qt.core.Qt.Orientation orient)" doc="/**
&lt;p&gt;Constructs a wheel event object.&lt;/p&gt;
&lt;p&gt;The position, &lt;tt&gt;pos&lt;/tt&gt;, is the location of the mouse cursor within the widget. The &lt;a href=&quot;QWheelEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt; is initialized to QCursor::pos() which is usually, but not always, correct. Use the other constructor if you need to specify the global position explicitly.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;buttons&lt;/tt&gt; describe the state of the mouse buttons at the time of the event, &lt;tt&gt;delta&lt;/tt&gt; contains the rotation distance, &lt;tt&gt;modifiers&lt;/tt&gt; holds the keyboard modifier flags at the time of the event, and &lt;tt&gt;orient&lt;/tt&gt; holds the wheel's orientation.&lt;/p&gt;

@see &lt;a href=&quot;QWheelEvent.html#pos()&quot;&gt;&lt;tt&gt;pos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWheelEvent.html#delta()&quot;&gt;&lt;tt&gt;delta&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;state&lt;/tt&gt; */"/>
    <method name="public QWheelEvent(com.trolltech.qt.core.QPoint pos, int delta, com.trolltech.qt.core.Qt.MouseButtons buttons, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QWheelEvent.html#QWheelEvent(com.trolltech.qt.core.QPoint, com.trolltech.qt.core.QPoint, int, com.trolltech.qt.core.Qt.MouseButtons, com.trolltech.qt.core.Qt.KeyboardModifiers, com.trolltech.qt.core.Qt.Orientation)&quot;&gt;&lt;tt&gt;QWheelEvent&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;pos&lt;/tt&gt;, &lt;tt&gt;delta&lt;/tt&gt;, &lt;tt&gt;buttons&lt;/tt&gt;, &lt;tt&gt;modifiers&lt;/tt&gt;, Qt::Vertical). */"/>
    <method name="public QWheelEvent(com.trolltech.qt.core.QPoint pos, com.trolltech.qt.core.QPoint globalPos, int delta, com.trolltech.qt.core.Qt.MouseButtons buttons, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers, com.trolltech.qt.core.Qt.Orientation orient)" doc="/**
&lt;p&gt;Constructs a wheel event object.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;pos&lt;/tt&gt; provides the location of the mouse cursor within the widget. The position in global coordinates is specified by &lt;tt&gt;globalPos&lt;/tt&gt;. &lt;tt&gt;delta&lt;/tt&gt; contains the rotation distance, &lt;tt&gt;modifiers&lt;/tt&gt; holds the keyboard modifier flags at the time of the event, and &lt;tt&gt;orient&lt;/tt&gt; holds the wheel's orientation.&lt;/p&gt;

@see &lt;a href=&quot;QWheelEvent.html#pos()&quot;&gt;&lt;tt&gt;pos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWheelEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWheelEvent.html#delta()&quot;&gt;&lt;tt&gt;delta&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;state&lt;/tt&gt; */"/>
    <method name="public QWheelEvent(com.trolltech.qt.core.QPoint pos, com.trolltech.qt.core.QPoint globalPos, int delta, com.trolltech.qt.core.Qt.MouseButtons buttons, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QWheelEvent.html#QWheelEvent(com.trolltech.qt.core.QPoint, com.trolltech.qt.core.QPoint, int, com.trolltech.qt.core.Qt.MouseButtons, com.trolltech.qt.core.Qt.KeyboardModifiers, com.trolltech.qt.core.Qt.Orientation)&quot;&gt;&lt;tt&gt;QWheelEvent&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;pos&lt;/tt&gt;, &lt;tt&gt;globalPos&lt;/tt&gt;, &lt;tt&gt;delta&lt;/tt&gt;, &lt;tt&gt;buttons&lt;/tt&gt;, &lt;tt&gt;modifiers&lt;/tt&gt;, Qt::Vertical). */"/>
    <method name="public final com.trolltech.qt.core.Qt.MouseButtons buttons()" doc="/**
&lt;p&gt;Returns the mouse state when the event occurred.&lt;/p&gt;
 */"/>
    <method name="public final int delta()" doc="/**
&lt;p&gt;Returns the distance that the wheel is rotated, in eighths of a degree. A positive value indicates that the wheel was rotated forwards away from the user; a negative value indicates that the wheel was rotated backwards toward the user.&lt;/p&gt;
&lt;p&gt;Most mouse types work in steps of 15 degrees, in which case the delta value is a multiple of 120; i.e&amp;#x2e;, 120 * 1/8 = 15.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    void MyWidget::wheelEvent(QWheelEvent *event)
    {
        int numDegrees = event-&amp;gt;delta() / 8;
        int numSteps = numDegrees / 15;

        if (event-&amp;gt;orientation() == Qt::Horizontal) {
            scrollHorizontally(numSteps);
        } else {
            scrollVertically(numSteps);
        }
        event-&amp;gt;accept();
    }&lt;/pre&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QPoint globalPos()" doc="/**
&lt;p&gt;Returns the global position of the mouse pointer &lt;i&gt;at the time of the event&lt;/i&gt;. This is important on asynchronous window systems such as X11; whenever you move your widgets around in response to mouse events, &lt;a href=&quot;QWheelEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt; can differ a lot from the current cursor position returned by QCursor::pos().&lt;/p&gt;

@see &lt;a href=&quot;QWheelEvent.html#globalX()&quot;&gt;&lt;tt&gt;globalX&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWheelEvent.html#globalY()&quot;&gt;&lt;tt&gt;globalY&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int globalX()" doc="/**
&lt;p&gt;Returns the global x position of the mouse cursor at the time of the event.&lt;/p&gt;

@see &lt;a href=&quot;QWheelEvent.html#globalY()&quot;&gt;&lt;tt&gt;globalY&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWheelEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int globalY()" doc="/**
&lt;p&gt;Returns the global y position of the mouse cursor at the time of the event.&lt;/p&gt;

@see &lt;a href=&quot;QWheelEvent.html#globalX()&quot;&gt;&lt;tt&gt;globalX&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWheelEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.Orientation orientation()" doc="/**
&lt;p&gt;Returns the wheel's orientation.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QPoint pos()" doc="/**
&lt;p&gt;Returns the position of the mouse cursor relative to the widget that received the event.&lt;/p&gt;
&lt;p&gt;If you move your widgets around in response to mouse events, use &lt;a href=&quot;QWheelEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt; instead of this function.&lt;/p&gt;

@see &lt;a href=&quot;QWheelEvent.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWheelEvent.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWheelEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int x()" doc="/**
&lt;p&gt;Returns the x position of the mouse cursor, relative to the widget that received the event.&lt;/p&gt;

@see &lt;a href=&quot;QWheelEvent.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWheelEvent.html#pos()&quot;&gt;&lt;tt&gt;pos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int y()" doc="/**
&lt;p&gt;Returns the y position of the mouse cursor, relative to the widget that received the event.&lt;/p&gt;

@see &lt;a href=&quot;QWheelEvent.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWheelEvent.html#pos()&quot;&gt;&lt;tt&gt;pos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final com.trolltech.qt.core.QPoint g()"/>
    <method name="protected final void setG(com.trolltech.qt.core.QPoint g)"/>
    <method name="protected final com.trolltech.qt.core.Qt.MouseButtons mouseState()"/>
    <method name="protected final void setMouseState(com.trolltech.qt.core.Qt.MouseButtons mouseState)"/>
    <method name="protected final com.trolltech.qt.core.Qt.Orientation o()"/>
    <method name="protected final void setO(com.trolltech.qt.core.Qt.Orientation o)"/>
    <method name="protected final com.trolltech.qt.core.QPoint p()"/>
    <method name="protected final void setP(com.trolltech.qt.core.QPoint p)"/>
</class>
