]>
git.saurik.com Git - wxWidgets.git/blob - interface/statbmp.h
635bd3516b7982ba3a1282c6ce883b826cc8131e
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: documentation for wxStaticBitmap class
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
13 A static bitmap control displays a bitmap. It is meant for display of the
14 small icons in the dialog boxes and is not meant to be a general purpose image
15 display control. In particular, under Windows 9x the size of bitmap is limited
16 to 64*64 pixels and thus you should use your own control if you want to
17 display larger images portably.
21 @appearance{staticbitmap.png}
24 wxStaticBitmap, wxStaticBox
26 class wxStaticBitmap
: public wxControl
31 Constructor, creating and showing a static bitmap control.
34 Parent window. Should not be @NULL.
36 Control identifier. A value of -1 denotes a default value.
44 Window style. See wxStaticBitmap.
51 wxStaticBitmap(wxWindow
* parent
, wxWindowID id
,
52 const wxBitmap
& label
,
53 const wxPoint
& pos
= wxDefaultPosition
,
54 const wxSize
& size
= wxDefaultSize
,
56 const wxString
& name
= "staticBitmap");
60 Creation function, for two-step construction. For details see wxStaticBitmap().
62 bool Create(wxWindow
* parent
, wxWindowID id
,
63 const wxBitmap
& label
,
64 const wxPoint
& pos
= wxDefaultPosition
,
65 const wxSize
& size
= wxDefaultSize
,
67 const wxString
& name
= "staticBitmap");
70 Returns the bitmap currently used in the control. Notice that this method can
71 be called even if SetIcon() had been used.
75 wxBitmap
GetBitmap() const;
78 Returns the icon currently used in the control. Notice that this method can
79 only be called if SetIcon() had been used: an icon
80 can't be retrieved from the control if a bitmap had been set (using
81 wxStaticBitmap::SetBitmap).
85 wxIcon
GetIcon() const;
88 Sets the bitmap label.
95 virtual void SetBitmap(const wxBitmap
& label
);
98 Sets the label to the given icon.
103 virtual void SetIcon(const wxIcon
& label
);