Main Page   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

QEvent Class Reference

Event class, which holds the events. More...

#include <QEvent.h>

Collaboration diagram for QEvent:

Collaboration graph
[legend]

Public Methods

virtual QEventType getType ()
 getter method for Type

virtual void setType (QEventType newValue)
 setter method for Type

virtual QMouseButton getButton ()
 getter method for Button

virtual void setButton (QMouseButton newValue)
 setter method for Button

virtual int getX ()
 getter method for X

virtual void setX (int newValue)
 setter method for X

virtual int getY ()
 getter method for Y

virtual void setY (int newValue)
 setter method for Y

virtual int getKey ()
 getter method for Key

virtual void setKey (int newValue)
 setter method for Key

void copyFrom (QEvent *from)
 copy itself from another instance

void print ()
 prints itself to the cout

 QEvent ()
 Constructor.

virtual ~QEvent ()
 Destructor.

virtual QEventType getType ()
 getter method for Type

virtual void setType (QEventType newValue)
 setter method for Type

virtual QMouseButton getButton ()
 getter method for Button

virtual void setButton (QMouseButton newValue)
 setter method for Button

virtual int getX ()
 getter method for X

virtual void setX (int newValue)
 setter method for X

virtual int getY ()
 getter method for Y

virtual void setY (int newValue)
 setter method for Y

virtual int getKey ()
 getter method for Key

virtual void setKey (int newValue)
 setter method for Key

void copyFrom (QEvent *from)
 copy itself from another instance

void print ()
 prints itself to the cout

 QEvent ()
 Constructor.

virtual ~QEvent ()
 Destructor.


Protected Attributes

QEventType Type
 type of event

QMouseButton Button
 mouse button

int X
 mouse button x coordinate

int Y
 mouse button y coordinate

int Key
 keyboard key


Detailed Description

Event class, which holds the events.

Definition at line 21 of file QEvent.h.


Constructor & Destructor Documentation

QEvent::QEvent  
 

Constructor.

Definition at line 101 of file QEvent.cpp.

QEvent::~QEvent   [virtual]
 

Destructor.

Definition at line 113 of file QEvent.cpp.

QEvent::QEvent  
 

Constructor.

virtual QEvent::~QEvent   [virtual]
 

Destructor.


Member Function Documentation

void QEvent::copyFrom QEvent *    from
 

copy itself from another instance

void QEvent::copyFrom QEvent *    from
 

copy itself from another instance

Definition at line 76 of file QEvent.cpp.

virtual QMouseButton QEvent::getButton   [virtual]
 

getter method for Button

QMouseButton QEvent::getButton   [virtual]
 

getter method for Button

Definition at line 26 of file QEvent.cpp.

References Button.

Referenced by QWindow::processEvent(), QButton::processEvent(), and QWindow::processMouseOwner().

virtual int QEvent::getKey   [virtual]
 

getter method for Key

int QEvent::getKey   [virtual]
 

getter method for Key

Definition at line 62 of file QEvent.cpp.

References Key.

Referenced by QTextEdit::processEvent(), and QButton::processEvent().

virtual QEventType QEvent::getType   [virtual]
 

getter method for Type

QEventType QEvent::getType   [virtual]
 

getter method for Type

Definition at line 14 of file QEvent.cpp.

References Type.

Referenced by QWidget::event(), QWidget::handleMouseEvent(), QWindow::processEvent(), QTextEdit::processEvent(), QRadioButton::processEvent(), QCheckBox::processEvent(), QButton::processEvent(), and QWindow::processMouseOwner().

virtual int QEvent::getX   [virtual]
 

getter method for X

int QEvent::getX   [virtual]
 

getter method for X

Definition at line 38 of file QEvent.cpp.

References X.

Referenced by QToolBar::canDrag(), QWidget::handleDragging(), QWidget::handleMouseEvent(), QWindow::processEvent(), QWindow::processMouseOwner(), and QButton::processMouseOwner().

virtual int QEvent::getY   [virtual]
 

getter method for Y

int QEvent::getY   [virtual]
 

getter method for Y

Definition at line 50 of file QEvent.cpp.

References Y.

Referenced by QWindow::canDrag(), QWidget::handleDragging(), QWidget::handleMouseEvent(), QWindow::processEvent(), QWindow::processMouseOwner(), and QButton::processMouseOwner().

void QEvent::print  
 

prints itself to the cout

void QEvent::print  
 

prints itself to the cout

Definition at line 88 of file QEvent.cpp.

Referenced by QTextEdit::processEvent().

virtual void QEvent::setButton QMouseButton    newValue [virtual]
 

setter method for Button

void QEvent::setButton QMouseButton    newValue [virtual]
 

setter method for Button

Definition at line 32 of file QEvent.cpp.

References Button.

Referenced by QScreen::glutMouse().

virtual void QEvent::setKey int    newValue [virtual]
 

setter method for Key

void QEvent::setKey int    newValue [virtual]
 

setter method for Key

Definition at line 68 of file QEvent.cpp.

References Key.

Referenced by QScreen::glutKeyboard(), QScreen::glutKeyboardUp(), and QScreen::glutSpecialFunc().

virtual void QEvent::setType QEventType    newValue [virtual]
 

setter method for Type

void QEvent::setType QEventType    newValue [virtual]
 

setter method for Type

Definition at line 20 of file QEvent.cpp.

References Type.

Referenced by QScreen::glutDisplay(), QScreen::glutKeyboard(), QScreen::glutKeyboardUp(), QScreen::glutMotion(), QScreen::glutMouse(), and QScreen::glutSpecialFunc().

virtual void QEvent::setX int    newValue [virtual]
 

setter method for X

void QEvent::setX int    newValue [virtual]
 

setter method for X

Definition at line 44 of file QEvent.cpp.

References X.

Referenced by QScreen::glutKeyboard(), QScreen::glutKeyboardUp(), QScreen::glutMotion(), QScreen::glutMouse(), QScreen::glutSpecialFunc(), and QWidget::handleMouseEvent().

virtual void QEvent::setY int    newValue [virtual]
 

setter method for Y

void QEvent::setY int    newValue [virtual]
 

setter method for Y

Definition at line 56 of file QEvent.cpp.

References Y.

Referenced by QScreen::glutKeyboard(), QScreen::glutKeyboardUp(), QScreen::glutMotion(), QScreen::glutMouse(), QScreen::glutSpecialFunc(), and QWidget::handleMouseEvent().


Field Documentation

QMouseButton QEvent::Button [protected]
 

mouse button

Definition at line 29 of file QEvent.h.

Referenced by getButton(), and setButton().

int QEvent::Key [protected]
 

keyboard key

Definition at line 38 of file QEvent.h.

Referenced by getKey(), and setKey().

QEventType QEvent::Type [protected]
 

type of event

Definition at line 26 of file QEvent.h.

Referenced by getType(), and setType().

int QEvent::X [protected]
 

mouse button x coordinate

Definition at line 32 of file QEvent.h.

Referenced by getX(), and setX().

int QEvent::Y [protected]
 

mouse button y coordinate

Definition at line 35 of file QEvent.h.

Referenced by getY(), and setY().


The documentation for this class was generated from the following files:
Generated on Thu Mar 18 18:34:29 2004 for miniQT by doxygen1.2.18