]> git.saurik.com Git - wxWidgets.git/blame - interface/statbmp.h
don't allow editing listbox entries; better handling of scrollbar styles (#9084)
[wxWidgets.git] / interface / statbmp.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: statbmp.h
e54c96f1 3// Purpose: interface of wxStaticBitmap
23324ae1
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxStaticBitmap
11 @wxheader{statbmp.h}
7c913512 12
a30e7029
VZ
13 A static bitmap control displays a bitmap. Native implementations on some
14 platforms are only meant for display of the small icons in the dialog
15 boxes. In particular, under Windows 9x the size of bitmap is limited
16 to 64*64 pixels.
17 If you want to display larger images portably, you may use generic
18 implementation wxGenericStaticBitmap declared in <wx/generic/statbmpg.h>.
7c913512 19
23324ae1
FM
20 @library{wxcore}
21 @category{ctrl}
0c7fe6f2 22 <!-- @appearance{staticbitmap.png} -->
7c913512 23
e54c96f1 24 @see wxStaticBitmap, wxStaticBox
23324ae1
FM
25*/
26class wxStaticBitmap : public wxControl
27{
28public:
671600d8
RR
29 /**
30 Default constructor
31 */
32 wxStaticBitmap();
33
23324ae1
FM
34 /**
35 Constructor, creating and showing a static bitmap control.
3c4f71cc 36
7c913512 37 @param parent
4cc4bfaf 38 Parent window. Should not be @NULL.
7c913512 39 @param id
4cc4bfaf 40 Control identifier. A value of -1 denotes a default value.
7c913512 41 @param label
4cc4bfaf 42 Bitmap label.
7c913512 43 @param pos
4cc4bfaf 44 Window position.
7c913512 45 @param size
4cc4bfaf 46 Window size.
7c913512 47 @param style
4cc4bfaf 48 Window style. See wxStaticBitmap.
7c913512 49 @param name
4cc4bfaf 50 Window name.
3c4f71cc 51
4cc4bfaf 52 @see Create()
23324ae1 53 */
7c913512
FM
54 wxStaticBitmap(wxWindow* parent, wxWindowID id,
55 const wxBitmap& label,
56 const wxPoint& pos = wxDefaultPosition,
57 const wxSize& size = wxDefaultSize,
58 long style = 0,
59 const wxString& name = "staticBitmap");
23324ae1
FM
60
61 /**
62 Creation function, for two-step construction. For details see wxStaticBitmap().
63 */
64 bool Create(wxWindow* parent, wxWindowID id,
65 const wxBitmap& label,
66 const wxPoint& pos = wxDefaultPosition,
67 const wxSize& size = wxDefaultSize,
68 long style = 0,
69 const wxString& name = "staticBitmap");
70
71 /**
72 Returns the bitmap currently used in the control. Notice that this method can
73 be called even if SetIcon() had been used.
3c4f71cc 74
4cc4bfaf 75 @see SetBitmap()
23324ae1 76 */
328f5751 77 wxBitmap GetBitmap() const;
23324ae1
FM
78
79 /**
80 Returns the icon currently used in the control. Notice that this method can
81 only be called if SetIcon() had been used: an icon
7c913512 82 can't be retrieved from the control if a bitmap had been set (using
23324ae1 83 wxStaticBitmap::SetBitmap).
3c4f71cc 84
4cc4bfaf 85 @see SetIcon()
23324ae1 86 */
328f5751 87 wxIcon GetIcon() const;
23324ae1
FM
88
89 /**
90 Sets the bitmap label.
3c4f71cc 91
7c913512 92 @param label
4cc4bfaf 93 The new bitmap.
3c4f71cc 94
4cc4bfaf 95 @see GetBitmap()
23324ae1
FM
96 */
97 virtual void SetBitmap(const wxBitmap& label);
98
99 /**
100 Sets the label to the given icon.
3c4f71cc 101
7c913512 102 @param label
4cc4bfaf 103 The new icon.
23324ae1
FM
104 */
105 virtual void SetIcon(const wxIcon& label);
106};
e54c96f1 107