]>
Commit | Line | Data |
---|---|---|
1e6feb95 VZ |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/univ/statline.h | |
3 | // Purpose: wxStaticLine class for wxUniversal | |
4 | // Author: Vadim Zeitlin | |
5 | // Created: 28.06.99 | |
1e6feb95 | 6 | // Copyright: (c) 1999 Vadim Zeitlin |
65571936 | 7 | // Licence: wxWindows licence |
1e6feb95 VZ |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
1e6feb95 VZ |
10 | #ifndef _WX_UNIV_STATLINE_H_ |
11 | #define _WX_UNIV_STATLINE_H_ | |
12 | ||
53a2db12 | 13 | class WXDLLIMPEXP_CORE wxStaticLine : public wxStaticLineBase |
1e6feb95 VZ |
14 | { |
15 | public: | |
16 | // constructors and pseudo-constructors | |
17 | wxStaticLine() { } | |
18 | ||
19 | wxStaticLine(wxWindow *parent, | |
20 | const wxPoint &pos, | |
21 | wxCoord length, | |
22 | long style = wxLI_HORIZONTAL) | |
23 | { | |
a290fa5a WS |
24 | Create(parent, wxID_ANY, pos, |
25 | style & wxLI_VERTICAL ? wxSize(wxDefaultCoord, length) | |
26 | : wxSize(length, wxDefaultCoord), | |
1e6feb95 VZ |
27 | style); |
28 | } | |
29 | ||
30 | wxStaticLine(wxWindow *parent, | |
1de1196a | 31 | wxWindowID id = wxID_ANY, |
1e6feb95 VZ |
32 | const wxPoint &pos = wxDefaultPosition, |
33 | const wxSize &size = wxDefaultSize, | |
34 | long style = wxLI_HORIZONTAL, | |
73b30256 | 35 | const wxString &name = wxStaticLineNameStr ) |
1e6feb95 VZ |
36 | { |
37 | Create(parent, id, pos, size, style, name); | |
38 | } | |
39 | ||
40 | bool Create(wxWindow *parent, | |
1de1196a | 41 | wxWindowID id = wxID_ANY, |
1e6feb95 VZ |
42 | const wxPoint &pos = wxDefaultPosition, |
43 | const wxSize &size = wxDefaultSize, | |
44 | long style = wxLI_HORIZONTAL, | |
73b30256 | 45 | const wxString &name = wxStaticLineNameStr ); |
1e6feb95 VZ |
46 | |
47 | protected: | |
48 | virtual void DoDraw(wxControlRenderer *renderer); | |
49 | ||
50 | private: | |
51 | DECLARE_DYNAMIC_CLASS(wxStaticLine) | |
52 | }; | |
53 | ||
54 | #endif // _WX_UNIV_STATLINE_H_ | |
55 |