-
Notifications
You must be signed in to change notification settings - Fork 216
Expand file tree
/
Copy pathMockFormattedTextImpl.cs
More file actions
37 lines (29 loc) · 925 Bytes
/
MockFormattedTextImpl.cs
File metadata and controls
37 lines (29 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using Avalonia;
using Avalonia.Media;
using Avalonia.Platform;
using System.Collections.Generic;
namespace AvaloniaEdit.Tests.AvaloniaMocks
{
internal class MockFormattedTextImpl : IFormattedTextImpl
{
Size IFormattedTextImpl.Constraint => new Size(0, 0);
Rect IFormattedTextImpl.Bounds => new Rect(0, 0, 0, 0);
string IFormattedTextImpl.Text => throw new System.NotImplementedException();
IEnumerable<FormattedTextLine> IFormattedTextImpl.GetLines()
{
return null;
}
TextHitTestResult IFormattedTextImpl.HitTestPoint(Point point)
{
return null;
}
Rect IFormattedTextImpl.HitTestTextPosition(int index)
{
return Rect.Empty;
}
IEnumerable<Rect> IFormattedTextImpl.HitTestTextRange(int index, int length)
{
return new Rect[] { };
}
}
}