⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mmbman.h

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 H
字号:
/////////////////////////////////////////////////////////////////////////////// Name:        mmbman.h// Purpose:     Multimedia Board manager// Author:      Guilhem Lavaux, <guilhem.lavaux@libertysurf.fr>// Modified by:// Created:     13/02/2000// RCS-ID:      $Id: mmbman.h,v 1.4 2005/09/23 12:47:27 MR Exp $// Copyright:   (c) 2000, Guilhem Lavaux// Licence:     wxWindows licence/////////////////////////////////////////////////////////////////////////////#ifndef _MMBMAN_APP_H_#define _MMBMAN_APP_H_#include "wx/stream.h"#include "wx/mmedia/sndbase.h"// -------------------------------------------------------------------------// Base structure definitions// -------------------------------------------------------------------------typedef struct {  wxUint8 seconds, minutes, hours;} MMBoardTime;// -------------------------------------------------------------------------// Constants// -------------------------------------------------------------------------#define MMBoard_NoError 0#define MMBoard_UnknownFile 1// -------------------------------------------------------------------------// Interface definition: MMBoardFile// -------------------------------------------------------------------------class MMBoardFile { public:  MMBoardFile();  virtual ~MMBoardFile();  virtual bool NeedWindow() = 0;  virtual void SetWindow(wxWindow *window) = 0;  virtual void Play() = 0;  virtual void Pause() = 0;  virtual void Resume() = 0;  virtual void Stop() = 0;  virtual MMBoardTime GetPosition() = 0;  virtual MMBoardTime GetLength() = 0;  virtual void SetPosition(MMBoardTime btime) = 0;  virtual bool IsStopped() = 0;  virtual bool IsPaused() = 0;  virtual wxString GetStringType() = 0;  virtual wxString GetStringInformation() = 0;  void SetError(wxUint8 error) { m_error = error; }  wxUint8 GetError() const { return m_error; } protected:  wxUint8 m_error;};// -------------------------------------------------------------------------// Main manager// -------------------------------------------------------------------------class MMBoardManager { public:  static MMBoardFile *Open(const wxString& filename);  static wxSoundStream *OpenSoundStream();  static void UnrefSoundStream(wxSoundStream *stream);};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -