]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/moviectrl.h
6102095df572272ff64208456d8ffcf0fe86d203
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/moviectrl.h
3 // Purpose: DirectX7+ wxMovieCtrl MSW
4 // Author: Ryan Norton <wxprojects@comcast.net>
8 // Copyright: (c) Ryan Norton
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #include "wx/datetime.h"
17 #include "wx/control.h"
26 class wxMovieCtrl
: public wxControl
32 wxMovieCtrl(wxWindow
* parent
, wxWindowID id
, const wxString
& fileName
, const wxString
& label
= wxT(""),
33 const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
,
34 long style
= 0, const wxString
& name
= wxPanelNameStr
)
35 { Create(parent
, id
, fileName
, label
, pos
, size
, style
, name
); }
39 bool Create(wxWindow
* parent
, wxWindowID id
, const wxString
& fileName
, const wxString
& label
= wxT(""),
40 const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
,
41 long style
= 0, const wxString
& name
= wxPanelNameStr
);
47 wxMovieCtrlState
GetState();
49 double GetPlaybackRate();
50 bool SetPlaybackRate(double dRate
);
53 bool Seek(const wxTimeSpan
& where
);
59 void OnSize(wxSizeEvent
& evt
);
60 wxSize
DoGetBestSize() const;
63 struct MovieRecord
* m_movie
;
65 class _wxQTTimer
* m_timer
;
67 friend class _wxQTTimer
;
69 DECLARE_DYNAMIC_CLASS(wxMovieCtrl
);
73 class WXDLLEXPORT wxMovieEvent
: public wxNotifyEvent
76 wxMovieEvent(wxEventType commandType
= wxEVT_NULL
, int id
= 0)
77 : wxNotifyEvent(commandType
, id
)
80 wxMovieEvent(const wxMovieEvent
&clone
)
81 : wxNotifyEvent(clone
.GetEventType(), clone
.GetId())
84 wxEvent
*Clone() { return new wxMovieEvent(*this); }
86 DECLARE_DYNAMIC_CLASS(wxMovieEvent
)
89 #define wxMOVIE_FINISHED_ID 13000
90 DECLARE_EVENT_TYPE(wxEVT_MOVIE_FINISHED
, wxMOVIE_FINISHED_ID
)
91 typedef void (wxEvtHandler::*wxMovieEventFunction
)(wxMovieEvent
&);
92 #define EVT_MOVIE_FINISHED(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MOVIE_FINISHED, winid, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) (wxMovieEventFunction) & fn, (wxObject *) NULL ),
94 #endif // wxUSE_MOVIECTRL