X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a44f3b5a890fbb2a88ef9adafd94f662e1664889..427861bde09badef1a2950ad799e69fac6b4a48a:/interface/wx/icon.h diff --git a/interface/wx/icon.h b/interface/wx/icon.h index bab04d6e6d..80a40419da 100644 --- a/interface/wx/icon.h +++ b/interface/wx/icon.h @@ -94,7 +94,11 @@ public: @param height The height of the image. - @onlyfor{wxmsw,wxmac} + @beginWxPerlOnly + In wxPerl use Wx::Icon->newBits(bits, width, height, depth = -1); + @endWxPerlOnly + + @onlyfor{wxmsw,wxosx} */ wxIcon(const char bits[], int width, int height); @@ -125,6 +129,10 @@ public: wxIcon icon("mondrian"); #endif @endcode + + @beginWxPerlOnly + In wxPerl use Wx::Icon->newFromXPM(data). + @endWxPerlOnly */ wxIcon(const char* const* bits); @@ -171,6 +179,12 @@ public: */ 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. Under MS Windows the bitmap must have mask colour set.