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