]>
git.saurik.com Git - wxWidgets.git/blob - interface/statbmp.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxStaticBitmap
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} -->
23 @see wxStaticBitmap, wxStaticBox
25 class wxStaticBitmap
: public wxControl
30 Constructor, creating and showing a static bitmap control.
33 Parent window. Should not be @NULL.
35 Control identifier. A value of -1 denotes a default value.
43 Window style. See wxStaticBitmap.
50 wxStaticBitmap(wxWindow
* parent
, wxWindowID id
,
51 const wxBitmap
& label
,
52 const wxPoint
& pos
= wxDefaultPosition
,
53 const wxSize
& size
= wxDefaultSize
,
55 const wxString
& name
= "staticBitmap");
59 Creation function, for two-step construction. For details see wxStaticBitmap().
61 bool Create(wxWindow
* parent
, wxWindowID id
,
62 const wxBitmap
& label
,
63 const wxPoint
& pos
= wxDefaultPosition
,
64 const wxSize
& size
= wxDefaultSize
,
66 const wxString
& name
= "staticBitmap");
69 Returns the bitmap currently used in the control. Notice that this method can
70 be called even if SetIcon() had been used.
74 wxBitmap
GetBitmap() const;
77 Returns the icon currently used in the control. Notice that this method can
78 only be called if SetIcon() had been used: an icon
79 can't be retrieved from the control if a bitmap had been set (using
80 wxStaticBitmap::SetBitmap).
84 wxIcon
GetIcon() const;
87 Sets the bitmap label.
94 virtual void SetBitmap(const wxBitmap
& label
);
97 Sets the label to the given icon.
102 virtual void SetIcon(const wxIcon
& label
);