]> git.saurik.com Git - wxWidgets.git/blob - include/wx/statbmp.h
Add wxActivateEvent::GetActivationReason().
[wxWidgets.git] / include / wx / statbmp.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/statbmp.h
3 // Purpose: wxStaticBitmap class interface
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 25.08.00
7 // Copyright: (c) 2000 Vadim Zeitlin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_STATBMP_H_BASE_
12 #define _WX_STATBMP_H_BASE_
13
14 #include "wx/defs.h"
15
16 #if wxUSE_STATBMP
17
18 #include "wx/control.h"
19 #include "wx/bitmap.h"
20 #include "wx/icon.h"
21
22 extern WXDLLIMPEXP_DATA_CORE(const char) wxStaticBitmapNameStr[];
23
24 // a control showing an icon or a bitmap
25 class WXDLLIMPEXP_CORE wxStaticBitmapBase : public wxControl
26 {
27 public:
28 wxStaticBitmapBase() { }
29 virtual ~wxStaticBitmapBase();
30
31 // our interface
32 virtual void SetIcon(const wxIcon& icon) = 0;
33 virtual void SetBitmap(const wxBitmap& bitmap) = 0;
34 virtual wxBitmap GetBitmap() const = 0;
35 virtual wxIcon GetIcon() const /* = 0 -- should be pure virtual */
36 {
37 // stub it out here for now as not all ports implement it (but they
38 // should)
39 return wxIcon();
40 }
41
42 // overridden base class virtuals
43 virtual bool AcceptsFocus() const { return false; }
44 virtual bool HasTransparentBackground() { return true; }
45
46 protected:
47 // choose the default border for this window
48 virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
49
50 virtual wxSize DoGetBestSize() const;
51
52 wxDECLARE_NO_COPY_CLASS(wxStaticBitmapBase);
53 };
54
55 #if defined(__WXUNIVERSAL__)
56 #include "wx/univ/statbmp.h"
57 #elif defined(__WXMSW__)
58 #include "wx/msw/statbmp.h"
59 #elif defined(__WXMOTIF__)
60 #include "wx/motif/statbmp.h"
61 #elif defined(__WXGTK20__)
62 #include "wx/gtk/statbmp.h"
63 #elif defined(__WXGTK__)
64 #include "wx/gtk1/statbmp.h"
65 #elif defined(__WXMAC__)
66 #include "wx/osx/statbmp.h"
67 #elif defined(__WXCOCOA__)
68 #include "wx/cocoa/statbmp.h"
69 #elif defined(__WXPM__)
70 #include "wx/os2/statbmp.h"
71 #endif
72
73 #endif // wxUSE_STATBMP
74
75 #endif
76 // _WX_STATBMP_H_BASE_