X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/63a6a75000ded502087a9e063569d1ce864951b9..b09857ae000a60704207d63290be937584805fb0:/interface/wx/colour.h diff --git a/interface/wx/colour.h b/interface/wx/colour.h index a0176ab1cc..886b65adc6 100644 --- a/interface/wx/colour.h +++ b/interface/wx/colour.h @@ -187,7 +187,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 +235,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