class PresetColours

A collection of application display parameter values. More...

Full nameTSE3::PresetColours
Definition#include <DisplayParams.h>
InheritsTSE3::Notifier [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

This class holds information about a set of global colours that can be used by a DisplayParams object whose DisplayParams::style() is set to PresetColour.

See also: DisplayParams

 PresetColours ()

PresetColours

void  colour (int preset, int &r, int &g, int &b)

colour

Returns the RGB values of the specified preset colour in the reference parameters. The colour is returned as RGB values, each between 0-255.

Parameters:
presetDisplayParams::PresetColours value to read RGB values for If you pass an invalid preset value, then the result is undefined.
rInteger the blue value is returned in (0-255)
gInteger the green value is returned in (0-255)
bInteger the red value is returned in (0-255)

See also: setColour

void  setColour (int preset, int r, int g, int b)

setColour

Sets the preset colour's RGB value.

Parameters:
presetDisplayParams::PresetColours value to set RGB values for If you pass an invalid preset value, then the result is undefined.
rNew blue value (0-255)
gNew green value (0-255)
bNew red value (0-255)

See also: colour