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).
Implements
Inherited Members
Namespace: Mapsui
Assembly: Mapsui.dll
Syntax
public sealed record RefreshRequest : IEquatable<RefreshRequest>
Constructors
| Edit this page View SourceRefreshRequest(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 SourceFull
Singleton representing a full-viewport refresh.
Declaration
public static readonly RefreshRequest Full
Field Value
| Type | Description |
|---|---|
| RefreshRequest |
Properties
| Edit this page View SourceDirtyRect
The world-coordinate region to redraw, or null when this is a full refresh.
Declaration
public MRect? DirtyRect { get; }
Property Value
| Type | Description |
|---|---|
| MRect |
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 SourceAccumulate(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 |