xlang
v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
xlibrarys
Qt5
Qt5
qt5
widgets
QToolBar.xcsm
浏览该文件的文档.
1
//xlang Source, Name:QToolBar.xcsm
2
//Date: Tue Nov 08:54:04 2018
3
4
package
Qt{
5
@SuppressWarnings public class QToolBar : QWidget{
6
public QToolBar(){
7
8
}
9
10
public QToolBar(long handle){
11
super(handle);
12
}
13
public
bool
create
()
override
{
14
nativehandle = QtXnl.createQObject(QType.qtToolbar,
this
, 0);
15
if
(nativehandle == 0){
16
return
false
;
17
}
18
return
true
;
19
}
20
21
public
bool
create
(@NotNilptr QWidget parent)
override
{
22
nativehandle = QtXnl.createQObject(QType.qtToolbar,
this
, parent.nativehandle);
23
if
(nativehandle == 0){
24
return
false
;
25
}
26
return
true
;
27
}
28
29
public
void
addWidget
(@NotNilptr QWidget widget){
30
QtXnl.widget_set_intlongint_value(nativehandle, Constant.TOOLBARADDWIDGET, widget.nativehandle, 0, 0);
31
}
32
33
public
void
insertWidget
(@NotNilptr QAction action,@NotNilptr QWidget widget){
34
QtXnl.void_long2(nativehandle, Constant.TOOLBARINSWIDGET, action.nativehandle, widget.nativehandle);
35
}
36
37
public
void
addAction
(@NotNilptr QAction action)
override
{
38
QtXnl.widget_set_intlongint_value(nativehandle, Constant.TOOLBARADDACTION, action.nativehandle, 0, 0);
39
}
40
41
public
void
removeAction
(@NotNilptr QAction action){
42
QtXnl.widget_set_intlongint_value(nativehandle, Constant.TOOLBARREMACTION, action.nativehandle, 0, 0);
43
}
44
45
public
QAction
addSeparator
(){
46
return
(QAction) QtXnl.widget_get_object(nativehandle, Constant.TOOLBARADDSEPAR);
47
}
48
49
public
void
setIconSize
(
int
cx,
int
cy){
50
QtXnl.widget_set_v2int_value(nativehandle, Constant.SETICONSIZE, cx, cy);
51
}
52
};
53
};
Qt.QToolBar.insertWidget
void insertWidget(@NotNilptr QAction action,@NotNilptr QWidget widget)
Definition
QToolBar.xcsm:33
Qt.QToolBar.setIconSize
void setIconSize(int cx, int cy)
Definition
QToolBar.xcsm:49
Qt.QToolBar.addWidget
void addWidget(@NotNilptr QWidget widget)
Definition
QToolBar.xcsm:29
Qt.QToolBar.addSeparator
QAction addSeparator()
Definition
QToolBar.xcsm:45
Qt.QToolBar.create
bool create() override
Definition
QToolBar.xcsm:13
Qt.QToolBar.addAction
void addAction(@NotNilptr QAction action) override
Definition
QToolBar.xcsm:37
Qt.QToolBar.create
bool create(@NotNilptr QWidget parent) override
Definition
QToolBar.xcsm:21
Qt.QToolBar.removeAction
void removeAction(@NotNilptr QAction action)
Definition
QToolBar.xcsm:41
制作者
1.9.8