◆ QPrinter() [1/3]
在文件 QPrinter.xcsm 第 59 行定义.
59 {
60 nativehandle = QtXnl.createQPObject(QType.qtPrinter,
this, 0, PrinterMode.ScreenResolution, 0, 0, 0);
61 if (nativehandle == 0) {
63 }
64 }
◆ QPrinter() [2/3]
◆ QPrinter() [3/3]
在文件 QPrinter.xcsm 第 71 行定义.
71 {
72 nativehandle = QtXnl.createQPObject(QType.qtPrinter,
this, 0, mode, 0, 0, 0);
73 if (nativehandle == 0) {
75 }
76 }
◆ devType()
◆ finalize()
◆ isNeedDelloc()
◆ newPage()
在文件 QPrinter.xcsm 第 94 行定义.
94 {
95 return QtXnl.widget_get_int_value(nativehandle, Constant.PAINTERNEWPAGE) != 0;
96 }
◆ outputFormat()
OutputFormat outputFormat |
( |
| ) |
|
在文件 QPrinter.xcsm 第 110 行定义.
110 {
111 return (OutputFormat)QtXnl.widget_get_int_value(nativehandle, Constant.PRINTERGETOUTFMT);
112 }
◆ resolution()
在文件 QPrinter.xcsm 第 123 行定义.
123 {
124 return QtXnl.widget_get_int_value(nativehandle, Constant.PAINTER_resolution);
125 }
◆ setFullPage()
void setFullPage |
( |
bool |
bf | ) |
|
◆ setNeedDelloc()
void setNeedDelloc |
( |
bool |
bd | ) |
|
|
protected |
◆ setOutputFormat()
void setOutputFormat |
( |
OutputFormat |
format | ) |
|
在文件 QPrinter.xcsm 第 98 行定义.
98 {
99 QtXnl.widget_set_vint_value(nativehandle, Constant.PRINTERSETOUTFMT, format);
100 }
◆ setPageMargins()
bool setPageMargins |
( |
double |
l, |
|
|
double |
t, |
|
|
double |
r, |
|
|
double |
b |
|
) |
| |
在文件 QPrinter.xcsm 第 114 行定义.
114 {
115 QtXnl.native_double4(l, t, r, b, nativehandle, Constant.PRINTER_SETPAGEMARGINS);
116 return true;
117 }
◆ setPageOrientation()
bool setPageOrientation |
( |
Orientation |
orientation | ) |
|
在文件 QPrinter.xcsm 第 119 行定义.
119 {
120 return QtXnl.widget_get_int_bool(nativehandle, Constant.PRINTER_SETPAGEORIENTATION, orientation);
121 }
◆ setPageSize()
void setPageSize |
( |
PageSize |
pagesize | ) |
|
在文件 QPrinter.xcsm 第 102 行定义.
102 {
103 QtXnl.widget_set_vint_value(nativehandle, Constant.PRINTERSETPAGESIZE, pagesize);
104 }
◆ setPrinterName()
void setPrinterName |
( |
String |
printerName | ) |
|
在文件 QPrinter.xcsm 第 78 行定义.
78 {
79 QtXnl.widget_slot_string(nativehandle, Constant.QPrinter_setPrinterName, printerName);
80 }
◆ setResolution()
bool setResolution |
( |
int |
reso | ) |
|
在文件 QPrinter.xcsm 第 127 行定义.
127 {
128 return QtXnl.widget_get_int_bool(nativehandle, Constant.PRINTER_setResolution, reso);
129 }
◆ need_delloc