libcvd
Public Member Functions | List of all members
CVD::GLWindow::EventHandler Class Reference

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

#include <glwindow.h>

Inheritance diagram for CVD::GLWindow::EventHandler:
Inheritance graph
[legend]

Public Member Functions

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

Detailed Description

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


The documentation for this class was generated from the following file: