|
|
|
@ -68,6 +68,34 @@ namespace Avalonia.Platform |
|
|
|
/// </summary>
|
|
|
|
Func<bool> Closing { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets a value to indicate if the platform was able to extend client area to non-client area.
|
|
|
|
/// </summary>
|
|
|
|
bool IsClientAreaExtendedToDecorations { get; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or Sets an action that is called whenever one of the extend client area properties changed.
|
|
|
|
/// </summary>
|
|
|
|
Action<bool> ExtendClientAreaToDecorationsChanged { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets a flag that indicates if Managed decorations i.e. caption buttons are required.
|
|
|
|
/// This property is used when <see cref="IsClientAreaExtendedToDecorations"/> is set.
|
|
|
|
/// </summary>
|
|
|
|
bool NeedsManagedDecorations { get; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets a thickness that describes the amount each side of the non-client area extends into the client area.
|
|
|
|
/// It includes the titlebar.
|
|
|
|
/// </summary>
|
|
|
|
Thickness ExtendedMargins { get; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets a thickness that describes the margin around the window that is offscreen.
|
|
|
|
/// This may happen when a window is maximized and <see cref="IsClientAreaExtendedToDecorations"/> is set.
|
|
|
|
/// </summary>
|
|
|
|
Thickness OffScreenMargin { get; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Starts moving a window with left button being held. Should be called from left mouse button press event handler.
|
|
|
|
/// </summary>
|
|
|
|
@ -99,12 +127,7 @@ namespace Avalonia.Platform |
|
|
|
/// Sets if the ClientArea is extended into the non-client area.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="extendIntoClientAreaHint">true to enable, false to disable</param>
|
|
|
|
void SetExtendClientAreaToDecorationsHint(bool extendIntoClientAreaHint); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets a value to indicate if the platform was able to extend client area to non-client area.
|
|
|
|
/// </summary>
|
|
|
|
bool IsClientAreaExtendedToDecorations { get; } |
|
|
|
void SetExtendClientAreaToDecorationsHint(bool extendIntoClientAreaHint); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Sets hints that configure how the client area extends.
|
|
|
|
@ -116,29 +139,6 @@ namespace Avalonia.Platform |
|
|
|
/// Sets how big the non-client titlebar area should be.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="titleBarHeight">-1 for platform default, otherwise the height in DIPs.</param>
|
|
|
|
void SetExtendClientAreaTitleBarHeightHint(double titleBarHeight); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or Sets an action that is called whenever one of the extend client area properties changed.
|
|
|
|
/// </summary>
|
|
|
|
Action<bool> ExtendClientAreaToDecorationsChanged { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets a flag that indicates if Managed decorations i.e. caption buttons are required.
|
|
|
|
/// This property is used when <see cref="IsClientAreaExtendedToDecorations"/> is set.
|
|
|
|
/// </summary>
|
|
|
|
bool NeedsManagedDecorations { get; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets a thickness that describes the amount each side of the non-client area extends into the client area.
|
|
|
|
/// It includes the titlebar.
|
|
|
|
/// </summary>
|
|
|
|
Thickness ExtendedMargins { get; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets a thickness that describes the margin around the window that is offscreen.
|
|
|
|
/// This may happen when a window is maximized and <see cref="IsClientAreaExtendedToDecorations"/> is set.
|
|
|
|
/// </summary>
|
|
|
|
Thickness OffScreenMargin { get; } |
|
|
|
void SetExtendClientAreaTitleBarHeightHint(double titleBarHeight); |
|
|
|
} |
|
|
|
} |
|
|
|
|