X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..a8bda512079352ba81933e278d9ccdb8ef7a9866:/interface/wx/statline.h?ds=sidebyside diff --git a/interface/wx/statline.h b/interface/wx/statline.h index 226f28a70a..0a4ba0536d 100644 --- a/interface/wx/statline.h +++ b/interface/wx/statline.h @@ -3,15 +3,19 @@ // Purpose: interface of wxStaticLine // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @class wxStaticLine - @wxheader{statline.h} A static line is just a line which may be used in a dialog to separate the - groups of controls. The line may be only vertical or horizontal. + groups of controls. + + The line may be only vertical or horizontal. Moreover, not all ports + (notably not wxGTK) support specifying the transversal direction of the + line (e.g. height for a horizontal line) so for maximial portability you + should specify it as wxDefaultCoord. @beginStyleTable @style{wxLI_HORIZONTAL} @@ -21,7 +25,7 @@ @endStyleTable @library{wxcore} - @category{FIXME} + @category{ctrl} @see wxStaticBox */ @@ -32,7 +36,7 @@ public: Default constructor */ wxStaticLine(); - + /** Constructor, creating and showing a static line. @@ -41,8 +45,8 @@ public: @param id Window identifier. The value wxID_ANY indicates a default value. @param pos - Window position. If wxDefaultPosition is specified then a default - position is chosen. + Window position. + If ::wxDefaultPosition is specified then a default position is chosen. @param size Size. Note that either the height or the width (depending on whether the line if horizontal or vertical) is ignored. @@ -57,24 +61,23 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxLI_HORIZONTAL, - const wxString& name = "staticLine"); + const wxString& name = wxStaticLineNameStr); /** - Creates the static line for two-step construction. See wxStaticLine() - for further details. + Creates the static line for two-step construction. + See wxStaticLine() for further details. */ bool Create(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, - const wxString& name = "staticLine"); + const wxSize& size = wxDefaultSize, long style = wxLI_HORIZONTAL, + const wxString& name = wxStaticLineNameStr); /** This static function returns the size which will be given to the smaller dimension of the static line, i.e. its height for a horizontal line or its width for a vertical one. */ - int GetDefaultSize(); + static int GetDefaultSize(); /** Returns @true if the line is vertical, @false if horizontal.