Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

macosx_graphics.hpp

00001 /*****************************************************************************
00002  * macosx_graphics.hpp
00003  *****************************************************************************
00004  * Copyright (C) 2003 the VideoLAN team
00005  * $Id: macosx_graphics.hpp 11664 2005-07-09 06:17:09Z courmisch $
00006  *
00007  * Authors: Cyril Deguet     <[email protected]>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
00022  *****************************************************************************/
00023 
00024 #ifndef MACOSX_GRAPHICS_HPP
00025 #define MACOSX_GRAPHICS_HPP
00026 
00027 #include "../src/os_graphics.hpp"
00028 
00029 class GenericWindow;
00030 class GenericBitmap;
00031 
00033 class MacOSXGraphics: public OSGraphics
00034 {
00035     public:
00036         MacOSXGraphics( intf_thread_t *pIntf, int width, int height);
00037 
00038         virtual ~MacOSXGraphics();
00039 
00041         virtual void clear();
00042 
00044         virtual void drawGraphics( const OSGraphics &rGraphics, int xSrc = 0,
00045                                    int ySrc = 0, int xDest = 0, int yDest = 0,
00046                                    int width = -1, int height = -1 );
00047 
00049         virtual void drawBitmap( const GenericBitmap &rBitmap, int xSrc = 0,
00050                                  int ySrc = 0, int xDest = 0, int yDest = 0,
00051                                  int width = -1, int height = -1 );
00052 
00054         virtual void fillRect( int left, int top, int width, int height,
00055                                uint32_t color );
00056 
00058         virtual void drawRect( int left, int top, int width, int height,
00059                                uint32_t color );
00060 
00062         virtual void applyMaskToWindow( OSWindow &rWindow );
00063 
00065         virtual void copyToWindow( OSWindow &rWindow, int xSrc,
00066                                    int ySrc, int width, int height,
00067                                    int xDest, int yDest );
00068 
00070         virtual bool hit( int x, int y ) const;
00071 
00073         virtual int getWidth() const { return m_width; }
00074         virtual int getHeight() const { return m_height; }
00075 
00076     private:
00078         int m_width, m_height;
00079 };
00080 
00081 
00082 #endif

Generated on Tue Dec 20 10:14:42 2005 for vlc-0.8.4a by  doxygen 1.4.2