]>
git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia/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__
18 #if defined(WXMMEDIA_INTERNAL) && (defined(__X__) || defined(__WXGTK__))
20 #include <X11/Xatom.h>
25 #ifdef WXMMEDIA_INTERNAL
26 typedef struct wxXANIMinternal
{
29 Atom xanim_atom
, xanim_ret
;
32 #ifndef __XANIM_COMMAND__
33 #define __XANIM_COMMAND__ "/usr/X11R6/bin/xanim"
37 class wxVideoXANIM
: public wxVideoBaseDriver
{
38 DECLARE_DYNAMIC_CLASS(wxVideoXANIM
)
40 bool xanim_started
, paused
;
41 struct wxXANIMinternal
*internal
;
44 wxVideoXANIM(wxInputStream
& str
);
45 wxVideoXANIM(const wxString
& fname
);
46 virtual ~wxVideoXANIM();
48 virtual bool StartPlay();
50 virtual bool Resume();
51 virtual void StopPlay();
53 virtual bool SetVolume(wxUint8 vol
);
54 virtual bool Resize(wxUint16 w
, wxUint16 h
);
56 virtual bool IsCapable(wxVideoType v_type
);
58 virtual bool AttachOutput(wxVideoOutput
& output
);
59 virtual void DetachOutput();
65 bool SendCommand(const char *command
, char **ret
= NULL
,
66 wxUint32
*size
= NULL
);