class PresetColours
|
A collection of application display parameter values. More... |
|
|
Public Methods
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:
preset | DisplayParams::PresetColours value to
read RGB values for
If you pass an invalid preset value, then the
result is undefined.
|
r | Integer the blue value is returned in (0-255)
|
g | Integer the green value is returned in (0-255)
|
b | Integer 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:
preset | DisplayParams::PresetColours value to
set RGB values for
If you pass an invalid preset value, then the
result is undefined.
|
r | New blue value (0-255)
|
g | New green value (0-255)
|
b | New red value (0-255)
|
See also: colour
- Version: 3.00
- Author: Pete Goodliffe
- Generated: pete on philemon on Wed May 25 14:40:07 2005, using kdoc 2.0a54.