ui::event::MouseEvent Class Reference

Inheritance diagram for ui::event::MouseEvent:

Inheritance graph
[legend]
Collaboration diagram for ui::event::MouseEvent:

Collaboration graph
[legend]
List of all members.

Detailed Description

Mouse related events.


Public Types

enum  MouseEventTypes {
  MOUSE_PRESSED, MOUSE_RELEASED, MOUSE_CLICKED, MOUSE_EXITED,
  MOUSE_DRAGGED, MOUSE_ENTERED, MOUSE_MOTION
}
enum  MouseButtons {
  MOUSE_BUTTON1, MOUSE_BUTTON2, MOUSE_BUTTON3, MOUSE_SCROLL_UP,
  MOUSE_SCROLL_DOWN
}

Public Member Functions

 MouseEvent (Component *sourceComponent, int id, int x, int y, int mouseButton)
int getButton () const
int getX () const
int getY () const


Member Enumeration Documentation

enum ui::event::MouseEvent::MouseEventTypes
 

Enumeration values:
MOUSE_PRESSED  Mouse is pressed.
MOUSE_RELEASED  Mouse is released.
MOUSE_CLICKED  Mouse is clicked (pressed and released)
MOUSE_EXITED  The mouse pointer exited the Component.
MOUSE_DRAGGED  The mouse is dragged.
MOUSE_ENTERED  The mouse pointer entered the Component.
MOUSE_MOTION  The mouse has moved


Constructor & Destructor Documentation

ui::event::MouseEvent::MouseEvent Component sourceComponent,
int  id,
int  x,
int  y,
int  mouseButton
 

Creates a new MouseEvent with the specified Component as source.


Member Function Documentation

int ui::event::MouseEvent::getButton  )  const
 

Returns the button that generated this event.

int ui::event::MouseEvent::getX  )  const
 

Returns the x location of the MouseEvent.

int ui::event::MouseEvent::getY  )  const
 

Returns the y location of the MouseEvent.


Generated on Mon Jun 20 19:41:58 2005 for UI by doxygen 1.3.1 using KingsTools