]> git.saurik.com Git - wxWidgets.git/blame - utils/wxMMedia2/lib/vidxanm.h
some changes to make wxHtmlHelpController easier to subclass
[wxWidgets.git] / utils / wxMMedia2 / lib / vidxanm.h
CommitLineData
4d6306eb
GL
1// /////////////////////////////////////////////////////////////////////////////
2// Name: vidxanm.h
3// Purpose: wxMMedia
4// Author: Guilhem Lavaux
5// Created: 1997
6// Updated: 1998
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__
13
14#ifdef __GNUG__
15#pragma interface
16#endif
17
18#if defined(WXMMEDIA_INTERNAL) && (defined(__X__) || defined(__WXGTK__))
19#include <X11/Xlib.h>
20#include <X11/Xatom.h>
21#endif
22
23#include "vidbase.h"
24
25#ifdef WXMMEDIA_INTERNAL
26typedef struct wxXANIMinternal {
27 Display *xanim_dpy;
28 Window xanim_window;
29 Atom xanim_atom, xanim_ret;
30} wxXANIMinternal;
31
32#ifndef __XANIM_COMMAND__
33#define __XANIM_COMMAND__ "/usr/X11R6/bin/xanim"
34#endif
35#endif
36
37class wxVideoXANIM : public wxVideoBaseDriver {
38 DECLARE_DYNAMIC_CLASS(wxVideoXANIM)
39protected:
526ddb13
GL
40 bool m_xanim_started, m_paused;
41 struct wxXANIMinternal *m_internal;
42 wxString m_filename;
4d6306eb
GL
43public:
44 wxVideoXANIM();
45 wxVideoXANIM(wxInputStream& str);
526ddb13 46 ~wxVideoXANIM();
4d6306eb 47
b83290c3 48 bool Play();
526ddb13
GL
49 bool Pause();
50 bool Resume();
b83290c3 51 bool Stop();
4d6306eb 52
526ddb13
GL
53 bool SetVolume(wxUint8 vol);
54 bool Resize(wxUint16 w, wxUint16 h);
b83290c3 55 bool GetSize(wxSize& size) const;
4d6306eb 56
526ddb13 57 bool IsCapable(wxVideoType v_type);
4d6306eb 58
526ddb13
GL
59 bool AttachOutput(wxVideoOutput& output);
60 void DetachOutput();
4d6306eb
GL
61
62protected:
63 ///
64 bool RestartXANIM();
65 ///
66 bool SendCommand(const char *command, char **ret = NULL,
67 wxUint32 *size = NULL);
68};
69
70#endif