// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
using System.Collections.Generic;
namespace SixLabors.Fonts.Rendering {
///
/// A glyph fully decomposed into painted layers ready for rendering.
///
internal readonly struct PaintedGlyph
{
///
/// Initializes a new instance of the struct.
///
/// The painted layers.
public PaintedGlyph(List layers) => this.Layers = layers;
///
/// Gets the layers for this glyph.
///
public IReadOnlyList Layers { get; }
///
/// Gets a value indicating whether this glyph has no layers.
///
public bool IsEmpty => this.Layers.Count == 0;
///
/// Gets an empty glyph instance.
///
public static PaintedGlyph Empty => new([]);
}
}