xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Public 成员函数
QLayout类 参考
类 QLayout 继承关系图:
QObject QBoxLayout QGridLayout QHBoxLayout QVBoxLayout

Public 成员函数

额外继承的成员函数

详细描述

在文件 QLayout.x4 行定义.

构造及析构函数说明

◆ QLayout() [1/2]

QLayout ( )

在文件 QLayout.x5 行定义.

5 {
6
7 }

◆ QLayout() [2/2]

QLayout ( long  h)

在文件 QLayout.x9 行定义.

9 {
10 super(h);
11 }

成员函数说明

◆ addWidget()

void addWidget ( @NotNilptr QWidget  w)

在文件 QLayout.x30 行定义.

30 {
31 QtXnl.widget_set_intlongint_value(nativehandle, Constant.LAYTOUADDWIDGET2, w.nativehandle, 0, 0);
32 }

◆ clear()

void clear ( )

在文件 QLayout.x34 行定义.

34 {
35 QtXnl.widget_slot(nativehandle, Constant.CLEAR_LAYOUT);
36 }

◆ removeLayout()

void removeLayout ( @NotNilptr QLayout  layout)

在文件 QLayout.x22 行定义.

22 {
23 QtXnl.widget_set_native_value(nativehandle, Constant.LAYOUTREMOVELAYOUT, layout.nativehandle);
24 }

◆ removeWidget()

void removeWidget ( @NotNilptr QWidget  widget)

在文件 QLayout.x26 行定义.

26 {
27 QtXnl.widget_set_native_value(nativehandle, Constant.LAYOUTREMOVEWIDGET, widget.nativehandle);
28 }

◆ setContentsMargins()

void setContentsMargins ( int  l,
int  t,
int  r,
int  b 
)

在文件 QLayout.x13 行定义.

13 {
14 long x = (long)l << 32 | t, y = (long)r << 32 |b;
15 QtXnl.void_long2(nativehandle, Constant.QLAYOUT_SETCONTENTSMARGINS, x, y);
16 }

◆ setMargin()

void setMargin ( int  m)

在文件 QLayout.x18 行定义.

18 {
19 QtXnl.widget_set_vint_value(nativehandle, Constant.QLAYOUT_SETMARGIN, m);
20 }