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

结构体

enum  Direction
 

Public 成员函数

额外继承的成员函数

详细描述

在文件 QBoxLayout.x4 行定义.

构造及析构函数说明

◆ QBoxLayout() [1/2]

QBoxLayout ( )

在文件 QBoxLayout.x7 行定义.

7 {
8 }

◆ QBoxLayout() [2/2]

QBoxLayout ( long  h)

在文件 QBoxLayout.x9 行定义.

9 {
10 super(h);
11 }

成员函数说明

◆ addLayout()

void addLayout ( @NotNilptr QLayout  w,
int  stretch 
)

在文件 QBoxLayout.x15 行定义.

15 {
16 QtXnl.widget_set_intlongint_value(nativehandle, Constant.LAYTOUADDLAYOUT, w.nativehandle, stretch, 0);
17 }

◆ addSpacing()

void addSpacing ( int  n)

在文件 QBoxLayout.x27 行定义.

27 {
28 QtXnl.widget_set_vint_value(nativehandle, Constant.BOXADDSPACING, n);
29 }

◆ addStretch()

void addStretch ( int  n)

在文件 QBoxLayout.x24 行定义.

24 {
25 QtXnl.widget_set_vint_value(nativehandle, Constant.BOXADDSTRETCH, n);
26 }

◆ addWidget()

void addWidget ( @NotNilptr QWidget  w,
int  stretch 
)

在文件 QBoxLayout.x12 行定义.

12 {
13 QtXnl.widget_set_intlongint_value(nativehandle, Constant.LAYTOUADDWIDGET, w.nativehandle, stretch, 0);
14 }

◆ direction()

Direction direction ( )

在文件 QBoxLayout.x36 行定义.

36 {
37 return (Direction)QtXnl.widget_get_int_value(nativehandle, Constant.LAYOUTGETDIRECTION);
38 }

◆ insertLayout()

void insertLayout ( int  index,
@NotNilptr QLayout  w,
int  stretch 
)

在文件 QBoxLayout.x21 行定义.

21 {
22 QtXnl.widget_set_intlongint_value(nativehandle, Constant.LAYTOUINSERTLAYOUT, w.nativehandle, index, stretch);
23 }

◆ insertWidget()

void insertWidget ( int  index,
@NotNilptr QWidget  w,
int  stretch 
)

在文件 QBoxLayout.x18 行定义.

18 {
19 QtXnl.widget_set_intlongint_value(nativehandle, Constant.LAYTOUINSERTWIDGET, w.nativehandle, index, stretch);
20 }

◆ setDirection()

void setDirection ( Direction  d)

在文件 QBoxLayout.x39 行定义.

39 {
40 QtXnl.widget_set_vint_value(nativehandle, Constant.LAYOUTSETDIRECTION, d);
41 }

◆ setSpacing()

void setSpacing ( int  n)

在文件 QBoxLayout.x30 行定义.

30 {
31 QtXnl.widget_set_vint_value(nativehandle, Constant.BOXSETSPACING, n);
32 }

◆ setStretch()

void setStretch ( int  id,
int  n 
)

在文件 QBoxLayout.x33 行定义.

33 {
34 QtXnl.widget_set_v2int_value(nativehandle, Constant.BOXSETSTRETCH, id, n);
35 }