]>
git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia2/lib/vidxanm.h
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"
19 #include "wx/string.h"
20 #include "wx/process.h"
22 #if defined(WXMMEDIA_INTERNAL) && (defined(__X__) || defined(__WXGTK__))
24 #include <X11/Xatom.h>
29 #ifdef WXMMEDIA_INTERNAL
30 typedef struct wxXANIMinternal
{
33 Atom xanim_atom
, xanim_ret
;
36 #ifndef __XANIM_COMMAND__
37 #define __XANIM_COMMAND__ "/usr/X11R6/bin/xanim"
41 class wxVideoXANIM
: public wxVideoBaseDriver
{
42 DECLARE_DYNAMIC_CLASS(wxVideoXANIM
)
44 bool m_xanim_started
, m_paused
;
45 struct wxXANIMinternal
*m_internal
;
47 wxProcess
*m_xanim_detector
;
50 wxVideoXANIM(wxInputStream
& str
);
58 bool SetVolume(wxUint8 vol
);
59 bool Resize(wxUint16 w
, wxUint16 h
);
60 bool GetSize(wxSize
& size
) const;
62 bool IsCapable(wxVideoType v_type
);
64 bool AttachOutput(wxWindow
& output
);
70 friend class wxVideoXANIMProcess
;
76 bool SendCommand(const char *command
, char **ret
= NULL
,
77 wxUint32
*size
= NULL
);