IntelligenceX

API Reference

Class

PopupPlacementMath

Namespace IntelligenceX.Presentation
Assembly IntelligenceX
Modifiers static

Helper methods for converting monitor pixel coordinates into device-independent popup placement.

Inheritance

  • Object
  • PopupPlacementMath

Methods

public static PopupBounds ConvertPixelBoundsToDips(Double leftPixels, Double topPixels, Double rightPixels, Double bottomPixels, Double dpiX, Double dpiY) #
Returns: PopupBounds

Converts monitor work-area bounds from device pixels into device-independent units.

Parameters

leftPixels System.Double requiredposition: 0
topPixels System.Double requiredposition: 1
rightPixels System.Double requiredposition: 2
bottomPixels System.Double requiredposition: 3
dpiX System.Double requiredposition: 4
dpiY System.Double requiredposition: 5
public static PopupPoint ConvertPixelsToDips(Double xPixels, Double yPixels, Double dpiX, Double dpiY) #
Returns: PopupPoint

Converts a monitor-relative point from device pixels into device-independent units.

Parameters

xPixels System.Double requiredposition: 0
yPixels System.Double requiredposition: 1
dpiX System.Double requiredposition: 2
dpiY System.Double requiredposition: 3
public static PopupPlacement PlaceNearCursor(PopupBounds workArea, Double popupWidth, Double popupHeight, Double cursorXDips, Double cursorYDips) #
Returns: PopupPlacement

Computes a popup placement near the cursor while clamping the result into the visible work area.

Parameters

workArea IntelligenceX.Presentation.PopupBounds requiredposition: 0
popupWidth System.Double requiredposition: 1
popupHeight System.Double requiredposition: 2
cursorXDips System.Double requiredposition: 3
cursorYDips System.Double requiredposition: 4