]> git.saurik.com Git - wxWidgets.git/blame - include/wx/statbmp.h
Use default window IDs
[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
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
34138703
JS
12#ifndef _WX_STATBMP_H_BASE_
13#define _WX_STATBMP_H_BASE_
c801d85f 14
12028905 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
1e6feb95
VZ
16 #pragma interface "statbmpbase.h"
17#endif
18
997176a3
VZ
19#include "wx/defs.h"
20
1e6feb95
VZ
21#if wxUSE_STATBMP
22
23#include "wx/control.h"
24#include "wx/bitmap.h"
25
26class WXDLLEXPORT wxIcon;
27class WXDLLEXPORT wxBitmap;
28
29WXDLLEXPORT_DATA(extern const wxChar*) wxStaticBitmapNameStr;
30
31// a control showing an icon or a bitmap
32class WXDLLEXPORT wxStaticBitmapBase : public wxControl
33{
fc7a2a60
VZ
34public:
35 wxStaticBitmapBase() { }
799ea011 36 virtual ~wxStaticBitmapBase();
b698c8e9 37
1e6feb95
VZ
38 // our interface
39 virtual void SetIcon(const wxIcon& icon) = 0;
40 virtual void SetBitmap(const wxBitmap& bitmap) = 0;
41 virtual wxBitmap GetBitmap() const = 0;
42
43 // overriden base class virtuals
44 virtual bool AcceptsFocus() const { return FALSE; }
45
46protected:
47 virtual wxSize DoGetBestClientSize() const;
fc7a2a60
VZ
48
49 DECLARE_NO_COPY_CLASS(wxStaticBitmapBase)
1e6feb95
VZ
50};
51
52#if defined(__WXUNIVERSAL__)
53 #include "wx/univ/statbmp.h"
54#elif defined(__WXMSW__)
55 #include "wx/msw/statbmp.h"
2049ba38 56#elif defined(__WXMOTIF__)
1e6feb95 57 #include "wx/motif/statbmp.h"
2049ba38 58#elif defined(__WXGTK__)
1e6feb95 59 #include "wx/gtk/statbmp.h"
34138703 60#elif defined(__WXMAC__)
1e6feb95 61 #include "wx/mac/statbmp.h"
e64df9bc
DE
62#elif defined(__WXCOCOA__)
63 #include "wx/cocoa/statbmp.h"
1777b9bb 64#elif defined(__WXPM__)
1e6feb95 65 #include "wx/os2/statbmp.h"
c801d85f
KB
66#endif
67
1e6feb95
VZ
68#endif // wxUSE_STATBMP
69
c801d85f 70#endif
34138703 71 // _WX_STATBMP_H_BASE_