From: Vadim Zeitlin Date: Fri, 11 Mar 2005 01:55:23 +0000 (+0000) Subject: added wxSizerFlags::Left/Right() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e72ac08291dc20516333e784ff0f8bf6d16db38e added wxSizerFlags::Left/Right() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/latex/wx/sizer.tex b/docs/latex/wx/sizer.tex index ef5c5b2c26..22d64fe7e7 100644 --- a/docs/latex/wx/sizer.tex +++ b/docs/latex/wx/sizer.tex @@ -468,6 +468,12 @@ Sets the alignment of this wxSizerFlags to \tt{align}. Note that if this method is not called, the wxSizerFlags has no specified alignment. +\wxheading{See also} + +\helpref{Left}{wxsizerflagsleft},\\ +\helpref{Right}{wxsizerflagsright},\\ +\helpref{Centre}{wxsizerflagscentre} + \membersection{wxSizerFlags::Border}\label{wxsizerflagsborder} @@ -501,6 +507,17 @@ Sets the object of the wxSizerFlags to center itself in the area it is given. Sets the object of the wxSizerFlags to expand to fill as much area as it can. +\membersection{wxSizerFlags::Left}\label{wxsizerflagsleft} + +\func{wxSizerFlags\& }{Left}{\void} + +Aligns the object to the left, shortcut for \texttt{Align(wxALIGN\_LEFT)} + +\wxheading{See also} + +\helpref{Align}{wxsizerflagsalign} + + \membersection{wxSizerFlags::Proportion}\label{wxsizerflagsproportion} \func{wxSizerFlags\& }{Proportion}{\param{int }{proportion = 0}} @@ -508,4 +525,13 @@ Sets the object of the wxSizerFlags to expand to fill as much area as it can. Sets the proportion of this wxSizerFlags to \tt{proportion} +\membersection{wxSizerFlags::Right}\label{wxsizerflagsright} + +\func{wxSizerFlags\& }{Right}{\void} + +Aligns the object to the right, shortcut for \texttt{Align(wxALIGN\_RIGHT)} + +\wxheading{See also} + +\helpref{Align}{wxsizerflagsalign} diff --git a/include/wx/sizer.h b/include/wx/sizer.h index c245371191..78581ba30c 100644 --- a/include/wx/sizer.h +++ b/include/wx/sizer.h @@ -69,6 +69,8 @@ public: wxSizerFlags& Expand() { return Align(wxEXPAND); } wxSizerFlags& Centre() { return Align(wxCENTRE); } wxSizerFlags& Center() { return Centre(); } + wxSizerFlags& Left() { return Align(wxALIGN_LEFT); } + wxSizerFlags& Right() { return Align(wxALIGN_RIGHT); } wxSizerFlags& Border(int direction, int borderInPixels)