Summary
Defines a platform-specific top-level window implementation.
- Namespace
- Avalonia
.Platform - Interfaces
-
- IDisposable
- Implementing Types
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 |
---|---|---|
Acrylic |
Acrylic |
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 |
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 |
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 |
Gets or sets a method called when the toplevel is resized.
|
ScalingChanged | Action |
Gets or sets a method called when the toplevel's scaling changes.
|
Surfaces | IEnumerable |
The list of native platform's surfaces that can be consumed by rendering subsystems.
|
TransparencyLevel | Window |
Gets the current
WindowTransparencyLevel of the TopLevel.
|
Transparency |
Action |
Gets or sets a method called when the toplevel's TransparencyLevel changes.
|
Methods
Name | Value | Summary |
---|---|---|
CreatePopup |
IPopupImpl | |
CreateRenderer |
IRenderer |
Creates a new renderer for the toplevel.
|
Invalidate |
void |
Invalidates a rect on the toplevel.
|
PointToClient |
Point |
Converts a point from screen to client coordinates.
|
PointToScreen |
PixelPoint |
Converts a point from client to screen coordinates.
|
SetCursor |
void |
Sets the cursor associated with the toplevel.
|
SetInputRoot |
void |
Sets the
IInputRoot for the toplevel.
|
Set |
void |
Sets the
WindowTransparencyLevel hint of the TopLevel.
|