KJB
|
#include <gui_event_listener.h>
Public Member Functions | |
virtual bool | mouse_event (int button, int state, int x, int y)=0 |
virtual bool | mouse_double_event (int button, int state, int x, int y)=0 |
virtual bool | motion_event (int x, int y)=0 |
virtual bool | passive_motion_event (int x, int y)=0 |
virtual bool | keyboard_event (unsigned int key, int x, int y)=0 |
virtual bool | special_event (int key, int x, int y)=0 |
Abstract interface for objects that can consume Glut interaction events (click, drag, hover, and keyboard). Method names and their signatures come from Glut's API e.g. the drag method is called "motion" after Glut's glutMotionFunc() function.
Returning "true" indicates that the function has consumed the event and other listeners won't receive it.
|
pure virtual |
Event called when ascii keys are pressed
Implemented in Null_event_listener.
|
pure virtual |
Event called when mouse is dragged
Implemented in Null_event_listener.
|
pure virtual |
Event called when mouse is clicked
Implemented in Null_event_listener.
|
pure virtual |
Event called when mouse is clicked
Implemented in Null_event_listener.
|
pure virtual |
Event called when mouse is moved without clicking ("hover")
Implemented in Null_event_listener.
|
pure virtual |
Event called when other keys are pressed (arrows, pgup, f1, f2, ...)
Implemented in Null_event_listener.