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 read only Integer Gets the Blue value
green read only Integer Gets the Green value
ok read only Boolean Returns true when the colour is valid
red read only 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.



SourceForge.net Logo Support This Project

Table of Contents

Constructor

wxColour

Properties

blue
green
ok
red

Methods

set


Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.