xlang
v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
xlibrarys
Qt5
Qt5
qt5
widgets
QMenuBar.xcsm
浏览该文件的文档.
1
2
package
Qt{
3
@SuppressWarnings public class QMenuBar : QWidget{
4
public QMenuBar(){
5
6
}
7
8
public bool create()override {
9
nativehandle = QtXnl.createQObject(QType.qtMenuBar, this, 0);
10
if
(nativehandle == 0){
11
return
false
;
12
}
13
return
true
;
14
}
15
16
public
bool
create
(@NotNilptr QWidget parent)
override
{
17
nativehandle = QtXnl.createQObject(QType.qtMenuBar,
this
, parent.nativehandle);
18
if
(nativehandle == 0){
19
return
false
;
20
}
21
return
true
;
22
}
23
24
public
QMenuBar
(
long
handle){
25
super(handle);
26
}
27
28
public
QAction
addAction
(
String
action){
29
return
(QAction)QtXnl.object_get_string(nativehandle, Constant.ADDACTION, action);
30
}
31
32
public
QAction
addMenu
(@NotNilptr QMenu menu){
33
return
(QAction)QtXnl.object_get_handle(nativehandle, Constant.ADDMENU, menu.nativehandle);
34
}
35
36
public
QMenu
addMenu
(
String
icon,
String
title){
37
return
(QMenu)QtXnl.object_get_string2(nativehandle, Constant.ADDMENU, icon, title);
38
}
39
40
public
QAction
insertSeparator
(@NotNilptr QAction before){
41
return
(QAction) QtXnl.object_get_handle(nativehandle, Constant.INSSEP, before.nativehandle);
42
}
43
44
public
QAction
insertMenu
(@NotNilptr QAction before,@NotNilptr QMenu menu){
45
return
(QAction) QtXnl.object_get_handle2(nativehandle, Constant.MENUBARINSMENU, before == nilptr ? 0l: before.nativehandle, menu.nativehandle);
46
}
47
48
public
void
clear
(){
49
QtXnl.widget_slot(nativehandle, Constant.MENUBAR_CLR);
50
}
51
52
public
bool
isDefaultUp
(){
53
return
QtXnl.widget_get_bool_value(nativehandle, Constant.ISDEFUP);
54
}
55
56
public
bool
isNativeMenuBar
(){
57
return
QtXnl.widget_get_bool_value(nativehandle, Constant.ISNAMBR);
58
}
59
60
public
QAction
addSeparator
(){
61
return
(QAction) QtXnl.widget_get_object(nativehandle, Constant.MENUBARADDSEPAR);
62
}
63
};
64
};
Qt.QMenuBar.isNativeMenuBar
bool isNativeMenuBar()
Definition
QMenuBar.xcsm:56
Qt.QMenuBar.insertMenu
QAction insertMenu(@NotNilptr QAction before,@NotNilptr QMenu menu)
Definition
QMenuBar.xcsm:44
Qt.QMenuBar.addSeparator
QAction addSeparator()
Definition
QMenuBar.xcsm:60
Qt.QMenuBar.addMenu
QMenu addMenu(String icon, String title)
Definition
QMenuBar.xcsm:36
Qt.QMenuBar.addAction
QAction addAction(String action)
Definition
QMenuBar.xcsm:28
Qt.QMenuBar.create
bool create(@NotNilptr QWidget parent) override
Definition
QMenuBar.xcsm:16
Qt.QMenuBar.insertSeparator
QAction insertSeparator(@NotNilptr QAction before)
Definition
QMenuBar.xcsm:40
Qt.QMenuBar.addMenu
QAction addMenu(@NotNilptr QMenu menu)
Definition
QMenuBar.xcsm:32
Qt.QMenuBar.clear
void clear()
Definition
QMenuBar.xcsm:48
Qt.QMenuBar.isDefaultUp
bool isDefaultUp()
Definition
QMenuBar.xcsm:52
Qt.QMenuBar.QMenuBar
QMenuBar(long handle)
Definition
QMenuBar.xcsm:24
String
字符串类
Definition
BuiltinObjects.x:65
制作者
1.9.8