Public Members |
 |  |
| ddgViewport ( ddgCamera *c, unsigned short x = 5, unsigned short y = 70, unsigned short w = 25, unsigned short h = 25)
|
 |  | | Create a sub-viewport associated with a camera at a given canvas position and a given size.
|
 |  |
| ~ddgViewport ()
|
 |  | | Destroy the viewport.
|
 |  |
unsigned short int | px ( int i = -1)
|
 |  | | Return (and set) the X position of the viewport.
|
 |  |
unsigned short int | py ( int i = -1)
|
 |  | | Return (and set) the Y position of the viewport.
|
 |  |
unsigned short int | dx ( int i = 0)
|
 |  | | Return (and set) the width of the viewport.
|
 |  |
unsigned short int | dy ( int i = 0)
|
 |  | | Return (and set) the width of the viewport.
|
 |  |
int | id ( int i = 0)
|
 |  | | Return the viewports id.
|
 |  |
void | enabled ( bool e )
|
 |  | | Parameter access functions.
|
 |  |
bool | enabled (void)
|
 |  | | Return if viewport is active.
|
 |  |
void | edge (bool edge)
|
 |  | | Indicate if the viewport should have an edge drawn around it.
|
 |  |
bool | edge (void)
|
 |  |
void | slave ( bool s )
|
 |  | | Set and get the slave settings.
|
 |  |
bool | slave ( void )
|
 |  |
void | control ( bool c )
|
 |  | | Set and get the slave settings.
|
 |  |
bool | control ( void )
|
 |  | | Is this viewport a controller.
|
 |  |
void | camera ( ddgCamera *c )
|
 |  | | Set the camera.
|
 |  |
ddgCamera* | camera (void)
|
 |  | | Get the camera for this viewport.
|
 |  |
ddgUIGroup* | uigroup (void)
|
 |  | | Get the uigroup.
|
 |  |
void | update ( void (*u)(void))
|
 |  | | Set the update function.
|
 |  |
bool | update ( void )
|
 |  | | Check if an update function is set.
|
 |  |
void | doUpdate (void )
|
 |  | | Call the update function to allow camera to perform some work.
|
 |  |
ddgEventHandler* | eventHandler (void)
|
 |  | | Return the event handler object.
|
 |  |
void | eventHandler (ddgEventHandler *eh)
|
 |  | | Set the event handler object.
|
 |  | unsigned short int | _px |
 |  | | Viewport positions and sizes. More...
|
 |  | unsigned short int | _py |
 |  | unsigned short int | _dx |
 |  | unsigned short int | _dy |
Friends |
 |  | class | ddgViewportSet |