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