xlang
v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
xlibrarys
Qt5
Qt5
qt5
widgets
QMenu.xcsm
浏览该文件的文档.
1
package
Qt{
2
@SuppressWarnings public class QMenu : QWidget{
3
public QMenu(long handle){
4
super(handle);
5
}
6
public
QMenu
(){
7
}
8
public
bool
create
()
override
{
9
nativehandle = QtXnl.createQObject(QType.qtMenu,
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.qtMenu,
this
, parent.nativehandle);
18
if
(nativehandle == 0){
19
return
false
;
20
}
21
return
true
;
22
}
23
24
public
QAction
addAction
(
String
text){
25
return
(QAction)QtXnl.object_get_string(nativehandle,Constant.ADDACT, text);
26
}
27
28
public
QAction
addMenu
(QMenu menu){
29
return
(QAction)QtXnl.object_get_handle_string(nativehandle,Constant.QMENUADDMENU, menu.nativehandle, nilptr);
30
}
31
32
33
public
QMenu
addMenu
(
String
text){
34
return
(QMenu)QtXnl.object_get_string(nativehandle,Constant.ADDMENU, text);
35
}
36
37
public
QAction
menuAction
(){
38
return
(QAction)QtXnl.widget_get_object(nativehandle,Constant.MENUACTION);
39
}
40
41
public
QAction
insertMenu
(@NotNilptr QAction before,@NotNilptr QMenu menu){
42
return
(QAction) QtXnl.object_get_handle2(nativehandle, Constant.MENUINSMENU, before == nilptr ? 0l: before.nativehandle, menu.nativehandle);
43
}
44
45
public
QAction
addAction
(
String
icon,
String
text){
46
return
(QAction)QtXnl.object_get_string2(nativehandle, Constant.ADDACT, icon, text);
47
}
48
49
public
QAction
addAction
(
String
text, @NotNilptr QObject receiver,
String
member,
String
key){
50
return
(QAction)QtXnl.object_get_string_handle_string2(nativehandle, Constant.ADDACT, text, receiver.nativehandle, member, key);
51
}
52
53
public
QAction
addAction
(
String
text, @NotNilptr QObject receiver,
String
member,
int
key){
54
return
(QAction)QtXnl.object_get_string_handle_string_int(nativehandle, Constant.ADDACT, text, receiver.nativehandle, member, key);
55
}
56
57
public
QAction
addAction
(
String
icon,
String
text, @NotNilptr QObject receiver,
String
member,
String
shortcutKey){
58
return
(QAction)QtXnl.object_get_string2_handle_string2(nativehandle, Constant.ADDACT, icon, text, receiver.nativehandle, member, shortcutKey);
59
}
60
61
public
QAction
addAction
(
String
icon,
String
text, @NotNilptr QObject receiver,
String
member,
int
shortcutKey){
62
return
(QAction)QtXnl.object_get_string2_handle_string_int(nativehandle, Constant.ADDACT, icon, text, receiver.nativehandle, member, shortcutKey);
63
}
64
65
public
QAction
addSeparator
(){
66
return
(QAction) QtXnl.widget_get_object(nativehandle, Constant.MENUADDSEPAR);
67
}
68
69
public
void
setTitle
(
String
text){
70
QtXnl.widget_slot_string(nativehandle, Constant.QMENUSETTITLE, text);
71
}
72
public
String
getTitle
() {
73
return
(
String
)QtXnl.core_getString(nativehandle, Constant.QMENUGETTITLE);
74
}
75
76
public
void
exec
(
int
x,
int
y){
77
QtXnl.widget_set_v2int_value(nativehandle, Constant.QMENU_EXEC, x, y);
78
}
79
};
80
};
Qt.QMenu.insertMenu
QAction insertMenu(@NotNilptr QAction before,@NotNilptr QMenu menu)
Definition
QMenu.xcsm:41
Qt.QMenu.QMenu
QMenu()
Definition
QMenu.xcsm:6
Qt.QMenu.addAction
QAction addAction(String text)
Definition
QMenu.xcsm:24
Qt.QMenu.exec
void exec(int x,int y)
Definition
QMenu.xcsm:76
Qt.QMenu.addAction
QAction addAction(String icon, String text)
Definition
QMenu.xcsm:45
Qt.QMenu.addAction
QAction addAction(String text, @NotNilptr QObject receiver, String member, int key)
Definition
QMenu.xcsm:53
Qt.QMenu.getTitle
String getTitle()
Definition
QMenu.xcsm:72
Qt.QMenu.addSeparator
QAction addSeparator()
Definition
QMenu.xcsm:65
Qt.QMenu.create
bool create() override
Definition
QMenu.xcsm:8
Qt.QMenu.addMenu
QMenu addMenu(String text)
Definition
QMenu.xcsm:33
Qt.QMenu.create
bool create(@NotNilptr QWidget parent) override
Definition
QMenu.xcsm:16
Qt.QMenu.addAction
QAction addAction(String icon, String text, @NotNilptr QObject receiver, String member, int shortcutKey)
Definition
QMenu.xcsm:61
Qt.QMenu.addAction
QAction addAction(String text, @NotNilptr QObject receiver, String member, String key)
Definition
QMenu.xcsm:49
Qt.QMenu.menuAction
QAction menuAction()
Definition
QMenu.xcsm:37
Qt.QMenu.addAction
QAction addAction(String icon, String text, @NotNilptr QObject receiver, String member, String shortcutKey)
Definition
QMenu.xcsm:57
Qt.QMenu.addMenu
QAction addMenu(QMenu menu)
Definition
QMenu.xcsm:28
Qt.QMenu.setTitle
void setTitle(String text)
Definition
QMenu.xcsm:69
String
字符串类
Definition
BuiltinObjects.x:65
制作者
1.9.8