Back to Devexpress

dxDPIAwareUtils Unit

vcl-dxdpiawareutils.md

latest6.0 KB
Original Source

dxDPIAwareUtils Unit

Implements global utility methods related to scaling and DPI-awareness functionality.

Interfaces

NameDescription
IdxSourceDPIAllows a DevExpress control to obtain the source DPI value of an image stored within the image list or container.
IdxSourceSizeExposes the function returning the content-independent dimensions of an image container.

Enums

NameDescription
TdxProcessDpiAwarenessEnumerates process DPI awareness modes.

Methods

NameDescription
dxAssignFont(TFont,TFont,TdxScaleFactor,TdxScaleFactor)Assigns the source font’s settings to the target font and scales it.
dxAssignFont(TFont,TFont,Integer,Integer)
dxCheckDPIValue(Integer)Clamps the specified DPI value within the supported interval.
dxDefaultScaleFactorReturns the default desktop scale factor.
dxDesktopScaleFactorReturns the scale factor corresponding to the current monitor or system DPI.
dxGetCurrentDPI(TComponent)Returns the DPI value at which the specified form or component is displayed.
dxGetCurrentScaleFactor(TComponent,Integer,Integer)Returns the scale numerator and denominator used to display the specified form or component.
dxGetDesktopDPIReturns the current system or screen DPI value.
dxGetFontHeight(Integer,TdxScaleFactor)Calculates the font pixel height from the specified font size for a target scale factor.
dxGetFontHeightForDefaultDPI(Integer,Integer)Returns the font pixel height for the specified font size at the specified monitor DPI.
dxGetFormDPI(TCustomForm)Returns the specified form’s DPI.
dxGetMonitorDPI(THandle)
dxGetMonitorDPI(TPoint)Returns the specified monitor device’s DPI.
dxGetMonitorDPI(TMonitor)
dxGetProcessDpiAwarenessIdentifies the DPI awareness mode of the current or specified process.
dxGetProcessDpiAwareness(THandle,TdxProcessDpiAwareness)
dxGetProcessDpiAwareness(THandle)
dxGetScaleFactor(TObject)Returns the specified component’s scale factor.
dxGetScaleFactorForCanvas(TCanvas)Returns the scale factor for the specified canvas.
dxGetScaleFactorForInterface(IUnknown)Returns the specified component’s scale factor.
dxGetSystemDPIReturns the system DPI value.
dxGetSystemMetrics(Integer,TdxScaleFactor)Returns the specified system metric or configuration setting (in pixels).
dxGetTargetDPI(TComponent)Returns the target DPI for scaling the specified component (control).
dxIsProcessDPIAwareIdentifies if the current process is DPI-aware.
dxSetProcessDpiAwareness(TdxProcessDpiAwareness)Enables the specified DPI awareness mode for the current process.
dxSystemScaleFactorReturns the scale factor corresponding to the current system DPI.
dxTryGetScaleFactorForControl(TControl,TdxScaleFactor)Attempts to retrieve the specified control‘s scale factor.

Constants

NameDescription
dxDefaultDPISpecifies the default monitor DPI value.
dxDefaultDPIValuesDeprecated. Stores standard system DPI values.
dxMaxDPISpecifies the maximum supported monitor DPI value.
dxMinDPISpecifies the minimum supported monitor DPI value.