Fyne API "widget.RichTextSegment"

widget.RichTextSegment


import "fyne.io/fyne/v2/widget"

Usage

type RichTextSegment

type RichTextSegment interface {
	Inline() bool
	Textual() string
	Update(fyne.CanvasObject)
	Visual() fyne.CanvasObject

	Select(pos1, pos2 fyne.Position)
	SelectedText() string
	Unselect()
}

RichTextSegment describes any element that can be rendered in a RichText widget.

Since: 2.1