glv::GLV Class Reference

The top-level View. More...

#include <glv_core.h>

Inheritance diagram for glv::GLV:

glv::View glv::TRect< T > glv::Notifier glv::SmartObject< BaseClass >

List of all members.

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.


Detailed Description

The top-level View.

Constructor & Destructor Documentation

glv::GLV::GLV ( drawCallback  cb = 0,
space_t  width = 800,
space_t  height = 600 
)

Parameters:
[in] cb My drawing callback
[in] width Initial width
[in] height Initial height


Member Function Documentation

void glv::GLV::drawGLV ( unsigned int  w,
unsigned int  h 
) [virtual]

GLV MAIN RENDER LOOP: draw all Views in the GLV The assumption is that we are inside an OpenGL context of size [w, h]

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.


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

Generated on Thu Aug 12 23:55:16 2010 for GLV by  doxygen 1.5.5