Main Page | Namespace List | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

gdi.h

Go to the documentation of this file.
00001 
00002 // Name:        wx/wxGdi.h
00003 // Purpose:     wxGdi class
00004 // Author:      Mark McCormack
00005 // Modified by:
00006 // Created:     04/03/04
00007 // RCS-ID:      $Id: gdi.h,v 1.8 2005/05/12 14:02:29 frm Exp $
00008 // Copyright:   (c) 2004 Mark McCormack
00009 // Licence:     wxWindows licence
00011 
00012 #ifndef _WX_WXGDI_BASE_H_
00013 #define _WX_WXGDI_BASE_H_
00014 
00015 // ----------------------------------------------------------------------------
00016 // headers
00017 // ----------------------------------------------------------------------------
00018 
00019 #include <wx/window.h>
00020 
00021 #ifndef wxFULL_REPAINT_ON_RESIZE
00022 #define wxFULL_REPAINT_ON_RESIZE 0  // XXX: just for < wx2.5.1 compatibility
00023 #endif
00024 
00025 // ----------------------------------------------------------------------------
00026 // wxGdiBase
00027 // ----------------------------------------------------------------------------
00028 
00029 class wxGdiBase {
00030 public:
00031     enum eGripperStyle {
00032         wxGRIP_STYLE_MOVE,
00033         wxGRIP_STYLE_FLOAT,
00034         wxGRIP_STYLE_HEADER
00035     };
00036 
00037     // drawing
00038     virtual void DrawGripper( wxDC &dc, wxRect r, wxOrientation orientation, 
00039   eGripperStyle style, const wxString &label = wxT("") ) = 0;
00040     virtual void DrawFrame( wxDC &dc, wxRect r, bool fDocked ) = 0;
00041     virtual void DrawPattern( wxDC &dc, wxRect r ) = 0;
00042     virtual void DrawSplitter( wxDC &dc, wxRect r, wxOrientation orientation ) = 0;
00043     virtual void DrawClose( wxDC &dc, wxRect r, wxPen &pen, int size );
00044     virtual void DrawEmptyWorkspace( wxDC &dc, wxRect r, bool edge ) = 0;
00045     virtual void DrawHeader( wxDC &dc, wxRect r, wxOrientation orientation, 
00046   const wxString &label, const wxFont &font ) = 0;
00047     virtual void DrawBackground( wxDC &dc, wxRect &r );
00048     virtual void DrawEdge( wxDC &dc, wxRect r, bool invert = false );
00049     virtual void DrawLabel( wxDC &dc, wxRect r, wxOrientation orientation, 
00050   const wxString &label, const wxFont &font );
00051     
00052     // cursors
00053     virtual wxCursor GetMoveCursor() = 0;
00054     virtual wxCursor GetHSplitCursor() = 0;
00055     virtual wxCursor GetVSplitCursor() = 0;
00056 };
00057 
00058 // ----------------------------------------------------------------------------
00059 // include the platform-specific class declaration
00060 // ----------------------------------------------------------------------------
00061 
00062 #if defined(__WXMSW__)
00063     #include "wx/msw/gdi.h"
00064 #elif defined(__WXGTK__)
00065  #include "wx/gtk/gdi.h"
00066 #else
00067     #error "Your platform does not currently support wxGdi"
00068 #endif
00069 
00070 // ----------------------------------------------------------------------------
00071 // define wxUSE_WX24 when compiling with wxWidgets 2.4.x, otherwise default to wxWidgets 2.5.x
00072 // ----------------------------------------------------------------------------
00073 
00074 //#define wxUSE_WX24
00075 
00076 #endif
00077     // _WX_WXGDI_BASE_H_

Generated on Sat May 14 14:54:39 2005 for wxDockIt by  doxygen 1.4.2