]> git.saurik.com Git - wxWidgets.git/blame - include/wx/univ/statbmp.h
Make wxComboCtrlBase::Set*groundColour() methods public.
[wxWidgets.git] / include / wx / univ / statbmp.h
CommitLineData
1e6feb95
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/univ/statbmp.h
3// Purpose: wxStaticBitmap class for wxUniversal
4// Author: Vadim Zeitlin
5// Modified by:
6// Created: 25.08.00
442b35b5 7// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
65571936 8// Licence: wxWindows licence
1e6feb95
VZ
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_UNIV_STATBMP_H_
12#define _WX_UNIV_STATBMP_H_
13
1e6feb95
VZ
14#include "wx/bitmap.h"
15
16// ----------------------------------------------------------------------------
17// wxStaticBitmap
18// ----------------------------------------------------------------------------
19
53a2db12 20class WXDLLIMPEXP_CORE wxStaticBitmap : public wxStaticBitmapBase
1e6feb95
VZ
21{
22public:
23 wxStaticBitmap()
24 {
25 }
26
27 wxStaticBitmap(wxWindow *parent,
28 const wxBitmap& label,
29 const wxPoint& pos = wxDefaultPosition,
30 const wxSize& size = wxDefaultSize,
31 long style = 0)
32 {
a290fa5a 33 Create(parent, wxID_ANY, label, pos, size, style);
1e6feb95
VZ
34 }
35
36 wxStaticBitmap(wxWindow *parent,
37 wxWindowID id,
38 const wxBitmap& label,
39 const wxPoint& pos = wxDefaultPosition,
40 const wxSize& size = wxDefaultSize,
41 long style = 0,
42 const wxString& name = wxStaticBitmapNameStr)
43 {
44 Create(parent, id, label, pos, size, style, name);
45 }
46
47 bool Create(wxWindow *parent,
48 wxWindowID id,
49 const wxBitmap& label,
50 const wxPoint& pos = wxDefaultPosition,
51 const wxSize& size = wxDefaultSize,
52 long style = 0,
53 const wxString& name = wxStaticBitmapNameStr);
54
55 virtual void SetBitmap(const wxBitmap& bitmap);
56 virtual void SetIcon(const wxIcon& icon);
57 virtual wxBitmap GetBitmap() const { return m_bitmap; }
58
59 wxIcon GetIcon() const;
60
a290fa5a 61 virtual bool HasTransparentBackground() { return true; }
6f02a879
VZ
62
63protected:
1e6feb95
VZ
64 virtual void DoDraw(wxControlRenderer *renderer);
65
6f02a879 66private:
1e6feb95
VZ
67 // the bitmap which we show
68 wxBitmap m_bitmap;
69
70 DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
71};
72
73#endif // _WX_UNIV_STATBMP_H_