X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/72045d5768a126191a907bc640c28e81a11afdd6..e0a717e94dffd13485e4b84d1c67b86d38e30309:/docs/latex/wx/animatctrl.tex diff --git a/docs/latex/wx/animatctrl.tex b/docs/latex/wx/animatctrl.tex index d66bac7f0c..ba36f1f976 100644 --- a/docs/latex/wx/animatctrl.tex +++ b/docs/latex/wx/animatctrl.tex @@ -34,8 +34,8 @@ It is only available if \texttt{wxUSE\_ANIMATIONCTRL} is set to $1$ (the default \twocolwidtha{5cm}% \begin{twocollist}\itemsep=0pt -\twocolitem{\windowstyle{wxAC\_DEFAULT\_STYLE}}{The default style: wxNO_BORDER.} -\twocolitem{\windowstyle{wxAC\_NO_AUTORESIZE}}{By default, the control will adjust +\twocolitem{\windowstyle{wxAC\_DEFAULT\_STYLE}}{The default style: wxNO\_BORDER.} +\twocolitem{\windowstyle{wxAC\_NO\_AUTORESIZE}}{By default, the control will adjust its size to exactly fit to the size of the animation when \helpref{SetAnimation}{wxanimationctrlsetanimation} is called. If this style flag is given, the control will not change its size} \end{twocollist} @@ -110,6 +110,14 @@ of the animation is displayed. Returns the animation associated with this control. +\membersection{wxAnimationCtrl::GetInactiveBitmap}\label{wxanimationctrlgetinactivebitmap} + +\constfunc{wxBitmap}{GetInactiveBitmap}{\void} + +Returns the inactive bitmap shown in this control when the; +see \helpref{SetInactiveBitmap}{wxanimationctrlsetinactivebitmap} for more info. + + \membersection{wxAnimationCtrl::IsPlaying}\label{wxanimationctrlisplaying} \constfunc{bool}{IsPlaying}{\void} @@ -143,17 +151,31 @@ displayed). Sets the animation to play in this control. If the previous animation is being played, it's \helpref{Stopped}{wxanimationctrlstop}. -Until \helpref{Play}{wxanimationctrlplay} isn't called, the first frame -of the animation is displayed. +Until \helpref{Play}{wxanimationctrlplay} isn't called, a static image, the first +frame of the given animation or the background colour will be shown +(see \helpref{SetInactiveBitmap}{wxanimationctrlsetinactivebitmap} for more info). -If {\tt wxNullAnimation} is given as animation, the control will be cleared to display -the background colour (see \helpref{wxWindow::GetBackgroundColour}{wxwindowgetbackgroundcolour}). +\membersection{wxAnimationCtrl::SetInactiveBitmap}\label{wxanimationctrlsetinactivebitmap} + +\func{void}{SetInactiveBitmap}{\param{const wxBitmap\& }{bmp}} + +Sets the bitmap to show on the control when it's not playing an animation. +If you set as inactive bitmap {\tt wxNullBitmap} (which is the default), then the +first frame of the animation is instead shown when the control is inactive; in this case, +if there's no valid animation associated with the control (see \helpref{SetAnimation}{wxanimationctrlsetanimation}), +then the background colour of the window is shown. + +If the control is not playing the animation, the given bitmap will be immediately +shown, otherwise it will be shown as soon as \helpref{Stop}{wxanimationctrlstop} +is called. \membersection{wxAnimationCtrl::Stop}\label{wxanimationctrlstop} \func{void}{Stop}{\void} Stops playing the animation. -The control will show the last frame rendered of the current animation until -\helpref{Play}{wxanimationctrlplay} is called. +The control will show the first frame of the animation, a custom static image or +the window's background colour as specified by the +last \helpref{SetInactiveBitmap}{wxanimationctrlsetinactivebitmap} call. +