documented Set/GetIcon(), added (not quite pure) virtual GetIcon() in the base class

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-12-19 13:56:23 +00:00
parent 333c869716
commit a44fb285c5
3 changed files with 41 additions and 11 deletions

View File

@@ -79,15 +79,30 @@ Creation function, for two-step construction. For details see \helpref{wxStaticB
\membersection{wxStaticBitmap::GetBitmap}\label{wxstaticbitmapgetbitmap}
\constfunc{wxBitmap\&}{GetBitmap}{\void}
\constfunc{wxBitmap}{GetBitmap}{\void}
Returns a reference to the label bitmap.
Returns the bitmap currently used in the control. Notice that this method can
be called even if \helpref{SetIcon}{wxstaticbitmapseticon} had been used.
\wxheading{See also}
\helpref{wxStaticBitmap::SetBitmap}{wxstaticbitmapsetbitmap}
\membersection{wxStaticIcon::GetIcon}\label{wxstaticbitmapgeticon}
\constfunc{wxIcon}{GetIcon}{\void}
Returns the icon currently used in the control. Notice that this method can
only be called if \helpref{SetIcon}{wxstaticbitmapseticon} had been used: an icon
can't be retrieved from the control if a bitmap had been set (using
\helpref{SetBitmap}{wxstaticbitmapsetbitmap}).
\wxheading{See also}
\helpref{wxStaticIcon::SetIcon}{wxstaticbitmapseticon}
\membersection{wxStaticBitmap::SetBitmap}\label{wxstaticbitmapsetbitmap}
\func{virtual void}{SetBitmap}{\param{const wxBitmap\& }{ label}}
@@ -102,3 +117,18 @@ Sets the bitmap label.
\helpref{wxStaticBitmap::GetBitmap}{wxstaticbitmapgetbitmap}
\membersection{wxStaticIcon::SetIcon}\label{wxstaticbitmapseticon}
\func{virtual void}{SetIcon}{\param{const wxIcon\& }{ label}}
Sets the label to the given icon.
\wxheading{Parameters}
\docparam{label}{The new icon.}
\wxheading{See also}
\helpref{wxStaticIcon::GetIcon}{wxstaticbitmapgeticon}