Abstract base class for event handlers. Subclass this and override to implement a handler. More...
#include <glwindow.h>
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 () |
Abstract base class for event handlers. Subclass this and override to implement a handler.
Definition at line 47 of file glwindow.h.
virtual CVD::GLWindow::EventHandler::~EventHandler | ( | ) | [inline, virtual] |
Definition at line 49 of file glwindow.h.
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.
Called for window resize events.
Definition at line 61 of file glwindow.h.