Package org.eclipse.swt.internal
Class Win32DPIUtils
java.lang.Object
org.eclipse.swt.internal.Win32DPIUtils
This class is used in the win32 implementation only to provide
 DPI related utility methods.
 
IMPORTANT: This class is not part of the public API for SWT. It is marked public only so that it can be shared within the packages provided by SWT. It is not available on all platforms, and should never be called from application code.
- Restriction:
- This class is not intended to be referenced by clients
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classAutoScale ImageDataProvider.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleanstatic float[]pixelToPoint(float[] size, int zoom) static float[]pixelToPoint(Drawable drawable, float[] size, int zoom) static floatpixelToPoint(Drawable drawable, float size, int zoom) static intpixelToPoint(Drawable drawable, int size, int zoom) static PointpixelToPoint(Drawable drawable, Point point, int zoom) static RectanglepixelToPoint(Drawable drawable, Rectangle rect, int zoom) static PointpixelToPoint(Point point, int zoom) static RectanglepixelToPoint(Rectangle rect, int zoom) static floatpointToPixel(float size, int zoom) static int[]pointToPixel(int[] pointArray, int zoom) static intpointToPixel(int size, int zoom) Auto-scale up int dimensions to match the given zoom levelstatic floatpointToPixel(Drawable drawable, float size, int zoom) static int[]pointToPixel(Drawable drawable, int[] pointArray, int zoom) static intpointToPixel(Drawable drawable, int size, int zoom) static PointpointToPixel(Drawable drawable, Point point, int zoom) static RectanglepointToPixel(Drawable drawable, Rectangle rect, int zoom) static PointpointToPixel(Point point, int zoom) static RectanglepointToPixel(Rectangle rect, int zoom) static <T> TrunWithProperDPIAwareness(Display display, Supplier<T> operation) static RectanglescaleBounds(Rectangle rect, int targetZoom, int currentZoom) Returns a new rectangle as per the scaleFactor.static voidstatic booleansetDPIAwareness(int desiredDpiAwareness) static voidsetMonitorSpecificScaling(boolean activate) 
- 
Constructor Details- 
Win32DPIUtilspublic Win32DPIUtils()
 
- 
- 
Method Details- 
setDPIAwarenesspublic static boolean setDPIAwareness(int desiredDpiAwareness) 
- 
runWithProperDPIAwareness
- 
pixelToPointpublic static float[] pixelToPoint(float[] size, int zoom) 
- 
pixelToPoint
- 
pixelToPoint
- 
pixelToPoint
- 
pixelToPoint
- 
pixelToPoint
- 
pixelToPoint
- 
pixelToPoint
- 
scaleBoundsReturns a new rectangle as per the scaleFactor.
- 
pointToPixelpublic static int[] pointToPixel(int[] pointArray, int zoom) 
- 
pointToPixel
- 
pointToPixelpublic static int pointToPixel(int size, int zoom) Auto-scale up int dimensions to match the given zoom level
- 
pointToPixel
- 
pointToPixelpublic static float pointToPixel(float size, int zoom) 
- 
pointToPixel
- 
pointToPixel
- 
pointToPixel
- 
pointToPixel
- 
pointToPixel
- 
setMonitorSpecificScalingpublic static void setMonitorSpecificScaling(boolean activate) 
- 
setAutoScaleForMonitorSpecificScalingpublic static void setAutoScaleForMonitorSpecificScaling()
- 
isMonitorSpecificScalingActivepublic static boolean isMonitorSpecificScalingActive()
 
-