Fyne API "widget.ParagraphSegment"

widget.ParagraphSegment


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

Usage

type ParagraphSegment

type ParagraphSegment struct {
	Texts []RichTextSegment
}

ParagraphSegment wraps a number of text elements in a paragraph. It is similar to using a list of text elements when the final style is RichTextStyleParagraph.

Since: 2.1

func (*ParagraphSegment) Inline

func (p *ParagraphSegment) Inline() bool

Inline returns false as a paragraph should be in a block.

func (*ParagraphSegment) Segments

func (p *ParagraphSegment) Segments() []RichTextSegment

Segments returns the list of text elements in this paragraph.

func (*ParagraphSegment) Select

func (p *ParagraphSegment) Select(_, _ fyne.Position)

Select does nothing for a paragraph container.

func (*ParagraphSegment) SelectedText

func (p *ParagraphSegment) SelectedText() string

SelectedText returns the empty string for this paragraph container.

func (*ParagraphSegment) Textual

func (p *ParagraphSegment) Textual() string

Textual returns no content for a paragraph container.

func (*ParagraphSegment) Unselect

func (p *ParagraphSegment) Unselect()

Unselect does nothing for a paragraph container.

func (*ParagraphSegment) Update

func (p *ParagraphSegment) Update(fyne.CanvasObject)

Update doesnt need to change a paragraph container.

func (*ParagraphSegment) Visual

func (p *ParagraphSegment) Visual() fyne.CanvasObject

Visual returns the no extra elements.