xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
QWindow.x
浏览该文件的文档.
1//xlang Source, Name:qt5/widgets/QWindow.x
2//Date: Fri Oct 19:51:08 2022
3
4
5package Qt{
6 @SuppressWarnings public class QWindow : QObject{
7 public QWindow() {
8 }
9
10 public QWindow(long h) {
11 super(h);
12 }
13
14 public bool create() {
15 nativehandle = QtXnl.createQObject(QType.qtWindow, this, 0);
16 if (nativehandle == 0) {
17 return false;
18 }
19 return true;
20 }
21
22 public bool create(@NotNilptr QWindow parent) {
23 nativehandle = QtXnl.createQObject(QType.qtWindow, this, parent.nativehandle);
24 if (nativehandle == 0) {
25 return false;
26 }
27 return true;
28 }
29
30 void finalize()override{
31 if (nativehandle != 0) {
32 runOnUi(new Runnable(){
33 long handle = nativehandle;
34 void run()override{
35 QtXnl.widget_slot(handle, Constant.NATIVEFINALIZE);
36 }
37 }/*, __file__ + ":" + __line__*/);
38 }
39 }
40 };
41};
bool create(@NotNilptr QWindow parent)
Definition QWindow.x:22
void finalize() override
Definition QWindow.x:30
bool create()
Definition QWindow.x:14