Fyne API "widget.Separator"

widget.Separator


import "fyne.io/fyne/widget"

Usage

type Separator

type Separator struct {
	widget.Base
}

Separator is a widget for displaying a separator with themeable color.

Since: 1.4

func NewSeparator

func NewSeparator() *Separator

NewSeparator creates a new separator.

Since: 1.4

func (*Separator) CreateRenderer

func (s *Separator) CreateRenderer() fyne.WidgetRenderer

CreateRenderer returns a new renderer for the separator.

Implements: fyne.Widget

func (*Separator) Hide

func (s *Separator) Hide()

Hide hides the separator.

Implements: fyne.Widget

func (*Separator) MinSize

func (s *Separator) MinSize() fyne.Size

MinSize returns the minimal size of the separator.

Implements: fyne.Widget

func (*Separator) Move

func (s *Separator) Move(pos fyne.Position)

Move sets the position of the separator relative to its parent.

Implements: fyne.Widget

func (*Separator) Refresh

func (s *Separator) Refresh()

Refresh triggers a redraw of the separator.

Implements: fyne.Widget

func (*Separator) Resize

func (s *Separator) Resize(size fyne.Size)

Resize changes the size of the separator.

Implements: fyne.Widget

func (*Separator) Show

func (s *Separator) Show()

Show makes the separator visible.

Implements: fyne.Widget