]>
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 | 12 | A static line is just a line which may be used in a dialog to separate the |
98a66b61 VZ |
13 | groups of controls. |
14 | ||
15 | The line may be only vertical or horizontal. Moreover, not all ports | |
16 | (notably not wxGTK) support specifying the transversal direction of the | |
17 | line (e.g. height for a horizontal line) so for maximial portability you | |
18 | should specify it as wxDefaultCoord. | |
7c913512 | 19 | |
23324ae1 | 20 | @beginStyleTable |
8c6791e4 | 21 | @style{wxLI_HORIZONTAL} |
23324ae1 | 22 | Creates a horizontal line. |
8c6791e4 | 23 | @style{wxLI_VERTICAL} |
23324ae1 FM |
24 | Creates a vertical line. |
25 | @endStyleTable | |
7c913512 | 26 | |
23324ae1 | 27 | @library{wxcore} |
4701dc09 | 28 | @category{ctrl} |
7c913512 | 29 | |
e54c96f1 | 30 | @see wxStaticBox |
23324ae1 FM |
31 | */ |
32 | class wxStaticLine : public wxControl | |
33 | { | |
34 | public: | |
671600d8 RR |
35 | /** |
36 | Default constructor | |
37 | */ | |
38 | wxStaticLine(); | |
4701dc09 | 39 | |
23324ae1 FM |
40 | /** |
41 | Constructor, creating and showing a static line. | |
3c4f71cc | 42 | |
7c913512 | 43 | @param parent |
4cc4bfaf | 44 | Parent window. Must not be @NULL. |
7c913512 | 45 | @param id |
4cc4bfaf | 46 | Window identifier. The value wxID_ANY indicates a default value. |
7c913512 | 47 | @param pos |
4701dc09 FM |
48 | Window position. |
49 | If wxDefaultPosition is specified then a default position is chosen. | |
7c913512 | 50 | @param size |
4cc4bfaf FM |
51 | Size. Note that either the height or the width (depending on |
52 | whether the line if horizontal or vertical) is ignored. | |
7c913512 | 53 | @param style |
4cc4bfaf | 54 | Window style (either wxLI_HORIZONTAL or wxLI_VERTICAL). |
7c913512 | 55 | @param name |
4cc4bfaf | 56 | Window name. |
3c4f71cc | 57 | |
4cc4bfaf | 58 | @see Create() |
23324ae1 | 59 | */ |
7c913512 FM |
60 | wxStaticLine(wxWindow* parent, wxWindowID id = wxID_ANY, |
61 | const wxPoint& pos = wxDefaultPosition, | |
62 | const wxSize& size = wxDefaultSize, | |
63 | long style = wxLI_HORIZONTAL, | |
64 | const wxString& name = "staticLine"); | |
23324ae1 FM |
65 | |
66 | /** | |
4701dc09 FM |
67 | Creates the static line for two-step construction. |
68 | See wxStaticLine() for further details. | |
23324ae1 FM |
69 | */ |
70 | bool Create(wxWindow* parent, wxWindowID id = wxID_ANY, | |
71 | const wxPoint& pos = wxDefaultPosition, | |
72 | const wxSize& size = wxDefaultSize, | |
73 | long style = 0, | |
74 | const wxString& name = "staticLine"); | |
75 | ||
76 | /** | |
77 | This static function returns the size which will be given to the smaller | |
78 | dimension of the static line, i.e. its height for a horizontal line or its | |
79 | width for a vertical one. | |
80 | */ | |
adaaa686 | 81 | static int GetDefaultSize(); |
23324ae1 FM |
82 | |
83 | /** | |
84 | Returns @true if the line is vertical, @false if horizontal. | |
85 | */ | |
328f5751 | 86 | bool IsVertical() const; |
23324ae1 | 87 | }; |
e54c96f1 | 88 |