X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/63a6a75000ded502087a9e063569d1ce864951b9..9e9574fe45b176ee74bba8fad7574cf9906145d1:/interface/wx/colour.h?ds=sidebyside diff --git a/interface/wx/colour.h b/interface/wx/colour.h index a0176ab1cc..09c1c242a6 100644 --- a/interface/wx/colour.h +++ b/interface/wx/colour.h @@ -2,7 +2,6 @@ // Name: colour.h // Purpose: interface of wxColour // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -187,7 +186,7 @@ public: /** Sets the RGB intensity values using the given values (first overload), extracting them from the packed long (second overload), using the given - string (third overloard). + string (third overload). When using third form, Set() accepts: colour names (those listed in wxColourDatabase), the CSS-like @c "rgb(r,g,b)" or @c "rgba(r,g,b,a)" syntax @@ -235,7 +234,16 @@ public: @since 2.9.0 */ static void MakeDisabled(unsigned char* r, unsigned char* g, unsigned char* b, unsigned char brightness = 255); - + + /** + Make a disabled version of this colour. + + This method modifies the object in place and returns the object itself. + + @since 2.9.5 + */ + wxColour& MakeDisabled(unsigned char brightness = 255); + /** Create a grey colour from (in/out) rgb parameters using integer arithmetic. @since 2.9.0