2001-06-26 20:59:19 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/statbmp.h
|
|
|
|
// Purpose: wxStaticBitmap class interface
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Modified by:
|
|
|
|
// Created: 25.08.00
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 2000 Vadim Zeitlin
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-15 00:23:28 +00:00
|
|
|
#ifndef _WX_STATBMP_H_BASE_
|
|
|
|
#define _WX_STATBMP_H_BASE_
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "statbmpbase.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if wxUSE_STATBMP
|
|
|
|
|
|
|
|
#include "wx/control.h"
|
|
|
|
#include "wx/bitmap.h"
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxIcon;
|
|
|
|
class WXDLLEXPORT wxBitmap;
|
|
|
|
|
|
|
|
WXDLLEXPORT_DATA(extern const wxChar*) wxStaticBitmapNameStr;
|
|
|
|
|
|
|
|
// a control showing an icon or a bitmap
|
|
|
|
class WXDLLEXPORT wxStaticBitmapBase : public wxControl
|
|
|
|
{
|
2001-06-30 10:14:48 +00:00
|
|
|
public:
|
2001-07-15 18:47:13 +00:00
|
|
|
#ifdef __DARWIN__
|
2001-06-30 10:14:48 +00:00
|
|
|
~wxStaticBitmapBase() { }
|
|
|
|
#endif
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
// our interface
|
|
|
|
virtual void SetIcon(const wxIcon& icon) = 0;
|
|
|
|
virtual void SetBitmap(const wxBitmap& bitmap) = 0;
|
|
|
|
virtual wxBitmap GetBitmap() const = 0;
|
|
|
|
|
|
|
|
// overriden base class virtuals
|
|
|
|
virtual bool AcceptsFocus() const { return FALSE; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual wxSize DoGetBestClientSize() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
#if defined(__WXUNIVERSAL__)
|
|
|
|
#include "wx/univ/statbmp.h"
|
|
|
|
#elif defined(__WXMSW__)
|
|
|
|
#include "wx/msw/statbmp.h"
|
1998-07-10 14:15:17 +00:00
|
|
|
#elif defined(__WXMOTIF__)
|
2001-06-26 20:59:19 +00:00
|
|
|
#include "wx/motif/statbmp.h"
|
1998-07-10 14:15:17 +00:00
|
|
|
#elif defined(__WXGTK__)
|
2001-06-26 20:59:19 +00:00
|
|
|
#include "wx/gtk/statbmp.h"
|
1998-08-15 00:23:28 +00:00
|
|
|
#elif defined(__WXMAC__)
|
2001-06-26 20:59:19 +00:00
|
|
|
#include "wx/mac/statbmp.h"
|
1999-07-28 03:38:12 +00:00
|
|
|
#elif defined(__WXPM__)
|
2001-06-26 20:59:19 +00:00
|
|
|
#include "wx/os2/statbmp.h"
|
1998-08-15 00:23:28 +00:00
|
|
|
#elif defined(__WXSTUBS__)
|
2001-06-26 20:59:19 +00:00
|
|
|
#include "wx/stubs/statbmp.h"
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
#endif // wxUSE_STATBMP
|
|
|
|
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif
|
1998-08-15 00:23:28 +00:00
|
|
|
// _WX_STATBMP_H_BASE_
|