5@SuppressWarnings public class QPaintDevice : QCore{
6 public enum PaintDeviceMetric {
18 PdmDevicePixelRatioScaled
23 return QtXnl.widget_get_int_value(nativehandle, Constant.PAINTDEVICETYPE);
27 return QtXnl.widget_get_bool_value(nativehandle, Constant.PAINTDEVICEACTIVE);
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);}
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); }