From 46867f591c24152d5546cefd31b317f6593e24db Mon Sep 17 00:00:00 2001 From: PB Date: Sat, 17 Apr 2021 10:33:10 +0200 Subject: [PATCH] Mark deprecated methods as such in wxIcon documentation wxIcon::Set{Depth|Height|Width}() are deprecated (in wxGDIImage, see 26ee45e), mark them as such in the documentation (should probably be a part of a5aa044a). Also fix a typo. Closes https://github.com/wxWidgets/wxWidgets/pull/2331 --- interface/wx/icon.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/interface/wx/icon.h b/interface/wx/icon.h index 770120707e..7c41aa63a9 100644 --- a/interface/wx/icon.h +++ b/interface/wx/icon.h @@ -182,7 +182,7 @@ public: Attach a Windows icon handle. This wxMSW-specific method allows assigning a native Windows @c HICON - (which must be castes to @c WXHICON opaque handle type) to wxIcon. + (which must be cast to @c WXHICON opaque handle type) to wxIcon. Notice that this means that the @c HICON will be destroyed by wxIcon when it is destroyed. @@ -267,6 +267,9 @@ public: int desiredWidth = -1, int desiredHeight = -1); /** + @deprecated This function is deprecated since version 3.1.2, dimensions + and depth can only be set at construction time. + Sets the depth member (does not affect the icon data). @param depth @@ -275,6 +278,9 @@ public: void SetDepth(int depth); /** + @deprecated This function is deprecated since version 3.1.2, dimensions + and depth can only be set at construction time. + Sets the height member (does not affect the icon data). @param height @@ -283,6 +289,9 @@ public: void SetHeight(int height); /** + @deprecated This function is deprecated since version 3.1.2, dimensions + and depth can only be set at construction time. + Sets the width member (does not affect the icon data). @param width