xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
QBoxLayout.x
浏览该文件的文档.
1//xlang Source, Name:qt5/widgets/QBoxLayout.x
2//Date: Wed May 02:04:09 2020
3package Qt{
4 @SuppressWarnings public class QBoxLayout : QLayout{
5 public enum Direction { LeftToRight, RightToLeft, TopToBottom, BottomToTop,
6 Down = TopToBottom, Up = BottomToTop };
7 public QBoxLayout(){
8 }
9 public QBoxLayout(long h){
10 super(h);
11 }
12 public void addWidget(@NotNilptr QWidget w, int stretch){
13 QtXnl.widget_set_intlongint_value(nativehandle, Constant.LAYTOUADDWIDGET, w.nativehandle, stretch, 0);
14 }
15 public void addLayout(@NotNilptr QLayout w, int stretch){
16 QtXnl.widget_set_intlongint_value(nativehandle, Constant.LAYTOUADDLAYOUT, w.nativehandle, stretch, 0);
17 }
18 public void insertWidget(int index, @NotNilptr QWidget w, int stretch){
19 QtXnl.widget_set_intlongint_value(nativehandle, Constant.LAYTOUINSERTWIDGET, w.nativehandle, index, stretch);
20 }
21 public void insertLayout(int index, @NotNilptr QLayout w, int stretch){
22 QtXnl.widget_set_intlongint_value(nativehandle, Constant.LAYTOUINSERTLAYOUT, w.nativehandle, index, stretch);
23 }
24 public void addStretch(int n){
25 QtXnl.widget_set_vint_value(nativehandle, Constant.BOXADDSTRETCH, n);
26 }
27 public void addSpacing(int n){
28 QtXnl.widget_set_vint_value(nativehandle, Constant.BOXADDSPACING, n);
29 }
30 public void setSpacing(int n){
31 QtXnl.widget_set_vint_value(nativehandle, Constant.BOXSETSPACING, n);
32 }
33 public void setStretch(int id, int n){
34 QtXnl.widget_set_v2int_value(nativehandle, Constant.BOXSETSTRETCH, id, n);
35 }
36 public Direction direction() {
37 return (Direction)QtXnl.widget_get_int_value(nativehandle, Constant.LAYOUTGETDIRECTION);
38 }
39 public void setDirection(Direction d){
40 QtXnl.widget_set_vint_value(nativehandle, Constant.LAYOUTSETDIRECTION, d);
41 }
42 };
43};
QBoxLayout(long h)
Definition QBoxLayout.x:9
Direction direction()
Definition QBoxLayout.x:36
void insertLayout(int index, @NotNilptr QLayout w, int stretch)
Definition QBoxLayout.x:21
void addSpacing(int n)
Definition QBoxLayout.x:27
void addLayout(@NotNilptr QLayout w, int stretch)
Definition QBoxLayout.x:15
void setStretch(int id, int n)
Definition QBoxLayout.x:33
void setSpacing(int n)
Definition QBoxLayout.x:30
void addWidget(@NotNilptr QWidget w, int stretch)
Definition QBoxLayout.x:12
void addStretch(int n)
Definition QBoxLayout.x:24
void insertWidget(int index, @NotNilptr QWidget w, int stretch)
Definition QBoxLayout.x:18
void setDirection(Direction d)
Definition QBoxLayout.x:39