home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2233.zip / wxOS2-2_3_3.zip / wxWindows-2.3.3 / contrib / include / wx / ogl / bmpshape.h < prev    next >
C/C++ Source or Header  |  2002-09-08  |  1KB  |  54 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name:        bmpshape.h
  3. // Purpose:     wxBitmapShape
  4. // Author:      Julian Smart
  5. // Modified by:
  6. // Created:     12/07/98
  7. // RCS-ID:      $Id: bmpshape.h,v 1.2 2002/09/07 12:10:20 GD Exp $
  8. // Copyright:   (c) Julian Smart
  9. // Licence:       wxWindows licence
  10. /////////////////////////////////////////////////////////////////////////////
  11.  
  12. #ifndef _OGL_BITMAP_H_
  13. #define _OGL_BITMAP_H_
  14.  
  15. #if defined(__GNUG__) && !defined(__APPLE__)
  16. #pragma interface "bmpshape.h"
  17. #endif
  18.  
  19. #include <wx/ogl/basic.h>
  20.  
  21. class wxBitmapShape: public wxRectangleShape
  22. {
  23.  DECLARE_DYNAMIC_CLASS(wxBitmapShape)
  24.  public:
  25.   wxBitmapShape();
  26.   ~wxBitmapShape();
  27.  
  28.   void OnDraw(wxDC& dc);
  29.  
  30. #ifdef PROLOGIO
  31.   // I/O
  32.   void WriteAttributes(wxExpr *clause);
  33.   void ReadAttributes(wxExpr *clause);
  34. #endif
  35.  
  36.   // Does the copying for this object
  37.   void Copy(wxShape& copy);
  38.  
  39.   void SetSize(double w, double h, bool recursive = TRUE);
  40.   inline wxBitmap& GetBitmap() const { return (wxBitmap&) m_bitmap; }
  41.   void SetBitmap(const wxBitmap& bm);
  42.   inline void SetFilename(const wxString& f) { m_filename = f; };
  43.   inline wxString GetFilename() const { return m_filename; }
  44.  
  45. private:
  46.   wxBitmap      m_bitmap;
  47.   wxString      m_filename;
  48. };
  49.  
  50. #endif
  51.   // _OGL_BITMAP_H_
  52.  
  53.  
  54.