A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

43 lines
1.2 KiB

using Avalonia.Media.Imaging;
using Avalonia.Metadata;
namespace Avalonia.Media
{
/// <summary>
/// A brush which displays a repeating image.
/// </summary>
[NotClientImplementable]
public interface ITileBrush : IBrush
{
/// <summary>
/// Gets the horizontal alignment of a tile in the destination.
/// </summary>
AlignmentX AlignmentX { get; }
/// <summary>
/// Gets the horizontal alignment of a tile in the destination.
/// </summary>
AlignmentY AlignmentY { get; }
/// <summary>
/// Gets the rectangle on the destination in which to paint a tile.
/// </summary>
RelativeRect DestinationRect { get; }
/// <summary>
/// Gets the rectangle of the source image that will be displayed.
/// </summary>
RelativeRect SourceRect { get; }
/// <summary>
/// Gets a value indicating how the source rectangle will be stretched to fill the
/// destination rect.
/// </summary>
Stretch Stretch { get; }
/// <summary>
/// Gets the brush's tile mode.
/// </summary>
TileMode TileMode { get; }
}
}