X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc61b49e6a42bd9ea36fa0e7115597de3b5ce448..9d33840bab4e10d701dd36f9b8660f6a13f05afe:/interface/wx/image.h diff --git a/interface/wx/image.h b/interface/wx/image.h index 3062fe6413..a6086356f7 100644 --- a/interface/wx/image.h +++ b/interface/wx/image.h @@ -566,12 +566,20 @@ public: @param height The height of the image in pixels. @param clear - If @true, initialize the image data with zeros. + If @true, initialize the image data with zeroes. @return @true if the call succeeded, @false otherwise. */ bool Create(int width, int height, bool clear = true); + /** + Initialize the image data with zeroes (the default) or with the + byte value given as @a value. + + @since 2.9.0 + */ + void Clear(unsigned char value = 0); + /** Destroys the image data. */ @@ -694,7 +702,7 @@ public: @see wxImageHandler */ - static wxList GetHandlers(); + static wxList& GetHandlers(); /** Gets the height of the image in pixels. @@ -1438,11 +1446,17 @@ public: wxImage& operator=(const wxImage& image); }; +/** + An instance of an empty image without an alpha channel. +*/ +wxImage wxNullImage; + + // ============================================================================ // Global functions/macros // ============================================================================ -/** @ingroup group_funcmacro_appinitterm */ +/** @addtogroup group_funcmacro_appinitterm */ //@{ /**