Class Widget
Assembly: Mapsui.dll
public abstract class Widget : IWidget, IWidgetTouchable
Properties
|
Edit this page
View Source
Declaration
public bool Enabled { get; set; }
Property Value
|
Edit this page
View Source
The hit box of the widget. This needs to be updated from the widget renderer.
Declaration
public MRect? Envelope { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public float MarginX { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public float MarginY { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public virtual bool Touchable { get; }
Property Value
|
Edit this page
View Source
Declaration
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
Methods
|
Edit this page
View Source
Declaration
public float CalculatePositionX(float left, float right, float width)
Parameters
Returns
|
Edit this page
View Source
Declaration
public float CalculatePositionY(float top, float bottom, float height)
Parameters
Returns
|
Edit this page
View Source
Function, which is called, when a Widget is hidden
Declaration
public abstract bool HandleWidgetTouched(Navigator navigator, MPoint position)
Parameters
Type |
Name |
Description |
Navigator |
navigator |
Navigator of MapControl
|
MPoint |
position |
Screen position
|
Returns
Type |
Description |
bool |
True, if the Widget had handled the touch event
|
Implements