X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4ee4c7b948e76377a6947d3ffbe5099870d0c3e9..d72177fd4db4389689051dffc7c74a84e58dc4a4:/interface/wx/graphics.h diff --git a/interface/wx/graphics.h b/interface/wx/graphics.h index 638787d069..b692552c59 100644 --- a/interface/wx/graphics.h +++ b/interface/wx/graphics.h @@ -3,7 +3,7 @@ // Purpose: interface of various wxGraphics* classes // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -201,7 +201,7 @@ public: }; /** - Anti-aliasing modes used by wxGraphicsContext::SetAntialisingMode + Anti-aliasing modes used by wxGraphicsContext::SetAntialiasMode(). */ enum wxAntialiasMode { @@ -215,7 +215,7 @@ enum wxAntialiasMode /** Compositing is done using Porter-Duff compositions (see http://keithp.com/~keithp/porterduff/p253-porter.pdf) with - wxGraphicsContext::SetCompositionMode + wxGraphicsContext::SetCompositionMode(). The description give a short equation on how the values of a resulting pixel are calculated. @@ -686,12 +686,10 @@ public: @param col The colour of this stop. Note that the alpha component of the colour is honoured thus allowing the background colours to partially show through the gradient. - @param pos The stop position, must be in [0, 1) range with 0 being the - beginning and 1 the end of the gradient (but it doesn't make sense - to create a stop at position 1 because it would never be visible - anyhow). + @param pos The stop position, must be in [0, 1] range with 0 being the + beginning and 1 the end of the gradient. */ - wxGraphicsGradientStop(wxColour col, float pos); + wxGraphicsGradientStop(wxColour col = wxTransparentColour, float pos = 0.); /// Return the stop colour. const wxColour& GetColour() const; @@ -709,7 +707,7 @@ public: /** Change the stop position. - @param pos The new position, must always be in [0, 1) range. + @param pos The new position, must always be in [0, 1] range. */ void SetPosition(float pos); };