2b5f62a0b2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
54 lines
1.2 KiB
C++
54 lines
1.2 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: bmpshape.h
|
|
// Purpose: wxBitmapShape
|
|
// Author: Julian Smart
|
|
// Modified by:
|
|
// Created: 12/07/98
|
|
// RCS-ID: $Id$
|
|
// Copyright: (c) Julian Smart
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _OGL_BITMAP_H_
|
|
#define _OGL_BITMAP_H_
|
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
|
#pragma interface "bmpshape.h"
|
|
#endif
|
|
|
|
#include <wx/ogl/basic.h>
|
|
|
|
class wxBitmapShape: public wxRectangleShape
|
|
{
|
|
DECLARE_DYNAMIC_CLASS(wxBitmapShape)
|
|
public:
|
|
wxBitmapShape();
|
|
~wxBitmapShape();
|
|
|
|
void OnDraw(wxDC& dc);
|
|
|
|
#if wxUSE_PROLOGIO
|
|
// I/O
|
|
void WriteAttributes(wxExpr *clause);
|
|
void ReadAttributes(wxExpr *clause);
|
|
#endif
|
|
|
|
// Does the copying for this object
|
|
void Copy(wxShape& copy);
|
|
|
|
void SetSize(double w, double h, bool recursive = TRUE);
|
|
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_
|
|
|
|
|