Class WidgetTouch
Inherited Members
Namespace: Mapsui.Widgets
Assembly: Mapsui.dll
Syntax
public static class WidgetTouch
Methods
| Edit this page View SourceGetTouchedWidget(MPoint, MPoint, IEnumerable<IWidget>)
Gets the widget selected by touch positions
Declaration
public static IEnumerable<IWidget> GetTouchedWidget(MPoint screenPosition, MPoint startScreenPosition, IEnumerable<IWidget> widgets)
Parameters
Type | Name | Description |
---|---|---|
MPoint | screenPosition | The screen position in device independent units (or DIP or DP) |
MPoint | startScreenPosition | The start screen position in device independent units (or DIP or DP) |
IEnumerable<IWidget> | widgets | The widgets to select from. |
Returns
Type | Description |
---|---|
IEnumerable<IWidget> | Returns the first Widget in the list that contains the screenPosition within it's Envelope. Returns null if there are none. |