xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
QPaintDevice.xcsm
浏览该文件的文档.
1//xlang Source, Name:QPaintDevice.xcsm
2//Date: Sat Aug 13:38:22 2019
3package Qt{
4
5@SuppressWarnings public class QPaintDevice : QCore{
6 public enum PaintDeviceMetric {
7 PdmWidth = 1,
8 PdmHeight,
9 PdmWidthMM,
10 PdmHeightMM,
11 PdmNumColors,
12 PdmDepth,
13 PdmDpiX,
14 PdmDpiY,
15 PdmPhysicalDpiX,
16 PdmPhysicalDpiY,
17 PdmDevicePixelRatio,
18 PdmDevicePixelRatioScaled
19 };
20
21
22 public int devType() {
23 return QtXnl.widget_get_int_value(nativehandle, Constant.PAINTDEVICETYPE);
24 }
25
26 public bool paintingActive() {
27 return QtXnl.widget_get_bool_value(nativehandle, Constant.PAINTDEVICEACTIVE);
28 }
29
30
31 public int width() { return QtXnl.core_getintlong(nativehandle, Constant.PAINTDEVICEMETRICGET, PaintDeviceMetric.PdmWidth); }
32 public int height() { return QtXnl.core_getintlong(nativehandle, Constant.PAINTDEVICEMETRICGET, PaintDeviceMetric.PdmHeight); }
33 public int widthMM() { return QtXnl.core_getintlong(nativehandle, Constant.PAINTDEVICEMETRICGET, PaintDeviceMetric.PdmWidthMM); }
34 public int heightMM() { return QtXnl.core_getintlong(nativehandle, Constant.PAINTDEVICEMETRICGET, PaintDeviceMetric.PdmHeightMM); }
35 public int logicalDpiX() { return QtXnl.core_getintlong(nativehandle, Constant.PAINTDEVICEMETRICGET, PaintDeviceMetric.PdmDpiX); }
36 public int logicalDpiY() { return QtXnl.core_getintlong(nativehandle, Constant.PAINTDEVICEMETRICGET, PaintDeviceMetric.PdmDpiY); }
37 public int physicalDpiX() { return QtXnl.core_getintlong(nativehandle, Constant.PAINTDEVICEMETRICGET, PaintDeviceMetric.PdmPhysicalDpiX); }
38 public int physicalDpiY() { return QtXnl.core_getintlong(nativehandle, Constant.PAINTDEVICEMETRICGET, PaintDeviceMetric.PdmPhysicalDpiY); }
39 public int devicePixelRatio() { return QtXnl.core_getintlong(nativehandle, Constant.PAINTDEVICEMETRICGET, PaintDeviceMetric.PdmDevicePixelRatio); }
40 public double devicePixelRatioF() { return QtXnl.widget_get_double_value(nativehandle, Constant.PAINTDEVICEMETRICGETPRF); }
41 public double devicePixelRatioFScale(){ return QtXnl.widget_get_double_value(nativehandle, Constant.PAINTDEVICEPRFS);}
42
43 public int colorCount() { return QtXnl.core_getintlong(nativehandle, Constant.PAINTDEVICEMETRICGET,PaintDeviceMetric.PdmNumColors); }
44 public int depth() { return QtXnl.core_getintlong(nativehandle, Constant.PAINTDEVICEMETRICGET,PaintDeviceMetric.PdmDepth); }
45};
46
47};
double devicePixelRatioF()
double devicePixelRatioFScale()