Search Results for

    Show / Hide Table of Contents

    Class Widget

    Inheritance
    object
    Widget
    EditingWidget
    BoxWidget
    PerformanceWidget
    ScaleBarWidget
    TextBox
    ZoomInOutWidget
    Implements
    IWidget
    IWidgetTouchable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Widgets
    Assembly: Mapsui.dll
    Syntax
    public abstract class Widget : IWidget, IWidgetTouchable

    Properties

    | Edit this page View Source

    Enabled

    Declaration
    public 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
    public MRect? Envelope { get; set; }
    Property Value
    Type Description
    MRect
    | Edit this page View Source

    HorizontalAlignment

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

    MarginX

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

    MarginY

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

    Touchable

    Declaration
    public virtual bool Touchable { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    VerticalAlignment

    Declaration
    public VerticalAlignment VerticalAlignment { get; set; }
    Property Value
    Type Description
    VerticalAlignment

    Methods

    | Edit this page View Source

    CalculatePositionX(float, float, float)

    Declaration
    public float CalculatePositionX(float left, float right, float width)
    Parameters
    Type Name Description
    float left
    float right
    float width
    Returns
    Type Description
    float
    | Edit this page View Source

    CalculatePositionY(float, float, float)

    Declaration
    public float CalculatePositionY(float top, float bottom, float height)
    Parameters
    Type Name Description
    float top
    float bottom
    float height
    Returns
    Type Description
    float
    | Edit this page View Source

    HandleWidgetTouched(Navigator, MPoint)

    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

    IWidget
    IWidgetTouchable
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX