]> git.saurik.com Git - wxWidgets.git/blame - include/wx/statbmp.h
fixed wxComboBox::Clear to clear stored value
[wxWidgets.git] / include / wx / statbmp.h
CommitLineData
1e6feb95
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/statbmp.h
3// Purpose: wxStaticBitmap class interface
4// Author: Vadim Zeitlin
5// Modified by:
6// Created: 25.08.00
7// RCS-ID: $Id$
8// Copyright: (c) 2000 Vadim Zeitlin
65571936 9// Licence: wxWindows licence
1e6feb95
VZ
10/////////////////////////////////////////////////////////////////////////////
11
34138703
JS
12#ifndef _WX_STATBMP_H_BASE_
13#define _WX_STATBMP_H_BASE_
c801d85f 14
997176a3
VZ
15#include "wx/defs.h"
16
1e6feb95
VZ
17#if wxUSE_STATBMP
18
19#include "wx/control.h"
20#include "wx/bitmap.h"
21
22class WXDLLEXPORT wxIcon;
23class WXDLLEXPORT wxBitmap;
24
16cba29d 25extern WXDLLEXPORT_DATA(const wxChar*) wxStaticBitmapNameStr;
1e6feb95
VZ
26
27// a control showing an icon or a bitmap
28class WXDLLEXPORT wxStaticBitmapBase : public wxControl
29{
fc7a2a60
VZ
30public:
31 wxStaticBitmapBase() { }
799ea011 32 virtual ~wxStaticBitmapBase();
d775fa82 33
1e6feb95
VZ
34 // our interface
35 virtual void SetIcon(const wxIcon& icon) = 0;
36 virtual void SetBitmap(const wxBitmap& bitmap) = 0;
37 virtual wxBitmap GetBitmap() const = 0;
38
39 // overriden base class virtuals
d775fa82 40 virtual bool AcceptsFocus() const { return false; }
60acae65 41 virtual bool HasTransparentBackground() { return true; }
1e6feb95
VZ
42
43protected:
b3fcfa4d 44 virtual wxSize DoGetBestSize() const;
fc7a2a60
VZ
45
46 DECLARE_NO_COPY_CLASS(wxStaticBitmapBase)
1e6feb95
VZ
47};
48
49#if defined(__WXUNIVERSAL__)
50 #include "wx/univ/statbmp.h"
51#elif defined(__WXMSW__)
52 #include "wx/msw/statbmp.h"
2049ba38 53#elif defined(__WXMOTIF__)
1e6feb95 54 #include "wx/motif/statbmp.h"
2049ba38 55#elif defined(__WXGTK__)
1e6feb95 56 #include "wx/gtk/statbmp.h"
34138703 57#elif defined(__WXMAC__)
1e6feb95 58 #include "wx/mac/statbmp.h"
e64df9bc
DE
59#elif defined(__WXCOCOA__)
60 #include "wx/cocoa/statbmp.h"
1777b9bb 61#elif defined(__WXPM__)
1e6feb95 62 #include "wx/os2/statbmp.h"
c801d85f
KB
63#endif
64
1e6feb95
VZ
65#endif // wxUSE_STATBMP
66
c801d85f 67#endif
34138703 68 // _WX_STATBMP_H_BASE_