IWindowImpl Interface

Defines a platform-specific window implementation.

Definition

Namespace: Avalonia.Platform
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
[UnstableAttribute]
public interface IWindowImpl : IWindowBaseImpl, 
	ITopLevelImpl, IOptionalFeatureProvider, IDisposable
Implements
IOptionalFeatureProvider, ITopLevelImpl, IWindowBaseImpl, IDisposable

Properties

AcrylicCompensationLevels Gets the AcrylicPlatformCompensationLevels for the platform.
(Inherited from ITopLevelImpl)
Activated Gets or sets a method called when the window is activated (receives focus).
(Inherited from IWindowBaseImpl)
ClientSize Gets the client size of the toplevel.
(Inherited from ITopLevelImpl)
Closed Gets or sets a method called when the underlying implementation is destroyed.
(Inherited from ITopLevelImpl)
Closing Gets or sets a method called before the underlying implementation is destroyed. Return true to prevent the underlying implementation from closing.
Compositor Gets the compositor that's compatible with the toplevel
(Inherited from ITopLevelImpl)
Deactivated Gets or sets a method called when the window is deactivated (loses focus).
(Inherited from IWindowBaseImpl)
DesktopScaling Gets the scaling factor for Window positioning and sizing.
(Inherited from ITopLevelImpl)
ExtendClientAreaToDecorationsChanged Gets or Sets an action that is called whenever one of the extend client area properties changed.
ExtendedMargins Gets a thickness that describes the amount each side of the non-client area extends into the client area. It includes the titlebar.
FrameSize Gets the total size of the toplevel, excluding shadows.
(Inherited from IWindowBaseImpl)
GotInputWhenDisabled Called when a disabled window received input. Can be used to activate child windows.
Handle Get the platform handle.
(Inherited from ITopLevelImpl)
Input Gets or sets a method called when the toplevel receives input.
(Inherited from ITopLevelImpl)
IsClientAreaExtendedToDecorations Gets a value to indicate if the platform was able to extend client area to non-client area.
LostFocus Gets or sets a method called when the input focus is lost.
(Inherited from ITopLevelImpl)
MaxAutoSizeHint Gets a maximum client size hint for an auto-sizing window, in device-independent pixels.
(Inherited from IWindowBaseImpl)
NeedsManagedDecorations Gets a flag that indicates if Managed decorations i.e. caption buttons are required. This property is used when IsClientAreaExtendedToDecorations is set.
OffScreenMargin Gets a thickness that describes the margin around the window that is offscreen. This may happen when a window is maximized and IsClientAreaExtendedToDecorations is set.
Paint Gets or sets a method called when the toplevel requires painting.
(Inherited from ITopLevelImpl)
Position Gets the position of the window in device pixels.
(Inherited from IWindowBaseImpl)
PositionChanged Gets or sets a method called when the window's position changes.
(Inherited from IWindowBaseImpl)
RenderScaling Gets the scaling factor for the toplevel. This is used for rendering.
(Inherited from ITopLevelImpl)
Resized Gets or sets a method called when the toplevel is resized.
(Inherited from ITopLevelImpl)
ScalingChanged Gets or sets a method called when the toplevel's scaling changes.
(Inherited from ITopLevelImpl)
Surfaces The list of native platform's surfaces that can be consumed by rendering subsystems.
(Inherited from ITopLevelImpl)
TransparencyLevel Gets the current WindowTransparencyLevel of the TopLevel.
(Inherited from ITopLevelImpl)
TransparencyLevelChanged Gets or sets a method called when the toplevel's TransparencyLevel changes.
(Inherited from ITopLevelImpl)
WindowState Gets or sets the minimized/maximized state of the window.
WindowStateChanged Gets or sets a method called when the minimized/maximized state of the window changes.

Methods

Activate Activates the window.
(Inherited from IWindowBaseImpl)
BeginMoveDrag(PointerPressedEventArgs) Starts moving a window with left button being held. Should be called from left mouse button press event handler.
BeginResizeDrag(WindowEdge, PointerPressedEventArgs) Starts resizing a window. This function is used if an application has window resizing controls. Should be called from left mouse button press event handler
CanResize(Boolean) Enables or disables resizing of the window
CreatePopup
(Inherited from ITopLevelImpl)
DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable)
GetWindowsZOrder(SpanWindow, SpanInt64) Fills zOrder with numbers that represent the relative order of the windows in the z-order. The topmost window should have the highest number. Both the windows and zOrder lists are expected to be the same length.
Hide Hides the window.
(Inherited from IWindowBaseImpl)
Move(PixelPoint) Sets the client size of the top level.
PointToClient(PixelPoint) Converts a point from screen to client coordinates.
(Inherited from ITopLevelImpl)
PointToScreen(Point) Converts a point from client to screen coordinates.
(Inherited from ITopLevelImpl)
Resize(Size, WindowResizeReason) Sets the client size of the top level.
SetCursor(ICursorImpl) Sets the cursor associated with the toplevel.
(Inherited from ITopLevelImpl)
SetEnabled(Boolean) Disables the window for example when a modal dialog is open.
SetExtendClientAreaChromeHints(ExtendClientAreaChromeHints) Sets hints that configure how the client area extends.
SetExtendClientAreaTitleBarHeightHint(Double) Sets how big the non-client titlebar area should be.
SetExtendClientAreaToDecorationsHint(Boolean) Sets if the ClientArea is extended into the non-client area.
SetFrameThemeVariant(PlatformThemeVariant) Sets the PlatformThemeVariant on the frame if it should be dark or light. Also applies for the mobile status bar.
(Inherited from ITopLevelImpl)
SetIcon(IWindowIconImpl) Sets the icon of this window.
SetInputRoot(IInputRoot) Sets the IInputRoot for the toplevel.
(Inherited from ITopLevelImpl)
SetMinMaxSize(Size, Size) Minimum width of the window.
SetParent(IWindowImpl) Sets the parent of the window.
SetSystemDecorations(SystemDecorations) Enables or disables system window decorations (title bar, buttons, etc)
SetTitle(String) Sets the title of the window.
SetTopmost(Boolean) Sets whether this window appears on top of all other windows
(Inherited from IWindowBaseImpl)
SetTransparencyLevelHint(IReadOnlyListWindowTransparencyLevel) Sets the WindowTransparencyLevel hint of the TopLevel.
(Inherited from ITopLevelImpl)
Show(Boolean, Boolean) Shows the window.
(Inherited from IWindowBaseImpl)
ShowTaskbarIcon(Boolean) Enables or disables the taskbar icon
TryGetFeature(Type)
(Inherited from IOptionalFeatureProvider)

See Also