]> git.saurik.com Git - wxWidgets.git/blame - include/wx/statbmp.h
proper default for iphone
[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
1e6feb95 7// Copyright: (c) 2000 Vadim Zeitlin
65571936 8// Licence: wxWindows licence
1e6feb95
VZ
9/////////////////////////////////////////////////////////////////////////////
10
34138703
JS
11#ifndef _WX_STATBMP_H_BASE_
12#define _WX_STATBMP_H_BASE_
c801d85f 13
997176a3
VZ
14#include "wx/defs.h"
15
1e6feb95
VZ
16#if wxUSE_STATBMP
17
18#include "wx/control.h"
19#include "wx/bitmap.h"
a44fb285 20#include "wx/icon.h"
1e6feb95 21
53a2db12 22extern WXDLLIMPEXP_DATA_CORE(const char) wxStaticBitmapNameStr[];
1e6feb95
VZ
23
24// a control showing an icon or a bitmap
53a2db12 25class WXDLLIMPEXP_CORE wxStaticBitmapBase : public wxControl
1e6feb95 26{
fc7a2a60
VZ
27public:
28 wxStaticBitmapBase() { }
799ea011 29 virtual ~wxStaticBitmapBase();
d775fa82 30
1e6feb95
VZ
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;
a44fb285
VZ
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 }
1e6feb95 41
4c51a665 42 // overridden base class virtuals
d775fa82 43 virtual bool AcceptsFocus() const { return false; }
60acae65 44 virtual bool HasTransparentBackground() { return true; }
1e6feb95
VZ
45
46protected:
dc797d8e
JS
47 // choose the default border for this window
48 virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
49
b3fcfa4d 50 virtual wxSize DoGetBestSize() const;
fc7a2a60 51
c0c133e1 52 wxDECLARE_NO_COPY_CLASS(wxStaticBitmapBase);
1e6feb95
VZ
53};
54
55#if defined(__WXUNIVERSAL__)
56 #include "wx/univ/statbmp.h"
57#elif defined(__WXMSW__)
58 #include "wx/msw/statbmp.h"
2049ba38 59#elif defined(__WXMOTIF__)
1e6feb95 60 #include "wx/motif/statbmp.h"
1be7a35c 61#elif defined(__WXGTK20__)
1e6feb95 62 #include "wx/gtk/statbmp.h"
1be7a35c
MR
63#elif defined(__WXGTK__)
64 #include "wx/gtk1/statbmp.h"
34138703 65#elif defined(__WXMAC__)
ef0e9220 66 #include "wx/osx/statbmp.h"
e64df9bc
DE
67#elif defined(__WXCOCOA__)
68 #include "wx/cocoa/statbmp.h"
1777b9bb 69#elif defined(__WXPM__)
1e6feb95 70 #include "wx/os2/statbmp.h"
c801d85f
KB
71#endif
72
1e6feb95
VZ
73#endif // wxUSE_STATBMP
74
c801d85f 75#endif
34138703 76 // _WX_STATBMP_H_BASE_