On this page
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.1func (*ParagraphSegment) Inline
func (p *ParagraphSegment) Inline() boolInline returns false as a paragraph should be in a block.
func (*ParagraphSegment) Segments
func (p *ParagraphSegment) Segments() []RichTextSegmentSegments 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() stringSelectedText returns the empty string for this paragraph container.
func (*ParagraphSegment) Textual
func (p *ParagraphSegment) Textual() stringTextual 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 doesn’t need to change a paragraph container.
func (*ParagraphSegment) Visual
func (p *ParagraphSegment) Visual() fyne.CanvasObjectVisual returns the no extra elements.