ITopLevelImpl Interface

Summary

Defines a platform-specific top-level window implementation.
graph BT Type-.->Interface0["IDisposable"] Type["ITopLevelImpl"] class Type type-node Implementing0["ITopLevelImplWithTextInputMethod"]-.->Type click Implementing0 "/api/Avalonia.Controls.Platform/ITopLevelImplWithTextInputMethod" Implementing1["IWindowBaseImpl"]-.->Type click Implementing1 "/api/Avalonia.Platform/IWindowBaseImpl" Implementing2["ITopLevelImplWithNativeMenuExporter"]-.->Type click Implementing2 "/api/Avalonia.Controls.Platform/ITopLevelImplWithNativeMenuExporter" Implementing3["IPopupImpl"]-.->Type click Implementing3 "/api/Avalonia.Platform/IPopupImpl" Implementing4["RemoteServerTopLevelImpl"]-.->Type click Implementing4 "/api/Avalonia.Controls.Remote.Server/RemoteServerTopLevelImpl" Implementing5["OffscreenTopLevelImplBase"]-.->Type click Implementing5 "/api/Avalonia.Controls.Embedding.Offscreen/OffscreenTopLevelImplBase" Implementing6["IWindowImpl"]-.->Type click Implementing6 "/api/Avalonia.Platform/IWindowImpl"

Syntax

public interface ITopLevelImpl : IDisposable

Remarks

This interface is the common interface to IWindowImpl and IPopupImpl.

Properties

Name Value Summary
AcrylicCompensationLevels AcrylicPlatformCompensationLevels
Gets the AcrylicPlatformCompensationLevels for the platform.
ClientSize Size
Gets the client size of the toplevel.
Closed Action
Gets or sets a method called when the underlying implementation is destroyed.
Input Action<RawInputEventArgs>
Gets or sets a method called when the toplevel receives input.
LostFocus Action
Gets or sets a method called when the input focus is lost.
MouseDevice IMouseDevice
Gets a mouse device associated with toplevel
Paint Action<Rect>
Gets or sets a method called when the toplevel requires painting.
RenderScaling double
Gets the scaling factor for the toplevel. This is used for rendering.
Resized Action<Size>
Gets or sets a method called when the toplevel is resized.
ScalingChanged Action<double>
Gets or sets a method called when the toplevel's scaling changes.
Surfaces IEnumerable<object>
The list of native platform's surfaces that can be consumed by rendering subsystems.
TransparencyLevel WindowTransparencyLevel
Gets the current WindowTransparencyLevel of the TopLevel.
TransparencyLevelChanged Action<WindowTransparencyLevel>
Gets or sets a method called when the toplevel's TransparencyLevel changes.

Methods

Name Value Summary
CreatePopup() IPopupImpl
CreateRenderer(IRenderRoot) IRenderer
Creates a new renderer for the toplevel.
Invalidate(Rect) void
Invalidates a rect on the toplevel.
PointToClient(PixelPoint) Point
Converts a point from screen to client coordinates.
PointToScreen(Point) PixelPoint
Converts a point from client to screen coordinates.
SetCursor(ICursorImpl) void
Sets the cursor associated with the toplevel.
SetInputRoot(IInputRoot) void
Sets the IInputRoot for the toplevel.
SetTransparencyLevelHint(WindowTransparencyLevel) void
Sets the WindowTransparencyLevel hint of the TopLevel.