|
|
|
|
|
|
using System; |
|
|
|
using Unity.UIWidgets.foundation; |
|
|
|
|
|
|
|
namespace Unity.UIWidgets.ui { |
|
|
|
public interface Canvas { |
|
|
|
|
|
|
|
|
|
|
void drawTextBlob(TextBlob textBlob, Offset offset, Paint paint); |
|
|
|
|
|
|
|
void drawParagraph(Paragraph paragraph, Offset offset); |
|
|
|
void flush(); |
|
|
|
|
|
|
|
void reset(); |
|
|
|
|
|
|
offset = offset, |
|
|
|
paint = new Paint(paint), |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public void drawParagraph(Paragraph paragraph, Offset offset) { |
|
|
|
D.assert(paragraph != null); |
|
|
|
D.assert(PaintingUtils._offsetIsValid(offset)); |
|
|
|
paragraph.paint(this, offset); |
|
|
|
} |
|
|
|
|
|
|
|
public virtual void flush() { |
|
|
|