dtABC::MouseEvent Struct Reference

MouseEvent struct for passing mouse events. More...

#include <widget.h>

List of all members.

Public Types

enum  Type {
  NO_EVENT = 0, PUSH, DOUBLE, RELEASE,
  ENTER, LEAVE, DRAG, MOVE,
  WHEEL_UP, WHEEL_DN, DND_ENTER, DND_DRAG,
  DND_LEAVE, DND_RELEASE
}

Public Member Functions

 MouseEvent (int ev=NO_EVENT, float px=0.f, float py=0.f, int bt=0L)
 event button
 MouseEvent (const MouseEvent &that)
 Copy Constructor.
MouseEventoperator= (const MouseEvent &that)
 Copy Operator.

Public Attributes

int event
float pos_x
 mouse event
float pos_y
 x coordinate
int button
 y coordinate


Detailed Description

MouseEvent struct for passing mouse events.

Member Enumeration Documentation

enum dtABC::MouseEvent::Type

Enumerator:
NO_EVENT 
PUSH 
DOUBLE 
RELEASE 
ENTER 
LEAVE 
DRAG 
MOVE 
WHEEL_UP 
WHEEL_DN 
DND_ENTER 
DND_DRAG 
DND_LEAVE 
DND_RELEASE 


Constructor & Destructor Documentation

MouseEvent::MouseEvent ( int  ev = NO_EVENT,
float  px = 0.f,
float  py = 0.f,
int  bt = 0L 
)

event button

Default Constructor.

Parameters:
ev mouse event
px horizontal position
py vertical position
bt the button number

MouseEvent::MouseEvent ( const MouseEvent that  ) 

Copy Constructor.

Parameters:
that object to copy from


Member Function Documentation

MouseEvent & MouseEvent::operator= ( const MouseEvent that  ) 

Copy Operator.

Parameters:
that object to copy from
Returns:
a reference to this object


Member Data Documentation

int dtABC::MouseEvent::event

float dtABC::MouseEvent::pos_x

mouse event

float dtABC::MouseEvent::pos_y

x coordinate

int dtABC::MouseEvent::button

y coordinate


http://www.delta3d.org
2.0.0 generated 14 Feb 2008