]> git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/statline.h
wxUSE_CRASHREPORT/STACKWALKER may be sued without wxUSE_ON_FATAL_EXCEPTION
[wxWidgets.git] / include / wx / univ / statline.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/statline.h
3 // Purpose: wxStaticLine class for wxUniversal
4 // Author: Vadim Zeitlin
5 // Created: 28.06.99
6 // Version: $Id$
7 // Copyright: (c) 1999 Vadim Zeitlin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
12 #pragma interface "univstatline.h"
13 #endif
14
15 #ifndef _WX_UNIV_STATLINE_H_
16 #define _WX_UNIV_STATLINE_H_
17
18 class WXDLLEXPORT wxStaticLine : public wxStaticLineBase
19 {
20 public:
21 // constructors and pseudo-constructors
22 wxStaticLine() { }
23
24 wxStaticLine(wxWindow *parent,
25 const wxPoint &pos,
26 wxCoord length,
27 long style = wxLI_HORIZONTAL)
28 {
29 Create(parent, wxID_ANY, pos,
30 style & wxLI_VERTICAL ? wxSize(wxDefaultCoord, length)
31 : wxSize(length, wxDefaultCoord),
32 style);
33 }
34
35 wxStaticLine(wxWindow *parent,
36 wxWindowID id,
37 const wxPoint &pos = wxDefaultPosition,
38 const wxSize &size = wxDefaultSize,
39 long style = wxLI_HORIZONTAL,
40 const wxString &name = wxStaticTextNameStr )
41 {
42 Create(parent, id, pos, size, style, name);
43 }
44
45 bool Create(wxWindow *parent,
46 wxWindowID id,
47 const wxPoint &pos = wxDefaultPosition,
48 const wxSize &size = wxDefaultSize,
49 long style = wxLI_HORIZONTAL,
50 const wxString &name = wxStaticTextNameStr );
51
52 protected:
53 virtual void DoDraw(wxControlRenderer *renderer);
54
55 private:
56 DECLARE_DYNAMIC_CLASS(wxStaticLine)
57 };
58
59 #endif // _WX_UNIV_STATLINE_H_
60