]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/statbmp.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxStaticBitmap
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
12 A static bitmap control displays a bitmap. Native implementations on some
13 platforms are only meant for display of the small icons in the dialog
14 boxes. In particular, under Windows 9x the size of bitmap is limited
16 If you want to display larger images portably, you may use generic
17 implementation wxGenericStaticBitmap declared in <wx/generic/statbmpg.h>.
21 <!-- @appearance{staticbitmap.png} -->
23 @see wxStaticBitmap, wxStaticBox
25 class wxStaticBitmap
: public wxControl
34 Constructor, creating and showing a static bitmap control.
37 Parent window. Should not be @NULL.
39 Control identifier. A value of -1 denotes a default value.
47 Window style. See wxStaticBitmap.
53 wxStaticBitmap(wxWindow
* parent
, wxWindowID id
,
54 const wxBitmap
& label
,
55 const wxPoint
& pos
= wxDefaultPosition
,
56 const wxSize
& size
= wxDefaultSize
,
58 const wxString
& name
= "staticBitmap");
61 Creation function, for two-step construction. For details see wxStaticBitmap().
63 bool Create(wxWindow
* parent
, wxWindowID id
,
64 const wxBitmap
& label
,
65 const wxPoint
& pos
= wxDefaultPosition
,
66 const wxSize
& size
= wxDefaultSize
,
68 const wxString
& name
= "staticBitmap");
71 Returns the bitmap currently used in the control. Notice that this method can
72 be called even if SetIcon() had been used.
76 virtual wxBitmap
GetBitmap() const;
79 Returns the icon currently used in the control. Notice that this method can
80 only be called if SetIcon() had been used: an icon
81 can't be retrieved from the control if a bitmap had been set (using
82 wxStaticBitmap::SetBitmap).
86 virtual wxIcon
GetIcon() const;
89 Sets the bitmap label.
96 virtual void SetBitmap(const wxBitmap
& label
);
99 Sets the label to the given icon.
104 virtual void SetIcon(const wxIcon
& label
);