Interface IWidget
Namespace: Mapsui.Widgets
Assembly: Mapsui.dll
Syntax
public interface IWidget
Properties
| Edit this page View SourceEnabled
Is Widget visible on screen
Declaration
bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Envelope
The hit box of the widget. This needs to be updated from the widget renderer.
Declaration
MRect? Envelope { get; set; }
Property Value
| Type | Description |
|---|---|
| MRect |
Height
Height of Widget
Declaration
double Height { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
HorizontalAlignment
Horizontal alignment of Widget
Declaration
HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
| Type | Description |
|---|---|
| HorizontalAlignment |
InputAreaType
Type of area used for manipulation (e.g. touch, mouse) input events.
Declaration
InputAreaType InputAreaType { get; }
Property Value
| Type | Description |
|---|---|
| InputAreaType |
InputTransparent
Declaration
bool InputTransparent { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
Margin
Margin outside of the widget
Declaration
MRect Margin { get; set; }
Property Value
| Type | Description |
|---|---|
| MRect |
Position
Position for absolute alignment
Declaration
MPoint Position { get; set; }
Property Value
| Type | Description |
|---|---|
| MPoint |
VerticalAlignment
Vertical alignment of Widget
Declaration
VerticalAlignment VerticalAlignment { get; set; }
Property Value
| Type | Description |
|---|---|
| VerticalAlignment |
Width
Width of Widget
Declaration
double Width { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
| Edit this page View SourceOnPointerMoved(WidgetEventArgs)
Function, which handles the widget pointer moved event
Declaration
void OnPointerMoved(WidgetEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| WidgetEventArgs | e | Arguments for this widget touch |
OnPointerPressed(WidgetEventArgs)
Function, which handles the widget pointer pressed event
Declaration
void OnPointerPressed(WidgetEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| WidgetEventArgs | e | Arguments for this widget touch |
OnPointerReleased(WidgetEventArgs)
Function, which handles the widget pointer released event
Declaration
void OnPointerReleased(WidgetEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| WidgetEventArgs | e | Arguments for this widget touch |
OnTapped(WidgetEventArgs)
Function, which handles the widget tapped event
Declaration
void OnTapped(WidgetEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| WidgetEventArgs | e | Arguments for this widget touch |
Events
| Edit this page View SourcePointerMoved
Event which is called if widget is moved.
Declaration
event EventHandler<WidgetEventArgs>? PointerMoved
Event Type
| Type | Description |
|---|---|
| EventHandler<WidgetEventArgs> |
PointerPressed
Event which is called if widget is pressed.
Declaration
event EventHandler<WidgetEventArgs>? PointerPressed
Event Type
| Type | Description |
|---|---|
| EventHandler<WidgetEventArgs> |
PointerReleased
Event which is called if widget is released.
Declaration
event EventHandler<WidgetEventArgs>? PointerReleased
Event Type
| Type | Description |
|---|---|
| EventHandler<WidgetEventArgs> |
Tapped
Event which is called if widget is tapped.
Declaration
event EventHandler<WidgetEventArgs>? Tapped
Event Type
| Type | Description |
|---|---|
| EventHandler<WidgetEventArgs> |