On this page
widget.CheckBoxSegment
import "fyne.io/fyne/v2/widget"
Usage
type CheckBoxSegment
type CheckBoxSegment struct {
Checked bool
Text string
}
CheckBoxSegment represents checkbox (with text) in a rich text widget.
Since:
2.8func (*CheckBoxSegment) Inline
func (c *CheckBoxSegment) Inline() bool
Inline returns true as a CheckBoxSegment is usually part of a list item.
func (*CheckBoxSegment) Select
func (c *CheckBoxSegment) Select(_, _ fyne.Position)
Select does nothing for a checkbox.
func (*CheckBoxSegment) SelectedText
func (c *CheckBoxSegment) SelectedText() string
SelectedText returns the empty string for a checkbox.
func (*CheckBoxSegment) Textual
func (c *CheckBoxSegment) Textual() string
Textual returns the content of this segment rendered to plain text.
func (*CheckBoxSegment) Unselect
func (c *CheckBoxSegment) Unselect()
Unselect does nothing for a checkbox.
func (*CheckBoxSegment) Update
func (c *CheckBoxSegment) Update(fyne.CanvasObject)
Update doesn’t need to change a checkbox
func (*CheckBoxSegment) Visual
func (c *CheckBoxSegment) Visual() fyne.CanvasObject
Visual returns a new instance of a check widget for this segment.