1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %% Purpose: wxMovieCtrl docs
4 %% Author: Ryan Norton <wxprojects@comcast.net>
8 %% Copyright: (c) Ryan Norton
9 %% License: wxWindows license
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12 \section{\class{wxMovieCtrl
}}\label{wxmoviectrl
}
16 Plays movies - Currently Windows and Mac only.
19 \wxheading{Derived from
}
21 \helpref{wxControl
}{wxcontrol
}
23 \wxheading{Include files
}
27 \latexignore{\rtfignore{\wxheading{Members
}}}
30 \membersection{wxMovieCtrl::wxMovieCtrl
}\label{wxmoviectrlwxmoviectrl
}
32 \func{}{wxMovieCtrl
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxString\&
}{fileName
},
\param{const wxString\&
}{label = wxT("")
},
\param{const wxPoint\&
}{pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\param{long
}{style =
0},
\param{const wxString\&
}{name = wxPanelNameStr
}}
35 \func{}{wxMovieCtrl
}{\void}
39 \docparam{parent
}{parent of this control. Must not be NULL.
}
40 \docparam{id
}{id to use for events
}
41 \docparam{fileName
}{File the movie is located at.
}
42 \docparam{label
}{Control label - possible caption for the movie.
}
43 \docparam{pos
}{Position to put control at.
}
44 \docparam{size
}{Size to put the control at and to stretch movie to.
}
45 \docparam{style
}{Optional styles.
}
46 \docparam{name
}{Window name.
}
49 \membersection{wxMovieCtrl::Create
}\label{wxmoviectrlcreate
}
51 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxString\&
}{fileName
},
\param{const wxString\&
}{label = wxT("")
},
\param{const wxPoint\&
}{pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\param{long
}{style =
0},
\param{const wxString\&
}{name = wxPanelNameStr
}}
53 Creates this control. Returns
\tt{false
} if it can't load the movie located at
\tt{fileName
}
56 \docparam{parent
}{parent of this control. Must not be NULL.
}
57 \docparam{id
}{id to use for events
}
58 \docparam{fileName
}{File the movie is located at.
}
59 \docparam{label
}{Control label - possible caption for the movie.
}
60 \docparam{pos
}{Position to put control at.
}
61 \docparam{size
}{Size to put the control at and to stretch movie to.
}
62 \docparam{style
}{Optional styles.
}
63 \docparam{name
}{Window name.
}
66 \membersection{wxMovieCtrl::GetPlaybackRate
}\label{wxmoviectrlgetplaybackrate
}
68 \func{double
}{GetPlaybackRate
}{\void}
70 Obtains the current playback speed of the movie.
1.0 equals normal speed,
0.5 half, etc.
73 \membersection{wxMovieCtrl::GetState
}\label{wxmoviectrlgetstate
}
75 \func{wxMovieCtrlState
}{GetState
}{\void}
77 Obtains the state the playback of the movie is in -
80 \begin{twocollist
}\itemsep=
0pt
81 \twocolitem{{\bf wxMOVIECTRL
\_STOPPED}}{The movie has stopped.
}
82 \twocolitem{{\bf wxMOVIECTRL
\_PAUSED}}{The movie is paused.
}
83 \twocolitem{{\bf wxMOVIECTRL
\_PLAYING}}{The movie is currently playing.
}
87 \membersection{wxMovieCtrl::Length
}\label{wxmoviectrllength
}
89 \func{wxTimeSpan
}{Length
}{\void}
91 Obtains the length - the total amount of time the movie has
94 \membersection{wxMovieCtrl::Pause
}\label{wxmoviectrlpause
}
96 \func{bool
}{Pause
}{\void}
98 Pauses playback of the movie.
101 \membersection{wxMovieCtrl::Play
}\label{wxmoviectrlplay
}
103 \func{bool
}{Play
}{\void}
105 Resumes playback of the movie.
108 \membersection{wxMovieCtrl::Seek
}\label{wxmoviectrlseek
}
110 \func{bool
}{Seek
}{\param{const wxTimeSpan\&
}{where
}}
112 Seeks to a position within the movie.
115 \membersection{wxMovieCtrl::SetPlaybackRate
}\label{wxmoviectrlsetplaybackrate
}
117 \func{bool
}{SetPlaybackRate
}{\param{double
}{dRate
}}
119 Sets the current playback speed of the movie.
1.0 equals normal speed,
0.5 half, etc.
122 \membersection{wxMovieCtrl::Stop
}\label{wxmoviectrlstop
}
124 \func{bool
}{Stop
}{\void}
126 Stops the movie and rewinds the movie to the start.
129 \membersection{wxMovieCtrl::Tell
}\label{wxmoviectrltell
}
131 \func{wxTimeSpan
}{Tell
}{\void}
133 Obtains the current position in time within the movie.