]>
git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia2/lib/vidxanm.h
648e8816db8878fbbac33abab7b3d942d6de6189
1 // /////////////////////////////////////////////////////////////////////////////
4 // Author: Guilhem Lavaux
7 // Copyright: (C) 1997, 1998, Guilhem Lavaux
8 // License: wxWindows license
9 // /////////////////////////////////////////////////////////////////////////////
10 /* Real -*- C++ -*- */
11 #ifndef __VID_xanim_H__
12 #define __VID_xanim_H__
15 #pragma interface "vidxanm.h"
18 // ----------------------------------------------------------------------------
20 // ----------------------------------------------------------------------------
21 // For compilers that support precompilation, includes "wx/wx.h".
22 #include "wx/wxprec.h"
28 // for all others, include the necessary headers (this file is usually all you
29 // need because it includes almost all "standard" wxWindows headers
32 #include "wx/string.h"
33 #include "wx/process.h"
36 // ----------------------------------------------------------------------------
37 // System dependent headers
39 #if defined(WXMMEDIA_INTERNAL) && (defined(__X__) || defined(__WXGTK__))
41 #include <X11/Xatom.h>
44 // ----------------------------------------------------------------------------
49 // ----------------------------------------------------------------------------
52 #ifdef WXMMEDIA_INTERNAL
53 typedef struct wxXANIMinternal
{
56 Atom xanim_atom
, xanim_ret
;
59 #ifndef __XANIM_COMMAND__
60 #define __XANIM_COMMAND__ "/usr/X11R6/bin/xanim"
65 // ----------------------------------------------------------------------------
68 class WXDLLEXPORT wxVideoXANIM
: public wxVideoBaseDriver
{
69 DECLARE_DYNAMIC_CLASS(wxVideoXANIM
)
71 // Remember the state of the subprocess
72 bool m_xanim_started
, m_paused
;
74 struct wxXANIMinternal
*m_internal
;
76 wxProcess
*m_xanim_detector
;
77 // Remember to delete the temporary file when necessary
81 wxVideoXANIM(wxInputStream
& str
);
82 wxVideoXANIM(const wxString
& filename
);
90 bool SetVolume(wxUint8 vol
);
91 bool Resize(wxUint16 w
, wxUint16 h
);
92 bool GetSize(wxSize
& size
) const;
94 bool IsCapable(wxVideoType v_type
);
96 bool AttachOutput(wxWindow
& output
);
102 friend class wxVideoXANIMProcess
;
105 // Start the subprocess with the right parameters
107 // Send a command to the subprocess
108 bool SendCommand(const char *command
,char **ret
= NULL
,
109 wxUint32
*size
= NULL
);