]>
git.saurik.com Git - wxWidgets.git/blob - interface/statline.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxStaticLine
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
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.
17 @style{wxLI_HORIZONTAL}
18 Creates a horizontal line.
20 Creates a vertical line.
28 class wxStaticLine
: public wxControl
37 Constructor, creating and showing a static line.
40 Parent window. Must not be @NULL.
42 Window identifier. The value wxID_ANY indicates a default value.
44 Window position. If wxDefaultPosition is specified then a default
47 Size. Note that either the height or the width (depending on
48 whether the line if horizontal or vertical) is ignored.
50 Window style (either wxLI_HORIZONTAL or wxLI_VERTICAL).
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");
63 Creates the static line for two-step construction. See wxStaticLine()
66 bool Create(wxWindow
* parent
, wxWindowID id
= wxID_ANY
,
67 const wxPoint
& pos
= wxDefaultPosition
,
68 const wxSize
& size
= wxDefaultSize
,
70 const wxString
& name
= "staticLine");
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.
80 Returns @true if the line is vertical, @false if horizontal.
82 bool IsVertical() const;