]>
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
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 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 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
);