Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Class Members

InputHandler Class Reference
[Windowing]

#include <lvt/InputHandler.h>

Inheritance diagram for InputHandler:

Inheritance graph
[legend]
List of all members.

Detailed Description

Takes some action in response to an input message.

An InputHandler, when attached to a Wnd object, will accept input messages sent to the window.

Each member function corresponds to one message handler in the Wnd class. The semantics of the messages are the same, as are the parameters, with the exception of the added Wnd * parameter, which is a pointer to the Wnd that received the message. An input handler function returns true if it handled the message, false if it did not.


Public Member Functions

virtual bool OnLButtonDblClk (class Wnd *w, int x, int y)
 The left mouse button has been double-clicked.
virtual bool OnLButtonDown (class Wnd *w, int x, int y)
 The left mouse button has been pressed.
virtual bool OnLButtonUp (class Wnd *w, int x, int y)
 The left mouse button has been released.
virtual bool OnMButtonDblClk (class Wnd *w, int x, int y)
 The middle mouse button has been double-clicked.
virtual bool OnMButtonDown (class Wnd *w, int x, int y)
 The middle mouse button has been pressed.
virtual bool OnMButtonUp (class Wnd *w, int x, int y)
 The middle mouse button has been released.
virtual bool OnMouseMove (class Wnd *w, int x, int y)
 The mouse has been moved.
virtual bool OnMouseWheel (class Wnd *w, int x, int y, int zDelta)
 The mouse wheel has been moved.
virtual bool OnRButtonDblClk (class Wnd *w, int x, int y)
 The right mouse button has been double-clicked.
virtual bool OnRButtonDown (class Wnd *w, int x, int y)
 The right mouse button has been pressed.
virtual bool OnRButtonUp (class Wnd *w, int x, int y)
 The right mouse button has been released.


Member Function Documentation

virtual bool OnLButtonDblClk class Wnd w,
int  x,
int  y
[inline, virtual]
 

The left mouse button has been double-clicked.

virtual bool OnLButtonDown class Wnd w,
int  x,
int  y
[inline, virtual]
 

The left mouse button has been pressed.

Reimplemented in Examiner.

virtual bool OnLButtonUp class Wnd w,
int  x,
int  y
[inline, virtual]
 

The left mouse button has been released.

Reimplemented in Examiner.

virtual bool OnMButtonDblClk class Wnd w,
int  x,
int  y
[inline, virtual]
 

The middle mouse button has been double-clicked.

virtual bool OnMButtonDown class Wnd w,
int  x,
int  y
[inline, virtual]
 

The middle mouse button has been pressed.

virtual bool OnMButtonUp class Wnd w,
int  x,
int  y
[inline, virtual]
 

The middle mouse button has been released.

virtual bool OnMouseMove class Wnd w,
int  x,
int  y
[inline, virtual]
 

The mouse has been moved.

Reimplemented in Examiner.

virtual bool OnMouseWheel class Wnd w,
int  x,
int  y,
int  zDelta
[inline, virtual]
 

The mouse wheel has been moved.

virtual bool OnRButtonDblClk class Wnd w,
int  x,
int  y
[inline, virtual]
 

The right mouse button has been double-clicked.

virtual bool OnRButtonDown class Wnd w,
int  x,
int  y
[inline, virtual]
 

The right mouse button has been pressed.

virtual bool OnRButtonUp class Wnd w,
int  x,
int  y
[inline, virtual]
 

The right mouse button has been released.


Generated on Thu Feb 17 09:45:47 2005 for liblvt by  doxygen 1.4.1