1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: statbmp.h
|
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-29 18:03:18 +00:00
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
1998-05-20 14:01:55 +00:00
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __GTKSTATICBITMAPH__
|
|
|
|
#define __GTKSTATICBITMAPH__
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/defs.h"
|
|
|
|
#include "wx/object.h"
|
|
|
|
#include "wx/control.h"
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// classes
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxStaticBitmap;
|
|
|
|
|
1998-05-28 22:05:55 +00:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// global data
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
extern const char* wxStaticBitmapNameStr;
|
|
|
|
|
1998-05-20 14:01:55 +00:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxStaticBitmap
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
1998-05-28 22:05:55 +00:00
|
|
|
class wxStaticBitmap: public wxControl
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
wxStaticBitmap(void);
|
1998-07-04 15:17:59 +00:00
|
|
|
wxStaticBitmap( wxWindow *parent, wxWindowID id, const wxBitmap& label,
|
1998-05-28 22:05:55 +00:00
|
|
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
1998-07-04 15:17:59 +00:00
|
|
|
long style = 0, const wxString& name = wxStaticBitmapNameStr );
|
|
|
|
bool Create( wxWindow *parent, wxWindowID id, const wxBitmap& label,
|
1998-05-28 22:05:55 +00:00
|
|
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
1998-07-04 15:17:59 +00:00
|
|
|
long style = 0, const wxString& name = wxStaticBitmapNameStr);
|
1998-05-28 22:05:55 +00:00
|
|
|
virtual void SetBitmap( const wxBitmap& bitmap );
|
|
|
|
wxBitmap& GetBitmap(void) const { return (wxBitmap&)m_bitmap; }
|
1998-10-29 18:03:18 +00:00
|
|
|
|
1998-05-28 22:05:55 +00:00
|
|
|
private:
|
|
|
|
|
|
|
|
wxBitmap m_bitmap;
|
|
|
|
};
|
|
|
|
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif // __GTKSTATICBITMAPH__
|