00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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