Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

TSE3::App::PartDisplay Class Reference

Support class for TSE3::Part display. More...

#include <PartDisplay.h>

Collaboration diagram for TSE3::App::PartDisplay:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PartDisplay (TSE3::Part *part, TSE3::PresetColours *pc=0)
bool useColour ()
void colour (int &r, int &g, int &b)

Detailed Description

Support class for TSE3::Part display.

The PartDisplay class handles interpretting a TSE3::Part's TSE3::DisplayParams alongside it's child TSE3::Phrase's TSE3::DisplayParams.

The TSE3::Part parameters take precidence over the TSE3::Phrase parameters. This class centralises the logic for working out which parameter to use.

The PartDisplay class uses the Application's TSE3::PresetColours object if necessary to find a preset colour value.

Author:
Pete Goodliffe
Version:
1.00
See also:
TSE3


Constructor & Destructor Documentation

TSE3::App::PartDisplay::PartDisplay TSE3::Part part,
TSE3::PresetColours pc = 0
 

You specify the Part to display and the TSE3::PresetColours that applies.

Parameters:
part TSE3::Part to create DisplayParams for
pc TSE3::PresetColours object to use


Member Function Documentation

bool TSE3::App::PartDisplay::useColour  ) 
 

Returns whether to display this part in colour or not.

void TSE3::App::PartDisplay::colour int &  r,
int &  g,
int &  b
 

Returns which colour to use on redraw.


The documentation for this class was generated from the following file:
Generated on Wed May 25 14:47:25 2005 for TSE3 by doxygen 1.3.2