]>
Commit | Line | Data |
---|---|---|
23324ae1 FM |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: statline.h | |
e54c96f1 | 3 | // Purpose: interface of wxStaticLine |
23324ae1 FM |
4 | // Author: wxWidgets team |
5 | // RCS-ID: $Id$ | |
6 | // Licence: wxWindows license | |
7 | ///////////////////////////////////////////////////////////////////////////// | |
8 | ||
9 | /** | |
10 | @class wxStaticLine | |
7c913512 | 11 | |
23324ae1 FM |
12 | A static line is just a line which may be used in a dialog to separate the |
13 | groups of controls. The line may be only vertical or horizontal. | |
7c913512 | 14 | |
23324ae1 | 15 | @beginStyleTable |
8c6791e4 | 16 | @style{wxLI_HORIZONTAL} |
23324ae1 | 17 | Creates a horizontal line. |
8c6791e4 | 18 | @style{wxLI_VERTICAL} |
23324ae1 FM |
19 | Creates a vertical line. |
20 | @endStyleTable | |
7c913512 | 21 | |
23324ae1 FM |
22 | @library{wxcore} |
23 | @category{FIXME} | |
7c913512 | 24 | |
e54c96f1 | 25 | @see wxStaticBox |
23324ae1 FM |
26 | */ |
27 | class wxStaticLine : public wxControl | |
28 | { | |
29 | public: | |
671600d8 RR |
30 | /** |
31 | Default constructor | |
32 | */ | |
33 | wxStaticLine(); | |
34 | ||
23324ae1 FM |
35 | /** |
36 | Constructor, creating and showing a static line. | |
3c4f71cc | 37 | |
7c913512 | 38 | @param parent |
4cc4bfaf | 39 | Parent window. Must not be @NULL. |
7c913512 | 40 | @param id |
4cc4bfaf | 41 | Window identifier. The value wxID_ANY indicates a default value. |
7c913512 | 42 | @param pos |
4cc4bfaf FM |
43 | Window position. If wxDefaultPosition is specified then a default |
44 | position is chosen. | |
7c913512 | 45 | @param size |
4cc4bfaf FM |
46 | Size. Note that either the height or the width (depending on |
47 | whether the line if horizontal or vertical) is ignored. | |
7c913512 | 48 | @param style |
4cc4bfaf | 49 | Window style (either wxLI_HORIZONTAL or wxLI_VERTICAL). |
7c913512 | 50 | @param name |
4cc4bfaf | 51 | Window name. |
3c4f71cc | 52 | |
4cc4bfaf | 53 | @see Create() |
23324ae1 | 54 | */ |
7c913512 FM |
55 | wxStaticLine(wxWindow* parent, wxWindowID id = wxID_ANY, |
56 | const wxPoint& pos = wxDefaultPosition, | |
57 | const wxSize& size = wxDefaultSize, | |
58 | long style = wxLI_HORIZONTAL, | |
59 | const wxString& name = "staticLine"); | |
23324ae1 FM |
60 | |
61 | /** | |
62 | Creates the static line for two-step construction. See wxStaticLine() | |
63 | for further details. | |
64 | */ | |
65 | bool Create(wxWindow* parent, wxWindowID id = wxID_ANY, | |
66 | const wxPoint& pos = wxDefaultPosition, | |
67 | const wxSize& size = wxDefaultSize, | |
68 | long style = 0, | |
69 | const wxString& name = "staticLine"); | |
70 | ||
71 | /** | |
72 | This static function returns the size which will be given to the smaller | |
73 | dimension of the static line, i.e. its height for a horizontal line or its | |
74 | width for a vertical one. | |
75 | */ | |
76 | int GetDefaultSize(); | |
77 | ||
78 | /** | |
79 | Returns @true if the line is vertical, @false if horizontal. | |
80 | */ | |
328f5751 | 81 | bool IsVertical() const; |
23324ae1 | 82 | }; |
e54c96f1 | 83 |