back to ext
wxColour
generated from ../src/mod_ext/colour.cpp
A colour is an object representing a combination of Red, Green, and Blue (RGB) intensity values.
This is a list of predefined colour objects:
wxBLACK, wxWHITE, wxRED, wxBLUE, wxGREEN, wxCYAN and wxLIGHT_GREY
Constants
Constructor
wxColour
wxColour(Red,
Green,
Blue)
| Name |
Type |
Default |
Description |
| Red |
Integer |
|
The red value
|
| Green |
Integer |
|
The green value
|
| Blue |
Integer |
|
The blue value
|
wxColour(Object)
| Name |
Type |
Default |
Description |
| Object |
Object |
|
A JSON object with properties: red, blue and green
|
wxColour(ColourName)
| Name |
Type |
Default |
Description |
| ColourName |
String |
|
The name used to retrieve the colour from wxTheColourDatabase
|
Constructs a new wxColour object.
Properties
| Name |
Type |
Description |
blue  |
Integer |
Gets the Blue value
|
green  |
Integer |
Gets the Green value
|
ok  |
Boolean |
Returns true when the colour is valid
|
red  |
Integer |
Gets the Red value
|
Methods
set
set(Red,
Green,
Blue)
| Name |
Type |
Default |
Description |
| Red |
Integer |
|
The red value
|
| Green |
Integer |
|
The green value
|
| Blue |
Integer |
|
The blue value
|
Sets the RGB values.