Upgrade to v2.5
Fyne API v2.5
app
canvas
container
data/binding
data/validation
dialog
driver
driver/desktop
driver/mobile
driver/software
lang
layout
storage
storage/repository
test
theme
widget
package widget
Accordion
AccordionItem
Activity
BaseWidget
Button
ButtonAlign
ButtonIconPlacement
ButtonImportance
ButtonStyle
Card
Check
CheckGroup
CustomTextGridStyle
DisableableWidget
Entry
FileIcon
Form
FormItem
GridWrap
GridWrapItemID
Hyperlink
HyperlinkSegment
Icon
ImageSegment
Importance
Label
List
ListItemID
ListSegment
Menu
Orientation
ParagraphSegment
PopUp
PopUpMenu
ProgressBar
ProgressBarInfinite
RadioGroup
RichText
RichTextBlock
RichTextSegment
RichTextStyle
Select
SelectEntry
Separator
SeparatorSegment
Slider
Table
TableCellID
TextGrid
TextGridCell
TextGridRow
TextGridStyle
TextSegment
Toolbar
ToolbarAction
ToolbarItem
ToolbarSeparator
ToolbarSpacer
Tree
TreeNodeID
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.