X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0cc7004a6ec1c53c0fd974898ef9ffd3739bef4..de536319f16406adf967003637b2655c61f6cb09:/interface/palette.h?ds=sidebyside diff --git a/interface/palette.h b/interface/palette.h index 2630124016..f1a9a4bdc0 100644 --- a/interface/palette.h +++ b/interface/palette.h @@ -27,18 +27,28 @@ @category{gdi} @stdobjects - ::Objects:, ::wxNullPalette, + ::wxNullPalette - @see wxDC::SetPalette, wxBitmap + @see wxDC::SetPalette(), wxBitmap */ class wxPalette : public wxGDIObject { public: - //@{ + /** - Creates a palette from arrays of size @e n, one for each - red, blue or green component. - + Default constructor. + */ + wxPalette(); + + /** + Copy constructor, uses @ref overview_refcount. + */ + wxPalette(const wxPalette& palette); + + /** + Creates a palette from arrays of size @a n, one for each red, blue or + green component. + @param palette A pointer or reference to the palette to copy. @param n @@ -49,27 +59,24 @@ public: An array of green values. @param blue An array of blue values. - + @see Create() */ - wxPalette(); - wxPalette(const wxPalette& palette); wxPalette(int n, const unsigned char* red, const unsigned char* green, const unsigned char* blue); - //@} /** Destructor. - See @ref overview_refcountdestruct "reference-counted object destruction" for - more info. + + @see @ref overview_refcount_destruct "reference-counted object destruction" */ ~wxPalette(); /** - Creates a palette from arrays of size @e n, one for each - red, blue or green component. - + Creates a palette from arrays of size @a n, one for each red, blue or + green component. + @param n The number of indices in the palette. @param red @@ -78,9 +85,9 @@ public: An array of green values. @param blue An array of blue values. - - @returns @true if the creation was successful, @false otherwise. - + + @return @true if the creation was successful, @false otherwise. + @see wxPalette() */ bool Create(int n, const unsigned char* red, @@ -94,16 +101,16 @@ public: /** Returns a pixel value (index into the palette) for the given RGB values. - + @param red Red value. @param green Green value. @param blue Blue value. - - @returns The nearest palette index or wxNOT_FOUND for unexpected errors. - + + @return The nearest palette index or @c wxNOT_FOUND for unexpected errors. + @see GetRGB() */ int GetPixel(unsigned char red, unsigned char green, @@ -111,7 +118,7 @@ public: /** Returns RGB values for a given palette index. - + @param pixel The palette index. @param red @@ -120,9 +127,9 @@ public: Receives the green value. @param blue Receives the blue value. - - @returns @true if the operation was successful. - + + @return @true if the operation was successful. + @see GetPixel() */ bool GetRGB(int pixel, const unsigned char* red, @@ -135,20 +142,14 @@ public: bool IsOk() const; /** - Assignment operator, using @ref overview_trefcount "reference counting". + Assignment operator, using @ref overview_refcount. */ - wxPalette operator =(const wxPalette& palette); + wxPalette& operator =(const wxPalette& palette); }; /** - FIXME -*/ -wxPalette Objects: -; - -/** - FIXME + An empty palette. */ wxPalette wxNullPalette;