CopperSpice API  1.9.1
QEnterEvent Class Reference

The QEnterEvent class contains parameters that describe an enter event. More...

Inheritance diagram for QEnterEvent:
QEvent

Public Methods

 QEnterEvent (const QPointF &localPos, const QPointF &windowPos, const QPointF &screenPos)
 
QPoint globalPos () const
 
int globalX () const
 
int globalY () const
 
const QPointFlocalPos () const
 
QPoint pos () const
 
const QPointFscreenPos () const
 
const QPointFwindowPos () const
 
int x () const
 
int y () const
 
- Public Methods inherited from QEvent
 QEvent (const QEvent &other)
 
 QEvent (Type type)
 
virtual ~QEvent ()
 
void accept ()
 
void ignore ()
 
bool isAccepted () const
 
QEvent & operator= (const QEvent &other)
 
void setAccepted (bool accepted)
 
bool spontaneous () const
 
Type type () const
 

Additional Inherited Members

- Public Types inherited from QEvent
enum  Type
 
- Static Public Methods inherited from QEvent
static int registerEventType (int hint=-1)
 

Detailed Description

The QEnterEvent class contains parameters that describe an enter event. Enter events occur when the mouse cursor enters a window or a widget.

Constructor & Destructor Documentation

QEnterEvent::QEnterEvent ( const QPointF localPos,
const QPointF windowPos,
const QPointF screenPos 
)

Constructs an enter event object. The points localPos, windowPos and screenPos specify the mouse cursor's position relative to the receiving widget or item, window, and screen respectively.

Method Documentation

QPoint QEnterEvent::globalPos ( ) const
inline

Returns the global position of the widget at the time of the event.

int QEnterEvent::globalX ( ) const
inline

Returns the global position on the X-axis of the mouse cursor relative to the widget.

int QEnterEvent::globalY ( ) const
inline

Returns the global position on the Y-axis of the mouse cursor relative to the widget.

const QPointF & QEnterEvent::localPos ( ) const
inline

Returns the mouse cursor's position relative to the receiving widget.

QPoint QEnterEvent::pos ( ) const
inline

Returns the position of the mouse cursor in global screen coordinates.

const QPointF & QEnterEvent::screenPos ( ) const
inline

Returns the position of the mouse cursor relative to the receiving screen.

const QPointF & QEnterEvent::windowPos ( ) const
inline

Returns the position of the mouse cursor relative to the receiving window.

int QEnterEvent::x ( ) const
inline

Returns the x position of the mouse cursor relative to the receiving widget.

int QEnterEvent::y ( ) const
inline

Returns the y position of the mouse cursor relative to the receiving widget.