|
|
|
@ -37,6 +37,12 @@ namespace Avalonia.Media |
|
|
|
_platform = platform; |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the bounds of the text within the <see cref="Constraint"/>.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>The bounds of the text.</returns>
|
|
|
|
public Rect Bounds => PlatformImpl.Bounds; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the constraint of the text.
|
|
|
|
/// </summary>
|
|
|
|
@ -158,12 +164,6 @@ namespace Avalonia.Media |
|
|
|
return PlatformImpl.HitTestTextRange(index, length); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the bounds of the text, taking <see cref="Constraint"/> into account.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>The bounds of the text.</returns>
|
|
|
|
public Rect Measure() => PlatformImpl.Bounds; |
|
|
|
|
|
|
|
private void Set<T>(ref T field, T value) |
|
|
|
{ |
|
|
|
field = value; |
|
|
|
|