File: animation.tex

package info (click to toggle)
wxwidgets2.8 2.8.10.1-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 239,052 kB
  • ctags: 289,550
  • sloc: cpp: 1,838,857; xml: 396,717; python: 282,506; ansic: 126,171; makefile: 51,406; sh: 14,581; asm: 299; sql: 258; lex: 194; perl: 139; yacc: 128; pascal: 95; php: 39; lisp: 38; tcl: 24; haskell: 20; java: 18; cs: 18; erlang: 17; ruby: 16; ada: 9; ml: 9; csh: 9
file content (157 lines) | stat: -rw-r--r-- 4,139 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Name:        animation.tex
%% Purpose:     wxAnimation documentation
%% Author:      Francesco Montorsi
%% Created:     24-9-2006
%% RCS-ID:      $Id: animation.tex 43898 2006-12-10 14:18:37Z VZ $
%% Copyright:   (c) 2006 Francesco Montorsi
%% License:     wxWindows license
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{\class{wxAnimation}}\label{wxanimation}

This class encapsulates the concept of a platform-dependent animation.
An animation is a sequence of frames of the same size.
Sound is not supported by wxAnimation.

\wxheading{Derived from}

\helpref{wxGDIObject}{wxgdiobject}\\
\helpref{wxObject}{wxobject}

\wxheading{Include files}

<wx/animate.h>

\wxheading{Predefined objects}

Objects:

{\bf wxNullAnimation}

\wxheading{See also}

\helpref{wxAnimationCtrl}{wxanimationctrl}

\latexignore{\rtfignore{\wxheading{Members}}}


\membersection{wxAnimation::wxAnimation}\label{wxanimationctor}

\func{}{wxAnimation}{\void}

Default constructor.

\func{}{wxAnimation}{\param{const wxAnimation\& }{anim}}

Copy constructor, uses \helpref{reference counting}{trefcount}.

\func{}{wxAnimation}{\param{const wxString\& }{name}, \param{wxAnimationType}{ type = wxANIMATION\_TYPE\_ANY}}

Loads an animation from a file.

\docparam{name}{The name of the file to load.}

\docparam{type}{See \helpref{LoadFile}{wxanimationloadfile} for more info.}


\membersection{wxAnimation::\destruct{wxAnimation}}\label{wxanimationdtor}

\func{}{\destruct{wxAnimation}}{\void}

Destructor.
See \helpref{reference-counted object destruction}{refcountdestruct} for more info.


\membersection{wxAnimation::GetDelay}\label{wxanimationgetdelay}

\constfunc{int}{GetDelay}{\param{unsigned int }{i}}

Returns the delay for the i-th frame in milliseconds.
If {\tt -1} is returned the frame is to be displayed forever.


\membersection{wxAnimation::GetFrameCount}\label{wxanimationgetframecount}

\constfunc{unsigned int}{GetFrameCount}{\void}

Returns the number of frames for this animation.


\membersection{wxAnimation::GetFrame}\label{wxanimationgetframe}

\constfunc{wxImage}{GetFrame}{\param{unsigned int }{i}}

Returns the i-th frame as a \helpref{wxImage}{wximage}.


\membersection{wxAnimation::GetSize}\label{wxanimationgetsize}

\constfunc{wxSize}{GetSize}{\void}

Returns the size of the animation.


\membersection{wxAnimation::IsOk}\label{wxanimationisok}

\constfunc{bool}{IsOk}{\void}

Returns \true if animation data is present.


\membersection{wxAnimation::Load}\label{wxanimationload}

\func{bool}{Load}{\param{wxInputStream\&}{ stream}, \param{wxAnimationType}{ type = wxANIMATION\_TYPE\_ANY}}

Loads an animation from the given stream.

\wxheading{Parameters}

\docparam{stream}{The stream to use to load the animation.}

\docparam{type}{One of the following values:

\twocolwidtha{5cm}
\begin{twocollist}
\twocolitem{\indexit{wxANIMATION\_TYPE\_GIF}}{Load an animated GIF file.}
\twocolitem{\indexit{wxANIMATION\_TYPE\_ANI}}{Load an ANI file.}
\twocolitem{\indexit{wxANIMATION\_TYPE\_ANY}}{Try to autodetect the filetype.}
\end{twocollist}
}

\wxheading{Return value}

\true if the operation succeeded, \false otherwise.


\membersection{wxAnimation::LoadFile}\label{wxanimationloadfile}

\func{bool}{LoadFile}{\param{const wxString\&}{ name}, \param{wxAnimationType}{ type = wxANIMATION\_TYPE\_ANY}}

Loads an animation from a file.

\wxheading{Parameters}

\docparam{name}{A filename.}

\docparam{type}{One of the following values:

\twocolwidtha{5cm}
\begin{twocollist}
\twocolitem{\indexit{wxANIMATION\_TYPE\_GIF}}{Load an animated GIF file.}
\twocolitem{\indexit{wxANIMATION\_TYPE\_ANI}}{Load an ANI file.}
\twocolitem{\indexit{wxANIMATION\_TYPE\_ANY}}{Try to autodetect the filetype.}
\end{twocollist}
}

\wxheading{Return value}

\true if the operation succeeded, \false otherwise.


\membersection{wxAnimation::operator $=$}\label{wxanimationassignment}

\func{wxAnimation\&}{operator $=$}{\param{const wxAnimation\& }{brush}}

Assignment operator, using \helpref{reference counting}{trefcount}.