]> git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/statline.h
use wxEventType coherently with the docs
[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 #ifndef _WX_UNIV_STATLINE_H_
12 #define _WX_UNIV_STATLINE_H_
13
14 class WXDLLIMPEXP_CORE wxStaticLine : public wxStaticLineBase
15 {
16 public:
17 // constructors and pseudo-constructors
18 wxStaticLine() { }
19
20 wxStaticLine(wxWindow *parent,
21 const wxPoint &pos,
22 wxCoord length,
23 long style = wxLI_HORIZONTAL)
24 {
25 Create(parent, wxID_ANY, pos,
26 style & wxLI_VERTICAL ? wxSize(wxDefaultCoord, length)
27 : wxSize(length, wxDefaultCoord),
28 style);
29 }
30
31 wxStaticLine(wxWindow *parent,
32 wxWindowID id = wxID_ANY,
33 const wxPoint &pos = wxDefaultPosition,
34 const wxSize &size = wxDefaultSize,
35 long style = wxLI_HORIZONTAL,
36 const wxString &name = wxStaticLineNameStr )
37 {
38 Create(parent, id, pos, size, style, name);
39 }
40
41 bool Create(wxWindow *parent,
42 wxWindowID id = wxID_ANY,
43 const wxPoint &pos = wxDefaultPosition,
44 const wxSize &size = wxDefaultSize,
45 long style = wxLI_HORIZONTAL,
46 const wxString &name = wxStaticLineNameStr );
47
48 protected:
49 virtual void DoDraw(wxControlRenderer *renderer);
50
51 private:
52 DECLARE_DYNAMIC_CLASS(wxStaticLine)
53 };
54
55 #endif // _WX_UNIV_STATLINE_H_
56