// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
namespace FlaxEngine.GUI
{
///
/// Interface that unifies input source textures, sprites, render targets, and any other brushes to be used in a more generic way.
///
public interface IBrush
{
///
/// Gets the size of the image brush in pixels (if relevant).
///
Vector2 Size { get; }
///
/// Draws the specified image using graphics backend.
///
/// The draw area rectangle.
/// The color.
void Draw(Rectangle rect, Color color);
}
}