]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/statline.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxStaticLine
4 // Author: wxWidgets team
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
11 A static line is just a line which may be used in a dialog to separate the
14 The line may be only vertical or horizontal. Moreover, not all ports
15 (notably not wxGTK) support specifying the transversal direction of the
16 line (e.g. height for a horizontal line) so for maximal portability you
17 should specify it as wxDefaultCoord.
20 @style{wxLI_HORIZONTAL}
21 Creates a horizontal line.
23 Creates a vertical line.
31 class wxStaticLine
: public wxControl
40 Constructor, creating and showing a static line.
43 Parent window. Must not be @NULL.
45 Window identifier. The value wxID_ANY indicates a default value.
48 If ::wxDefaultPosition is specified then a default position is chosen.
50 Size. Note that either the height or the width (depending on
51 whether the line if horizontal or vertical) is ignored.
53 Window style (either wxLI_HORIZONTAL or wxLI_VERTICAL).
59 wxStaticLine(wxWindow
* parent
, wxWindowID id
= wxID_ANY
,
60 const wxPoint
& pos
= wxDefaultPosition
,
61 const wxSize
& size
= wxDefaultSize
,
62 long style
= wxLI_HORIZONTAL
,
63 const wxString
& name
= wxStaticLineNameStr
);
66 Creates the static line for two-step construction.
67 See wxStaticLine() for further details.
69 bool Create(wxWindow
* parent
, wxWindowID id
= wxID_ANY
,
70 const wxPoint
& pos
= wxDefaultPosition
,
71 const wxSize
& size
= wxDefaultSize
, long style
= wxLI_HORIZONTAL
,
72 const wxString
& name
= wxStaticLineNameStr
);
75 This static function returns the size which will be given to the smaller
76 dimension of the static line, i.e. its height for a horizontal line or its
77 width for a vertical one.
79 static int GetDefaultSize();
82 Returns @true if the line is vertical, @false if horizontal.
84 bool IsVertical() const;