类型 MarkdownPaint

API 文档由 Go 源码生成,内容为英文。

type MarkdownPaint struct {
	Look MarkdownLook
	// X and Y are where the top-left corner of the document goes.
	X, Y float32
	// Clip is the visible part of the canvas. Nothing outside it is painted
	// and no link outside it gets a hit region. The zero Rect means everything.
	Clip ui.Rect
	// Links names the hit regions of links: fragment i of the view is
	// Links.At(Base+i), and MarkdownView.Link(i) says where it points. Zero
	// paints links without hits.
	Links ui.Scope
	// Base is added to the number of every fragment, so that several views
	// painted in one frame can share a scope: give each the total of the
	// LinkCount of the views before it.
	Base int
	// Selection is highlighted behind its text. The zero range paints nothing.
	Selection MarkdownSelection
}

MarkdownPaint says where and how to paint a MarkdownView.