4 @SuppressWarnings public class QBoxLayout : QLayout{
5 public enum Direction { LeftToRight, RightToLeft, TopToBottom, BottomToTop,
6 Down = TopToBottom, Up = BottomToTop };
12 public void addWidget(@NotNilptr QWidget w,
int stretch){
13 QtXnl.widget_set_intlongint_value(nativehandle, Constant.LAYTOUADDWIDGET, w.nativehandle, stretch, 0);
15 public void addLayout(@NotNilptr QLayout w,
int stretch){
16 QtXnl.widget_set_intlongint_value(nativehandle, Constant.LAYTOUADDLAYOUT, w.nativehandle, stretch, 0);
18 public void insertWidget(
int index, @NotNilptr QWidget w,
int stretch){
19 QtXnl.widget_set_intlongint_value(nativehandle, Constant.LAYTOUINSERTWIDGET, w.nativehandle, index, stretch);
21 public void insertLayout(
int index, @NotNilptr QLayout w,
int stretch){
22 QtXnl.widget_set_intlongint_value(nativehandle, Constant.LAYTOUINSERTLAYOUT, w.nativehandle, index, stretch);
25 QtXnl.widget_set_vint_value(nativehandle, Constant.BOXADDSTRETCH, n);
28 QtXnl.widget_set_vint_value(nativehandle, Constant.BOXADDSPACING, n);
31 QtXnl.widget_set_vint_value(nativehandle, Constant.BOXSETSPACING, n);
34 QtXnl.widget_set_v2int_value(nativehandle, Constant.BOXSETSTRETCH,
id, n);
37 return (Direction)QtXnl.widget_get_int_value(nativehandle, Constant.LAYOUTGETDIRECTION);
40 QtXnl.widget_set_vint_value(nativehandle, Constant.LAYOUTSETDIRECTION, d);
void insertLayout(int index, @NotNilptr QLayout w, int stretch)
void addLayout(@NotNilptr QLayout w, int stretch)
void setStretch(int id, int n)
void addWidget(@NotNilptr QWidget w, int stretch)
void insertWidget(int index, @NotNilptr QWidget w, int stretch)
void setDirection(Direction d)