]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/statline.h
   1 ///////////////////////////////////////////////////////////////////////////// 
   2 // Name:        mac/statline.h 
   3 // Purpose:     a generic wxStaticLine class used for mac before adaptation 
   4 // Author:      Vadim Zeitlin 
   7 // Copyright:   (c) 1998 Vadim Zeitlin 
   8 // Licence:     wxWindows licence 
   9 ///////////////////////////////////////////////////////////////////////////// 
  11 #ifndef _WX_GENERIC_STATLINE_H_ 
  12 #define _WX_GENERIC_STATLINE_H_ 
  14 #if defined(__GNUG__) && !defined(__APPLE__) 
  15     #pragma interface "statline.h" 
  20 // ---------------------------------------------------------------------------- 
  22 // ---------------------------------------------------------------------------- 
  24 class WXDLLEXPORT wxStaticLine 
: public wxStaticLineBase
 
  26     DECLARE_DYNAMIC_CLASS(wxStaticLine
) 
  29     // constructors and pseudo-constructors 
  30     wxStaticLine() : m_statbox(NULL
) { } 
  32     wxStaticLine( wxWindow 
*parent
, 
  34                   const wxPoint 
&pos 
= wxDefaultPosition
, 
  35                   const wxSize 
&size 
= wxDefaultSize
, 
  36                   long style 
= wxLI_HORIZONTAL
, 
  37                   const wxString 
&name 
= wxStaticTextNameStr 
) 
  40         Create(parent
, id
, pos
, size
, style
, name
); 
  43     bool Create( wxWindow 
*parent
, 
  45                  const wxPoint 
&pos 
= wxDefaultPosition
, 
  46                  const wxSize 
&size 
= wxDefaultSize
, 
  47                  long style 
= wxLI_HORIZONTAL
, 
  48                  const wxString 
&name 
= wxStaticTextNameStr 
); 
  50     // it's necessary to override this wxWindow function because we 
  51     // will want to return the main widget for m_statbox 
  53     WXWidget 
GetMainWidget() const; 
  56     // we implement the static line using a static box 
  57     wxStaticBox 
*m_statbox
; 
  60 #endif // _WX_GENERIC_STATLINE_H_