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

📄 macosx_factory.hpp

📁 video linux conference
💻 HPP
字号:
/***************************************************************************** * macosx_factory.hpp ***************************************************************************** * Copyright (C) 2003 VideoLAN * $Id: macosx_factory.hpp 9711 2005-01-09 19:46:39Z asmax $ * * Authors: Cyril Deguet     <asmax@via.ecp.fr> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA. *****************************************************************************/#ifndef MACOSX_FACTORY_HPP#define MACOSX_FACTORY_HPP#include "../src/os_factory.hpp"/// Class used to instanciate MacOSX specific objectsclass MacOSXFactory: public OSFactory{    public:        MacOSXFactory( intf_thread_t *pIntf );        virtual ~MacOSXFactory();        /// Initialization method        virtual bool init();        /// Instantiate an object OSGraphics.        virtual OSGraphics *createOSGraphics( int width, int height );        /// Get the instance of the singleton OSLoop.        virtual OSLoop *getOSLoop();        /// Destroy the instance of OSLoop.        virtual void destroyOSLoop();        /// Instantiate an OSTimer with the given callback        virtual OSTimer *createOSTimer( const Callback &rCallback );        ///        virtual void minimize();        /// Instantiate an OSWindow object        virtual OSWindow *createOSWindow( GenericWindow &rWindow,                                          bool dragDrop, bool playOnDrop,                                          OSWindow *pParent );        /// Instantiate an object OSTooltip.        virtual OSTooltip *createOSTooltip();        /// Get the directory separator        virtual const string &getDirSeparator() const { return m_dirSep; }        /// Get the resource path        virtual const list<string> &getResourcePath() const            { return m_resourcePath; }        /// Get the screen size        virtual int getScreenWidth() const;        virtual int getScreenHeight() const;        /// Get the work area (screen area without taskbars)        virtual Rect getWorkArea() const;        /// Get the position of the mouse        virtual void getMousePos( int &rXPos, int &rYPos ) const;        /// Change the cursor        virtual void changeCursor( CursorType_t type ) const { /*TODO*/ }        /// Delete a directory recursively        virtual void rmDir( const string &rPath );    private:        /// Directory separator        const string m_dirSep;        /// Resource path        list<string> m_resourcePath;};#endif

⌨️ 快捷键说明

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