X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cbea3ec6ae2cd8c8d477c6f04a09ca8a1fa1ab96..427861bde09badef1a2950ad799e69fac6b4a48a:/interface/wx/icon.h diff --git a/interface/wx/icon.h b/interface/wx/icon.h index 5743555687..80a40419da 100644 --- a/interface/wx/icon.h +++ b/interface/wx/icon.h @@ -90,24 +90,17 @@ public: @param bits Specifies an array of pixel values. @param width - Specifies the width of the bitmap. + The width of the image. @param height - Specifies the height of the bitmap. - @param depth - Specifies the depth of the bitmap. - If this is omitted, then a value of 1 (monochrome bitmap) is used. - */ - wxIcon(const char bits[], int width, int height, int depth = 1); + The height of the image. + @beginWxPerlOnly + In wxPerl use Wx::Icon->newBits(bits, width, height, depth = -1); + @endWxPerlOnly - /** - Creates a new icon. A depth of ::wxICON_SCREEN_DEPTH indicates the - depth of the current screen or visual. - - Some platforms only support 1 for monochrome and ::wxICON_SCREEN_DEPTH for - the current colour setting. + @onlyfor{wxmsw,wxosx} */ - wxIcon(int width, int height, int depth = wxICON_SCREEN_DEPTH); + wxIcon(const char bits[], int width, int height); /** Creates a bitmap from XPM data. @@ -136,6 +129,10 @@ public: wxIcon icon("mondrian"); #endif @endcode + + @beginWxPerlOnly + In wxPerl use Wx::Icon->newFromXPM(data). + @endWxPerlOnly */ wxIcon(const char* const* bits); @@ -180,7 +177,13 @@ public: @warning Do not delete an icon that is selected into a memory device context. */ - ~wxIcon(); + virtual ~wxIcon(); + + /** + Returns disabled (dimmed) version of the icon. MSW only. + @since 2.9.0 + */ + wxIcon ConvertToDisabled(unsigned char brightness = 255) const; /** Copies @a bmp bitmap to this icon. @@ -213,7 +216,7 @@ public: /** Returns @true if icon data is present. */ - bool IsOk() const; + virtual bool IsOk() const; /** Loads an icon from a file or resource. @@ -271,7 +274,7 @@ public: @param icon Icon to assign. */ - wxIcon operator =(const wxIcon& icon); + wxIcon& operator=(const wxIcon& icon); }; /**