]>
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 
= wxStaticBitmapNameStr
); 
  62         Creation function, for two-step construction. For details see wxStaticBitmap(). 
  64     bool Create(wxWindow
* parent
, wxWindowID id
, const wxBitmap
& label
, 
  65                 const wxPoint
& pos 
= wxDefaultPosition
, 
  66                 const wxSize
& size 
= wxDefaultSize
, long style 
= 0, 
  67                 const wxString
& name 
= wxStaticBitmapNameStr
); 
  70         Returns the bitmap currently used in the control. 
  71         Notice that this method can be called even if SetIcon() had been used. 
  75     virtual wxBitmap 
GetBitmap() const; 
  78         Returns the icon currently used in the control. 
  79         Notice that this method can only be called if SetIcon() had been used: an icon 
  80         can't be retrieved from the control if a bitmap had been set 
  81         (using wxStaticBitmap::SetBitmap). 
  85     virtual 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
);