Search Results for

    Show / Hide Table of Contents

    Interface IWidget

    Namespace: Mapsui.Widgets
    Assembly: Mapsui.dll
    Syntax
    public interface IWidget

    Properties

    | Edit this page View Source

    Enabled

    Is Widget visible on screen

    Declaration
    bool Enabled { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    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
    | Edit this page View Source

    Height

    Height of Widget

    Declaration
    double Height { get; set; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    HorizontalAlignment

    Horizontal alignment of Widget

    Declaration
    HorizontalAlignment HorizontalAlignment { get; set; }
    Property Value
    Type Description
    HorizontalAlignment
    | Edit this page View Source

    InputAreaType

    Type of area used for manipulation (e.g. touch, mouse) input events.

    Declaration
    InputAreaType InputAreaType { get; }
    Property Value
    Type Description
    InputAreaType
    | Edit this page View Source

    InputTransparent

    Declaration
    bool InputTransparent { get; init; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Margin

    Margin outside of the widget

    Declaration
    MRect Margin { get; set; }
    Property Value
    Type Description
    MRect
    | Edit this page View Source

    Position

    Position for absolute alignment

    Declaration
    MPoint Position { get; set; }
    Property Value
    Type Description
    MPoint
    | Edit this page View Source

    VerticalAlignment

    Vertical alignment of Widget

    Declaration
    VerticalAlignment VerticalAlignment { get; set; }
    Property Value
    Type Description
    VerticalAlignment
    | Edit this page View Source

    Width

    Width of Widget

    Declaration
    double Width { get; set; }
    Property Value
    Type Description
    double

    Methods

    | Edit this page View Source

    OnPointerMoved(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

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    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 Source

    PointerMoved

    Event which is called if widget is moved.

    Declaration
    event EventHandler<WidgetEventArgs>? PointerMoved
    Event Type
    Type Description
    EventHandler<WidgetEventArgs>
    | Edit this page View Source

    PointerPressed

    Event which is called if widget is pressed.

    Declaration
    event EventHandler<WidgetEventArgs>? PointerPressed
    Event Type
    Type Description
    EventHandler<WidgetEventArgs>
    | Edit this page View Source

    PointerReleased

    Event which is called if widget is released.

    Declaration
    event EventHandler<WidgetEventArgs>? PointerReleased
    Event Type
    Type Description
    EventHandler<WidgetEventArgs>
    | Edit this page View Source

    Tapped

    Event which is called if widget is tapped.

    Declaration
    event EventHandler<WidgetEventArgs>? Tapped
    Event Type
    Type Description
    EventHandler<WidgetEventArgs>

    Extension Methods

    DisposableExtension.DisposeIfDisposable(object?)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX