CVD::GLWindow::EventHandler Class Reference

Abstract base class for event handlers. Subclass this and override to implement a handler. More...

#include <glwindow.h>

List of all members.

Public Member Functions

virtual void on_event (GLWindow &, int)
 Called for general window events (such as EVENT_CLOSE).
virtual void on_key_down (GLWindow &, int)
 Called for key press events.
virtual void on_key_up (GLWindow &, int)
 Called for key release events.
virtual void on_mouse_down (GLWindow &, ImageRef, int, int)
 Called for mouse button press events.
virtual void on_mouse_move (GLWindow &, ImageRef, int)
 Called for mouse movement events.
virtual void on_mouse_up (GLWindow &, ImageRef, int, int)
 Called for mouse button release events.
virtual void on_resize (GLWindow &, ImageRef)
 Called for window resize events.
virtual ~EventHandler ()

Detailed Description

Abstract base class for event handlers. Subclass this and override to implement a handler.

Definition at line 47 of file glwindow.h.


Constructor & Destructor Documentation

virtual CVD::GLWindow::EventHandler::~EventHandler (  )  [inline, virtual]

Definition at line 49 of file glwindow.h.


Member Function Documentation

virtual void CVD::GLWindow::EventHandler::on_event ( GLWindow ,
int   
) [inline, virtual]

Called for general window events (such as EVENT_CLOSE).

Definition at line 63 of file glwindow.h.

virtual void CVD::GLWindow::EventHandler::on_key_down ( GLWindow ,
int   
) [inline, virtual]

Called for key press events.

Definition at line 51 of file glwindow.h.

virtual void CVD::GLWindow::EventHandler::on_key_up ( GLWindow ,
int   
) [inline, virtual]

Called for key release events.

Definition at line 53 of file glwindow.h.

virtual void CVD::GLWindow::EventHandler::on_mouse_down ( GLWindow ,
ImageRef  ,
int  ,
int   
) [inline, virtual]

Called for mouse button press events.

Definition at line 57 of file glwindow.h.

virtual void CVD::GLWindow::EventHandler::on_mouse_move ( GLWindow ,
ImageRef  ,
int   
) [inline, virtual]

Called for mouse movement events.

Definition at line 55 of file glwindow.h.

virtual void CVD::GLWindow::EventHandler::on_mouse_up ( GLWindow ,
ImageRef  ,
int  ,
int   
) [inline, virtual]

Called for mouse button release events.

Definition at line 59 of file glwindow.h.

virtual void CVD::GLWindow::EventHandler::on_resize ( GLWindow ,
ImageRef   
) [inline, virtual]

Called for window resize events.

Definition at line 61 of file glwindow.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


libcvd
Author(s): Edward Rosten, Paul Smith, Tom Drummond, Gerhard Reitmayr, Ethan Eade, Timothy Gan, Chris Kemp, Georg Klein
autogenerated on Fri Jan 11 09:13:51 2013