Search Results for

    Show / Hide Table of Contents

    Class RefreshRequest

    Describes what needs to be redrawn on the next render cycle. Either the full viewport (Full) or a specific world-coordinate dirty rectangle. Accumulate consecutive requests with Accumulate(RefreshRequest).

    Inheritance
    object
    RefreshRequest
    Implements
    IEquatable<RefreshRequest>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui
    Assembly: Mapsui.dll
    Syntax
    public sealed record RefreshRequest : IEquatable<RefreshRequest>

    Constructors

    | Edit this page View Source

    RefreshRequest(MRect)

    Creates a partial refresh request for the given world-coordinate rectangle.

    Declaration
    public RefreshRequest(MRect dirtyRect)
    Parameters
    Type Name Description
    MRect dirtyRect

    Fields

    | Edit this page View Source

    Full

    Singleton representing a full-viewport refresh.

    Declaration
    public static readonly RefreshRequest Full
    Field Value
    Type Description
    RefreshRequest

    Properties

    | Edit this page View Source

    DirtyRect

    The world-coordinate region to redraw, or null when this is a full refresh.

    Declaration
    public MRect? DirtyRect { get; }
    Property Value
    Type Description
    MRect
    | Edit this page View Source

    IsFullRefresh

    Returns true when the entire viewport must be redrawn.

    Declaration
    public bool IsFullRefresh { get; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    Accumulate(RefreshRequest)

    Returns a RefreshRequest that covers the union of this request and other. If either is a full refresh the result is always Full; otherwise the dirty rectangles are joined.

    Declaration
    public RefreshRequest Accumulate(RefreshRequest other)
    Parameters
    Type Name Description
    RefreshRequest other
    Returns
    Type Description
    RefreshRequest

    Implements

    IEquatable<T>

    Extension Methods

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