]>
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
17 If you want to display larger images portably, you may use generic
18 implementation wxGenericStaticBitmap declared in \<wx/generic/statbmpg.h\>.
22 @appearance{staticbitmap.png}
24 @see wxStaticBitmap, wxStaticBox
26 class wxStaticBitmap
: public wxControl
35 Constructor, creating and showing a static bitmap control.
38 Parent window. Should not be @NULL.
40 Control identifier. A value of -1 denotes a default value.
48 Window style. See wxStaticBitmap.
54 wxStaticBitmap(wxWindow
* parent
, wxWindowID id
,
55 const wxBitmap
& label
,
56 const wxPoint
& pos
= wxDefaultPosition
,
57 const wxSize
& size
= wxDefaultSize
,
59 const wxString
& name
= "staticBitmap");
62 Creation function, for two-step construction. For details see wxStaticBitmap().
64 bool Create(wxWindow
* parent
, wxWindowID id
,
65 const wxBitmap
& label
,
66 const wxPoint
& pos
= wxDefaultPosition
,
67 const wxSize
& size
= wxDefaultSize
,
69 const wxString
& name
= "staticBitmap");
72 Returns the bitmap currently used in the control.
73 Notice that this method can be called even if SetIcon() had been used.
77 virtual wxBitmap
GetBitmap() const;
80 Returns the icon currently used in the control.
81 Notice that this method can only be called if SetIcon() had been used: an icon
82 can't be retrieved from the control if a bitmap had been set
83 (using wxStaticBitmap::SetBitmap).
87 virtual wxIcon
GetIcon() const;
90 Sets the bitmap label.
97 virtual void SetBitmap(const wxBitmap
& label
);
100 Sets the label to the given icon.
105 virtual void SetIcon(const wxIcon
& label
);