xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
QLayout.x
浏览该文件的文档.
1//xlang Source, Name:QLayout.x
2//Date: Wed May 02:09:01 2020
3package Qt{
4 @SuppressWarnings public class QLayout : QObject{
5 public QLayout(){
6
7 }
8
9 public QLayout(long h){
10 super(h);
11 }
12
13 public void setContentsMargins(int l,int t,int r, int b){
14 long x = (long)l << 32 | t, y = (long)r << 32 |b;
15 QtXnl.void_long2(nativehandle, Constant.QLAYOUT_SETCONTENTSMARGINS, x, y);
16 }
17
18 public void setMargin(int m){
19 QtXnl.widget_set_vint_value(nativehandle, Constant.QLAYOUT_SETMARGIN, m);
20 }
21
22 public void removeLayout(@NotNilptr QLayout layout){
23 QtXnl.widget_set_native_value(nativehandle, Constant.LAYOUTREMOVELAYOUT, layout.nativehandle);
24 }
25
26 public void removeWidget(@NotNilptr QWidget widget){
27 QtXnl.widget_set_native_value(nativehandle, Constant.LAYOUTREMOVEWIDGET, widget.nativehandle);
28 }
29
30 public void addWidget(@NotNilptr QWidget w){
31 QtXnl.widget_set_intlongint_value(nativehandle, Constant.LAYTOUADDWIDGET2, w.nativehandle, 0, 0);
32 }
33
34 public void clear(){
35 QtXnl.widget_slot(nativehandle, Constant.CLEAR_LAYOUT);
36 }
37 };
38};
void setContentsMargins(int l,int t,int r, int b)
Definition QLayout.x:13
void removeWidget(@NotNilptr QWidget widget)
Definition QLayout.x:26
void setMargin(int m)
Definition QLayout.x:18
void addWidget(@NotNilptr QWidget w)
Definition QLayout.x:30
void clear()
Definition QLayout.x:34
void removeLayout(@NotNilptr QLayout layout)
Definition QLayout.x:22