2000-03-03 06:25:10 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: bmpshape.h
|
|
|
|
// Purpose: wxBitmapShape
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 12/07/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
2004-06-09 12:42:34 -04:00
|
|
|
// Licence: wxWindows licence
|
2000-03-03 06:25:10 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _OGL_BITMAP_H_
|
|
|
|
#define _OGL_BITMAP_H_
|
|
|
|
|
|
|
|
|
2003-07-25 17:20:57 -04:00
|
|
|
class WXDLLIMPEXP_OGL wxBitmapShape: public wxRectangleShape
|
2000-03-03 06:25:10 -05:00
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxBitmapShape)
|
|
|
|
public:
|
|
|
|
wxBitmapShape();
|
|
|
|
~wxBitmapShape();
|
|
|
|
|
|
|
|
void OnDraw(wxDC& dc);
|
|
|
|
|
2002-12-04 09:11:26 -05:00
|
|
|
#if wxUSE_PROLOGIO
|
2000-03-03 06:25:10 -05:00
|
|
|
// I/O
|
|
|
|
void WriteAttributes(wxExpr *clause);
|
|
|
|
void ReadAttributes(wxExpr *clause);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Does the copying for this object
|
|
|
|
void Copy(wxShape& copy);
|
|
|
|
|
2004-06-09 12:42:34 -04:00
|
|
|
void SetSize(double w, double h, bool recursive = true);
|
2000-03-03 06:25:10 -05:00
|
|
|
inline wxBitmap& GetBitmap() const { return (wxBitmap&) m_bitmap; }
|
|
|
|
void SetBitmap(const wxBitmap& bm);
|
|
|
|
inline void SetFilename(const wxString& f) { m_filename = f; };
|
|
|
|
inline wxString GetFilename() const { return m_filename; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
wxBitmap m_bitmap;
|
|
|
|
wxString m_filename;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _OGL_BITMAP_H_
|
|
|
|
|
|
|
|
|