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.ImageSegment"
widget.ImageSegment
import "fyne.io/fyne/v2/widget"
Usage
type ImageSegment
type ImageSegment struct {
Source fyne.URI
Title string
// Alignment specifies the horizontal alignment of this image segment
// Since: 2.4
Alignment fyne.TextAlign
}
ImageSegment represents an image within a rich text widget.
Since:
2.3
func (*ImageSegment) Inline
func (i *ImageSegment) Inline() bool
Inline returns false as images in rich text are blocks.
func (*ImageSegment) Select
func (i *ImageSegment) Select(begin, end fyne.Position)
Select tells the segment that the user is selecting the content between the two positions.
func (*ImageSegment) SelectedText
func (i *ImageSegment) SelectedText() string
SelectedText should return the text representation of any content currently selected through the Select call.
func (*ImageSegment) Textual
func (i *ImageSegment) Textual() string
Textual returns the content of this segment rendered to plain text.
func (*ImageSegment) Unselect
func (i *ImageSegment) Unselect()
Unselect tells the segment that the user is has cancelled the previous selection.
func (*ImageSegment) Update
func (i *ImageSegment) Update(o fyne.CanvasObject)
Update applies the current state of this image segment to an existing visual.
func (*ImageSegment) Visual
func (i *ImageSegment) Visual() fyne.CanvasObject
Visual returns the image widget required to render this segment.