]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/statline.h
Fix wxOSX warnings about int-to-void* casts.
[wxWidgets.git] / include / wx / osx / statline.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/statline.h
3 // Purpose: a generic wxStaticLine class used for mac before adaptation
4 // Author: Vadim Zeitlin
5 // Created: 28.06.99
6 // Copyright: (c) 1998 Vadim Zeitlin
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_GENERIC_STATLINE_H_
11 #define _WX_GENERIC_STATLINE_H_
12
13 class wxStaticBox;
14
15 // ----------------------------------------------------------------------------
16 // wxStaticLine
17 // ----------------------------------------------------------------------------
18
19 class WXDLLIMPEXP_CORE wxStaticLine : public wxStaticLineBase
20 {
21 public:
22 // constructors and pseudo-constructors
23 wxStaticLine() : m_statbox(NULL) { }
24
25 wxStaticLine( wxWindow *parent,
26 wxWindowID id = wxID_ANY,
27 const wxPoint &pos = wxDefaultPosition,
28 const wxSize &size = wxDefaultSize,
29 long style = wxLI_HORIZONTAL,
30 const wxString &name = wxStaticLineNameStr )
31 : m_statbox(NULL)
32 {
33 Create(parent, id, pos, size, style, name);
34 }
35
36 bool Create( wxWindow *parent,
37 wxWindowID id = wxID_ANY,
38 const wxPoint &pos = wxDefaultPosition,
39 const wxSize &size = wxDefaultSize,
40 long style = wxLI_HORIZONTAL,
41 const wxString &name = wxStaticLineNameStr );
42
43 // it's necessary to override this wxWindow function because we
44 // will want to return the main widget for m_statbox
45 //
46 WXWidget GetMainWidget() const;
47
48 protected:
49 // we implement the static line using a static box
50 wxStaticBox *m_statbox;
51
52 DECLARE_DYNAMIC_CLASS(wxStaticLine)
53 };
54
55 #endif // _WX_GENERIC_STATLINE_H_
56