// Copyright (c) Six Labors. // Licensed under the Six Labors Split License. namespace SixLabors.Fonts { /// /// Represents an atomic inline placeholder with caller-supplied dimensions. /// public readonly struct TextPlaceholder { /// /// Initializes a new instance of the struct. /// /// The placeholder width in pixel units. /// The placeholder height in pixel units. /// The placeholder alignment against surrounding text. /// The distance from the placeholder top edge to its baseline in pixel units. public TextPlaceholder( float width, float height, TextPlaceholderAlignment alignment, float baselineOffset) { this.Width = width; this.Height = height; this.Alignment = alignment; this.BaselineOffset = baselineOffset; } /// /// Gets the placeholder width in pixel units. /// public float Width { get; } /// /// Gets the placeholder height in pixel units. /// public float Height { get; } /// /// Gets the placeholder alignment against surrounding text. /// public TextPlaceholderAlignment Alignment { get; } /// /// Gets the distance from the placeholder top edge to its baseline in pixel units. /// public float BaselineOffset { get; } } }