Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

EventInfo Class Reference

#include <eventinfo.h>

List of all members.


Detailed Description

Contains information from for a mouse event that occured on a canvas. Like a QMouseEvent / QEvent / QWheelEvent, but abstracted to the canvas coordinate system, as well as holding lots of useful information.
Author:
David Saxton

Definition at line 29 of file eventinfo.h.


Public Member Functions

 EventInfo (ItemView *itemView, QEvent *e)
 EventInfo (ItemView *itemView, QWheelEvent *e)
 EventInfo (ItemView *itemView, QMouseEvent *e)
QMouseEvent * mouseDoubleClickEvent (int dx, int dy) const
QMouseEvent * mouseMoveEvent (int dx, int dy) const
QMouseEvent * mousePressEvent (int dx, int dy) const
QMouseEvent * mouseReleaseEvent (int dx, int dy) const
QWheelEvent * wheelEvent (int dx, int dy) const

Public Attributes

bool altPressed
bool ctrlPressed
QPoint globalPos
bool isMiddleClick
bool isRightClick
QPoint pos
QCanvasItem * qcanvasItemClickedOn
short scrollDelta
Qt::Orientation scrollOrientation
bool shiftPressed

Protected Member Functions

void extractPos (ItemView *itemView, const QPoint &contentsMouseClick)
void reset ()

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index