Added wxSizerFlags::Top() and Bottom()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-01-31 03:26:31 +00:00
parent 5ec9d741e0
commit ccee328e0b
3 changed files with 31 additions and 0 deletions

View File

@@ -18,6 +18,11 @@ Major new features in this release
---------------------------------- ----------------------------------
2.9.0
-----
- Added wxSizerFlags::Top() and Bottom()
2.8.2 2.8.2
----- -----

View File

@@ -596,8 +596,10 @@ Note that if this method is not called, the wxSizerFlags has no specified alignm
\wxheading{See also} \wxheading{See also}
\helpref{Top}{wxsizerflagstop},\\
\helpref{Left}{wxsizerflagsleft},\\ \helpref{Left}{wxsizerflagsleft},\\
\helpref{Right}{wxsizerflagsright},\\ \helpref{Right}{wxsizerflagsright},\\
\helpref{Bottom}{wxsizerflagsbottom},\\
\helpref{Centre}{wxsizerflagscentre} \helpref{Centre}{wxsizerflagscentre}
@@ -615,6 +617,17 @@ default size, as returned by \helpref{GetDefaultBorder}{wxsizerflagsgetdefaultbo
is used. is used.
\membersection{wxSizerFlags::Bottom}\label{wxsizerflagsbottom}
\func{wxSizerFlags\& }{Bottom}{\void}
Aligns the object to the bottom, shortcut for \texttt{Align(wxALIGN\_BOTTOM)}
\wxheading{See also}
\helpref{Align}{wxsizerflagsalign}
\membersection{wxSizerFlags::Center}\label{wxsizerflagscenter} \membersection{wxSizerFlags::Center}\label{wxsizerflagscenter}
\func{wxSizerFlags\& }{Center}{\void} \func{wxSizerFlags\& }{Center}{\void}
@@ -704,6 +717,17 @@ Set the \texttt{wx\_SHAPED} flag which indicates that the elements should
always keep the fixed width to height ratio equal to its original value. always keep the fixed width to height ratio equal to its original value.
\membersection{wxSizerFlags::Top}\label{wxsizerflagstop}
\func{wxSizerFlags\& }{Top}{\void}
Aligns the object to the top, shortcut for \texttt{Align(wxALIGN\_TOP)}
\wxheading{See also}
\helpref{Align}{wxsizerflagsalign}
\membersection{wxSizerFlags::TripleBorder}\label{wxsizerflagstriplebleborder} \membersection{wxSizerFlags::TripleBorder}\label{wxsizerflagstriplebleborder}
\func{wxSizerFlags\& }{TripleBorder}{\param{int }{direction = wxALL}} \func{wxSizerFlags\& }{TripleBorder}{\param{int }{direction = wxALL}}

View File

@@ -75,8 +75,10 @@ public:
// some shortcuts for Align() // some shortcuts for Align()
wxSizerFlags& Centre() { return Align(wxCENTRE); } wxSizerFlags& Centre() { return Align(wxCENTRE); }
wxSizerFlags& Center() { return Centre(); } wxSizerFlags& Center() { return Centre(); }
wxSizerFlags& Top() { return Align(wxALIGN_TOP); }
wxSizerFlags& Left() { return Align(wxALIGN_LEFT); } wxSizerFlags& Left() { return Align(wxALIGN_LEFT); }
wxSizerFlags& Right() { return Align(wxALIGN_RIGHT); } wxSizerFlags& Right() { return Align(wxALIGN_RIGHT); }
wxSizerFlags& Bottom() { return Align(wxALIGN_BOTTOM); }
// default border size used by Border() below // default border size used by Border() below
static int GetDefaultBorder() static int GetDefaultBorder()