X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/68cb648117282847685d626d6fab58bf4f3618f3..a124f99a24fb1f2ef41e37223ea35bcc9a4eece9:/docs/latex/wx/statbmp.tex diff --git a/docs/latex/wx/statbmp.tex b/docs/latex/wx/statbmp.tex index 7c24e75214..33afe1c15e 100644 --- a/docs/latex/wx/statbmp.tex +++ b/docs/latex/wx/statbmp.tex @@ -42,7 +42,7 @@ palette problems. Default constructor. \func{}{wxStaticBitmap}{\param{wxWindow* }{parent}, \param{wxWindowID}{ id},\rtfsp -\param{const wxBitmap\& }{label}, \param{const wxPoint\& }{pos}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp +\param{const wxBitmap\& }{label}, \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp \param{long}{ style = 0}, \param{const wxString\& }{name = ``staticBitmap"}} Constructor, creating and showing a text control. @@ -71,7 +71,7 @@ Constructor, creating and showing a text control. \membersection{wxStaticBitmap::Create}\label{wxstaticbitmapcreate} \func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID}{ id},\rtfsp -\param{const wxBitmap\& }{label}, \param{const wxPoint\& }{pos}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp +\param{const wxBitmap\& }{label}, \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp \param{long}{ style = 0}, \param{const wxString\& }{name = ``staticBitmap"}} Creation function, for two-step construction. For details see \helpref{wxStaticBitmap::wxStaticBitmap}{wxstaticbitmapconstr}. @@ -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} +