◆ QTextDocument() [1/2]
◆ QTextDocument() [2/2]
| QTextDocument |
( |
long |
handle | ) |
|
◆ create() [1/2]
在文件 QTextDocument.x 第 12 行定义.
12 {
13 nativehandle = QtXnl.createQObject(QType.qtTextDocument,
this, 0);
14 if (nativehandle == 0){
15 return false;
16 }
17 return true;
18 }
◆ create() [2/2]
| bool create |
( |
String |
text, |
|
|
@NotNilptr QWidget |
parent |
|
) |
| |
在文件 QTextDocument.x 第 20 行定义.
20 {
22 if (nativehandle == 0){
23 return false;
24 }
25 return true;
26 }
long cdecl createQSObject(int type, Object xobj, long parent, String param)
引用了 QtXnl.createQSObject().
◆ print()
| void print |
( |
QPagedPaintDevice |
printer | ) |
|
在文件 QTextDocument.x 第 32 行定义.
32 {
33 QtXnl.widget_set_native_value(nativehandle, Constant.QTextDocument_print, printer.nativehandle);
34 }
◆ setDocumentMargin()
| void setDocumentMargin |
( |
double |
s | ) |
|
在文件 QTextDocument.x 第 36 行定义.
36 {
37 QtXnl.widget_set_double_value(nativehandle, Constant.QTextDocument_setDocumentMargin, s);
38 }
◆ setHtml()
在文件 QTextDocument.x 第 28 行定义.
28 {
29 QtXnl.widget_slot_string(nativehandle, Constant.QTextDocument_sethtml, html);
30 }
◆ setPageSize()
| void setPageSize |
( |
double |
w, |
|
|
double |
h |
|
) |
| |
在文件 QTextDocument.x 第 40 行定义.
40 {
41 QtXnl.long_double2(nativehandle, Constant.QTextDocument_SETPAGESIZE, w, h);
42 }