]> git.saurik.com Git - wxWidgets.git/blame - interface/statline.h
GetSocketManager() has no GUI-specific version under Darwin finally
[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:
31 //@{
32 /**
33 Constructor, creating and showing a static line.
3c4f71cc 34
7c913512 35 @param parent
4cc4bfaf 36 Parent window. Must not be @NULL.
7c913512 37 @param id
4cc4bfaf 38 Window identifier. The value wxID_ANY indicates a default value.
7c913512 39 @param pos
4cc4bfaf
FM
40 Window position. If wxDefaultPosition is specified then a default
41 position is chosen.
7c913512 42 @param size
4cc4bfaf
FM
43 Size. Note that either the height or the width (depending on
44 whether the line if horizontal or vertical) is ignored.
7c913512 45 @param style
4cc4bfaf 46 Window style (either wxLI_HORIZONTAL or wxLI_VERTICAL).
7c913512 47 @param name
4cc4bfaf 48 Window name.
3c4f71cc 49
4cc4bfaf 50 @see Create()
23324ae1
FM
51 */
52 wxStaticLine();
7c913512
FM
53 wxStaticLine(wxWindow* parent, wxWindowID id = wxID_ANY,
54 const wxPoint& pos = wxDefaultPosition,
55 const wxSize& size = wxDefaultSize,
56 long style = wxLI_HORIZONTAL,
57 const wxString& name = "staticLine");
23324ae1
FM
58 //@}
59
60 /**
61 Creates the static line for two-step construction. See wxStaticLine()
62 for further details.
63 */
64 bool Create(wxWindow* parent, wxWindowID id = wxID_ANY,
65 const wxPoint& pos = wxDefaultPosition,
66 const wxSize& size = wxDefaultSize,
67 long style = 0,
68 const wxString& name = "staticLine");
69
70 /**
71 This static function returns the size which will be given to the smaller
72 dimension of the static line, i.e. its height for a horizontal line or its
73 width for a vertical one.
74 */
75 int GetDefaultSize();
76
77 /**
78 Returns @true if the line is vertical, @false if horizontal.
79 */
328f5751 80 bool IsVertical() const;
23324ae1 81};
e54c96f1 82