#include <glv_core.h>

Public Member Functions | |
| GLV (drawCallback cb=0, space_t width=800, space_t height=600) | |
| void | broadcastEvent (Event::t e) |
| Send this event to everyone in tree (including self). | |
| virtual void | drawGLV (unsigned int w, unsigned int h) |
| void | drawWidgets (unsigned int w, unsigned int h) |
| Draws all acive widgest in the GLV. | |
| void | preamble (unsigned int w, unsigned int h) |
| Clears color and depth buffers. Prepares OpenGL context for draw loop. | |
| bool | propagateEvent () |
| Update input event state; called by external event handlers. | |
| void | setFocus (View *v) |
| set current event target: | |
| void | setMouseDown (space_t &x, space_t &y, int button, int clicks) |
| this function will modify the input coordinates to be relative to the target view's origin | |
| void | setMouseDrag (space_t &x, space_t &y) |
| this function will modify the input coordinates to be relative to the target view's origin | |
| void | setMouseUp (space_t &x, space_t &y, int button, int clicks) |
| this function will modify the input coordinates to be relative to the target view's origin | |
Static Public Member Functions | |
| static bool | valid (const GLV *g) |
| Returns true if there is a valid GLV instance at this address. | |
Public Attributes | |
| Mouse | mouse |
| Current mouse state. | |
| Keyboard | keyboard |
| Current keyboard state. | |
| glv::GLV::GLV | ( | drawCallback | cb = 0, |
|
| space_t | width = 800, |
|||
| space_t | height = 600 | |||
| ) |
| [in] | cb | My drawing callback |
| [in] | width | Initial width |
| [in] | height | Initial height |
| void glv::GLV::drawGLV | ( | unsigned int | w, | |
| unsigned int | h | |||
| ) | [virtual] |
| bool glv::GLV::propagateEvent | ( | ) |
Update input event state; called by external event handlers.
Be sure to set the eventType first! Returns whether the event was consumed.
1.5.5