X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c91108763b1621be54af24e24b2fab590db87325..38f1526768e108c7e2e1da50d16115b46004b89f:/docs/latex/wx/colour.tex?ds=inline diff --git a/docs/latex/wx/colour.tex b/docs/latex/wx/colour.tex index 2cd926e19a..40437b1cf5 100644 --- a/docs/latex/wx/colour.tex +++ b/docs/latex/wx/colour.tex @@ -7,6 +7,8 @@ named colour may be returned instead of creating a new colour. Valid RGB values are in the range 0 to 255. +You can retrieve the current system colour settings with \helpref{wxSystemSettings}{wxsystemsettings}. + \wxheading{Derived from} \helpref{wxObject}{wxobject} @@ -34,7 +36,7 @@ wxLIGHT\_GREY} \wxheading{See also} \helpref{wxColourDatabase}{wxcolourdatabase}, \helpref{wxPen}{wxpen}, \helpref{wxBrush}{wxbrush},\rtfsp -\helpref{wxColourDialog}{wxcolourdialog} +\helpref{wxColourDialog}{wxcolourdialog}, \helpref{wxSystemSettings}{wxsystemsettings} \latexignore{\rtfignore{\wxheading{Members}}} @@ -106,7 +108,7 @@ Returns the green intensity. \constfunc{bool}{Ok}{\void} -Returns TRUE if the colour object is valid (the colour has been initialised with RGB values). +Returns true if the colour object is valid (the colour has been initialised with RGB values). \membersection{wxColour::Red}\label{wxcolourred} @@ -169,7 +171,7 @@ This class holds a variety of information related to colour dialogs. \func{}{wxColourData}{\void} Constructor. Initializes the custom colours to white, the {\it data colour} setting -to black, and the {\it choose full} setting to TRUE. +to black, and the {\it choose full} setting to true. \membersection{wxColourData::\destruct{wxColourData}} @@ -184,7 +186,7 @@ Destructor. Under Windows, determines whether the Windows colour dialog will display the full dialog with custom colour selection controls. Has no meaning under other platforms. -The default value is TRUE. +The default value is true. \membersection{wxColourData::GetColour}\label{wxcolourdatagetcolour} @@ -210,7 +212,7 @@ The default custom colours are all white. Under Windows, tells the Windows colour dialog to display the full dialog with custom colour selection controls. Under other platforms, has no effect. -The default value is TRUE. +The default value is true. \membersection{wxColourData::SetColour}\label{wxcolourdatasetcolour} @@ -222,7 +224,7 @@ The default colour is black. \membersection{wxColourData::SetCustomColour}\label{wxcolourdatasetcustomcolour} -\func{void}{SetColour}{\param{int}{ i}, \param{const wxColour\&}{ colour}} +\func{void}{SetCustomColour}{\param{int}{ i}, \param{const wxColour\&}{ colour}} Sets the {\it i}th custom colour for the colour dialog. {\it i} should be an integer between 0 and 15. @@ -233,7 +235,7 @@ The default custom colours are all white. \func{void}{operator $=$}{\param{const wxColourData\&}{ data}} -Assingment operator for the colour data. +Assignment operator for the colour data. \section{\class{wxColourDatabase}}\label{wxcolourdatabase} @@ -244,8 +246,7 @@ is only one instance of this class: {\bf wxTheColourDatabase}. \wxheading{Derived from} -\helpref{wxList}{wxlist}\\ -\helpref{wxObject}{wxobject} +None \wxheading{Include files} @@ -280,6 +281,13 @@ YELLOW GREEN. Constructs the colour database. +\membersection{wxColourDatabase::AddColour}\label{wxcolourdatabaseaddcolour} + +\func{void}{AddColour}{\param{const wxString\& }{colourName}, \param{wxColour* }{colour}} + +Adds a colour to the database. If a colour with the same name already exists, +it is replaced. + \membersection{wxColourDatabase::FindColour}\label{wxcolourdatabasefindcolour} \func{wxColour*}{FindColour}{\param{const wxString\& }{colourName}}