Paint#
func (editor *CodeEditor) Paint(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect, snapshot CodeEditorSnapshot) ui.RectAPI 文档由 Go 源码生成,内容为英文。
type CodeEditor struct {
Layout TextareaLayout
// contains filtered or unexported fields
}CodeEditor owns only reusable layout and highlight scratch space. Text and undo history remain in the application's editor. Layout supplies movement, pointer placement and scrolling, just like TextareaLayout.
Paint#func (editor *CodeEditor) Paint(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect, snapshot CodeEditorSnapshot) ui.RectPointer#func (editor *CodeEditor) Pointer(event ui.PointerEvent) ui.EventResultPointer handles the scrollbar drag without changing the text or selection.