Files

16 lines
506 B
C#
Raw Permalink Normal View History

using System;
2021-09-02 21:48:20 +02:00
using QuestPDF.Drawing;
using QuestPDF.Infrastructure;
namespace QuestPDF.UnitTests.TestEngine
{
internal class ElementMock : Element
{
public string Id { get; set; }
2021-09-02 21:48:20 +02:00
public Func<Size, SpacePlan> MeasureFunc { get; set; }
public Action<Size> DrawFunc { get; set; }
2021-09-02 21:48:20 +02:00
internal override SpacePlan Measure(Size availableSpace) => MeasureFunc(availableSpace);
2021-07-26 11:59:48 +02:00
internal override void Draw(Size availableSpace) => DrawFunc(availableSpace);
}
}