Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgViewport Class Reference

This class supports rendering a view in a subregion of the main display. More...

#include <ddgviewport.h>

Class diagram for ddgViewport:

ddgListNode

List of all members.


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.

ddgCameracamera (void)
Get the camera for this viewport.

ddgUIGroupuigroup (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.

ddgEventHandlereventHandler (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

Detailed Description

This class supports rendering a view in a subregion of the main display.

One viewport should be defined as the root display.


Member Data Documentation

unsigned short int ddgViewport::_px

Viewport positions and sizes.

If this is the root viewport these are pixel coordinates. If this is a sub viewport these are percentages coordinates.

unsigned short int ddgViewport::_py

If this is the root viewport these are pixel coordinates. If this is a sub viewport these are percentages coordinates.

unsigned short int ddgViewport::_dx

If this is the root viewport these are pixel coordinates. If this is a sub viewport these are percentages coordinates.

unsigned short int ddgViewport::_dy

If this is the root viewport these are pixel coordinates. If this is a sub viewport these are percentages coordinates.


The documentation for this class was generated from the following file:
Generated at Sun Sep 17 19:27:58 2000 for Digital Dawn Graphics Toolkit by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999