Documentation ¶
Index ¶
- func ASCIIEntry() *wdg.Entry
- func AlphaEntry() *wdg.Entry
- func AlphaNumericEntry() *wdg.Entry
- func AlphaUnicodeEntry() *wdg.Entry
- func AlphaUnicodeNumericEntry() *wdg.Entry
- func Base64Entry() *wdg.Entry
- func Base64URLEntry() *wdg.Entry
- func BicEntry() *wdg.Entry
- func BtcAddressEntry() *wdg.Entry
- func BtcAddressLowerBech32Entry() *wdg.Entry
- func BtcAddressUpperBech32Entry() *wdg.Entry
- func Cnregion() fyne.CanvasObject
- func DataURIEntry() *wdg.Entry
- func E164Entry() *wdg.Entry
- func EmailEntry() *wdg.Entry
- func EthAddressEntry() *wdg.Entry
- func EthAddressLowerEntry() *wdg.Entry
- func EthAddressUpperEntry() *wdg.Entry
- func Filetree(tree *widget.Tree, root string) *widget.Tree
- func FqdnRFC1123Entry() *wdg.Entry
- func HTMLEncodedEntry() *wdg.Entry
- func HTMLEntry() *wdg.Entry
- func HexColorEntry() *wdg.Entry
- func HexToRGBA(x string) color.NRGBA
- func HexadecimalEntry() *wdg.Entry
- func HostnameRFC1123Entry() *wdg.Entry
- func HostnameRFC952Entry() *wdg.Entry
- func HslEntry() *wdg.Entry
- func HslaEntry() *wdg.Entry
- func ISBN10Entry() *wdg.Entry
- func ISBN13Entry() *wdg.Entry
- func LatitudeEntry() *wdg.Entry
- func List(items ...interface{}) *widget.List
- func List2(items ...fmt.Stringer) *widget.List
- func LongitudeEntry() *wdg.Entry
- func MultibyteEntry() *wdg.Entry
- func NewOpenFile(data binding.String, lbl string, filters []string, w fyne.Window) *fyne.Container
- func NewOpenFolder(data binding.String, lbl string, w fyne.Window) *fyne.Container
- func NewOpenFolder2(data binding.String, fn func(), w fyne.Window) *fyne.Container
- func NumberEntry() *wdg.Entry
- func NumericEntry() *wdg.Entry
- func PrintableASCIIEntry() *wdg.Entry
- func RgbEntry() *wdg.Entry
- func RgbaEntry() *wdg.Entry
- func SSNEntry() *wdg.Entry
- func SplitParamsEntry() *wdg.Entry
- func ToNRGBA(c color.Color) (r, g, b, a int)
- func URLEncodedEntry() *wdg.Entry
- func UUID3Entry() *wdg.Entry
- func UUID3RFC4122Entry() *wdg.Entry
- func UUID4Entry() *wdg.Entry
- func UUID4RFC4122Entry() *wdg.Entry
- func UUID5Entry() *wdg.Entry
- func UUID5RFC4122Entry() *wdg.Entry
- func UUIDEntry() *wdg.Entry
- func UUIDRFC4122Entry() *wdg.Entry
- func Ziptree(root string) *widget.Tree
- type Axis
- type Bar
- func (me *Bar) Click(fn func(*Bar)) *Bar
- func (me *Bar) CreateRenderer() fyne.WidgetRenderer
- func (me *Bar) Do(fn func(t *Bar)) *Bar
- func (me *Bar) FillColor(c color.Color) *Bar
- func (me *Bar) MinSize() fyne.Size
- func (b *Bar) MouseIn(*desktop.MouseEvent)
- func (b *Bar) MouseMoved(*desktop.MouseEvent)
- func (b *Bar) MouseOut()
- func (me *Bar) SData(d interface{}) *Bar
- func (me *Bar) SText1(t string) *Bar
- func (me *Bar) StrokeColor(c color.Color) *Bar
- func (me *Bar) StrokeWidth(w float32) *Bar
- func (me *Bar) Style(style fyne.TextStyle) *Bar
- func (b *Bar) Tapped(*fyne.PointEvent)
- func (me *Bar) TextAlign(align fyne.TextAlign) *Bar
- func (me *Bar) TextColor1(c color.Color) *Bar
- func (me *Bar) TextColor2(c color.Color) *Bar
- func (me *Bar) TextSize(size float32) *Bar
- type BaseRenderer
- type BtnX
- func (b *BtnX) Bc(c color.Color)
- func (s *BtnX) CreateRenderer() fyne.WidgetRenderer
- func (b *BtnX) Cursor() desktop.Cursor
- func (s *BtnX) Do(f func(*BtnX)) *BtnX
- func (b *BtnX) DoubleTapped(*fyne.PointEvent)
- func (b *BtnX) GetT() string
- func (s *BtnX) MinSize() fyne.Size
- func (b *BtnX) MouseIn(*desktop.MouseEvent)
- func (b *BtnX) MouseMoved(*desktop.MouseEvent)
- func (b *BtnX) MouseOut()
- func (b *BtnX) Msin(fn func()) *BtnX
- func (b *BtnX) T(t string)
- func (b *BtnX) Tap(fn func()) *BtnX
- func (b *BtnX) Tap2(fn func()) *BtnX
- func (b *BtnX) Tap3(fn func(e *fyne.PointEvent)) *BtnX
- func (b *BtnX) Tapped(*fyne.PointEvent)
- func (b *BtnX) TappedSecondary(e *fyne.PointEvent)
- func (b *BtnX) Tc(c color.Color)
- type Calendar
- func (s *Calendar) ClearSelected()
- func (s *Calendar) CreateRenderer() fyne.WidgetRenderer
- func (s *Calendar) FocusGained()
- func (s *Calendar) FocusLost()
- func (s *Calendar) Hide()
- func (s *Calendar) MinSize() fyne.Size
- func (s *Calendar) MouseIn(*desktop.MouseEvent)
- func (s *Calendar) MouseMoved(*desktop.MouseEvent)
- func (s *Calendar) MouseOut()
- func (s *Calendar) Move(pos fyne.Position)
- func (s *Calendar) RefreshItem() *Calendar
- func (s *Calendar) Resize(size fyne.Size)
- func (s *Calendar) SelectedIndex() int
- func (me *Calendar) SetItems() *Calendar
- func (s *Calendar) SetSelected(text string)
- func (s *Calendar) SetSelectedIndex(index int)
- func (s *Calendar) Tapped(*fyne.PointEvent)
- func (s *Calendar) TypedKey(event *fyne.KeyEvent)
- func (s *Calendar) TypedRune(_ rune)
- type CircleButton
- func (me *CircleButton) BgFillColor(c color.Color) *CircleButton
- func (me *CircleButton) BgStrokeColor(c color.Color) *CircleButton
- func (me *CircleButton) Click(fn func(*CircleButton)) *CircleButton
- func (me *CircleButton) CreateRenderer() fyne.WidgetRenderer
- func (b *CircleButton) Cursor() desktop.Cursor
- func (me *CircleButton) Do(fn func(t *CircleButton)) *CircleButton
- func (me *CircleButton) MinSize() fyne.Size
- func (b *CircleButton) MouseIn(*desktop.MouseEvent)
- func (b *CircleButton) MouseMoved(*desktop.MouseEvent)
- func (b *CircleButton) MouseOut()
- func (me *CircleButton) SData(d interface{}) *CircleButton
- func (me *CircleButton) SText1(t string) *CircleButton
- func (me *CircleButton) Style(style fyne.TextStyle) *CircleButton
- func (b *CircleButton) Tapped(*fyne.PointEvent)
- func (me *CircleButton) TextAlign(align fyne.TextAlign) *CircleButton
- func (me *CircleButton) TextColor1(c color.Color) *CircleButton
- func (me *CircleButton) TextSize(size float32) *CircleButton
- type ClickImage
- func (s *ClickImage) CreateRenderer() fyne.WidgetRenderer
- func (b *ClickImage) Cursor() desktop.Cursor
- func (s *ClickImage) Do(fn func(t *ClickImage)) *ClickImage
- func (s *ClickImage) MinSize() fyne.Size
- func (s *ClickImage) SetImage(img image.Image) *ClickImage
- func (b *ClickImage) Tapped(*fyne.PointEvent)
- func (b *ClickImage) Tapped1(*fyne.PointEvent)
- func (b *ClickImage) TappedSecondary(e *fyne.PointEvent)
- type Clock
- func (me *Clock) BgFillColor(c color.Color) *Clock
- func (me *Clock) BgStrokeColor(c color.Color) *Clock
- func (me *Clock) Click(fn func(*Clock)) *Clock
- func (me *Clock) CreateRenderer() fyne.WidgetRenderer
- func (me *Clock) Do(fn func(t *Clock)) *Clock
- func (t *Clock) Go()
- func (me *Clock) MinSize() fyne.Size
- func (b *Clock) MouseIn(*desktop.MouseEvent)
- func (b *Clock) MouseMoved(*desktop.MouseEvent)
- func (b *Clock) MouseOut()
- func (me *Clock) SData(d interface{}) *Clock
- func (me *Clock) SText1(t string) *Clock
- func (me *Clock) Style(style fyne.TextStyle) *Clock
- func (b *Clock) Tapped(*fyne.PointEvent)
- func (me *Clock) TextAlign(align fyne.TextAlign) *Clock
- func (me *Clock) TextColor1(c color.Color) *Clock
- func (me *Clock) TextSize(size float32) *Clock
- type FileDialogItem
- func (i *FileDialogItem) CreateRenderer() fyne.WidgetRenderer
- func (i *FileDialogItem) MouseIn(*desktop.MouseEvent)
- func (i *FileDialogItem) MouseMoved(*desktop.MouseEvent)
- func (i *FileDialogItem) MouseOut()
- func (i *FileDialogItem) SetLoc(location fyne.URI) *FileDialogItem
- func (i *FileDialogItem) Tapped(_ *fyne.PointEvent)
- type Orientation
- type Select
- func (s *Select) ClearSelected()
- func (s *Select) Col(num int) *Select
- func (s *Select) CreateRenderer() fyne.WidgetRenderer
- func (s *Select) CurPage(curPage int) *Select
- func (s *Select) Do(fn func(*Select)) *Select
- func (s *Select) FocusGained()
- func (s *Select) FocusLost()
- func (s *Select) Hide()
- func (s *Select) MinSize() fyne.Size
- func (s *Select) MouseIn(*desktop.MouseEvent)
- func (s *Select) MouseMoved(*desktop.MouseEvent)
- func (s *Select) MouseOut()
- func (s *Select) Move(pos fyne.Position)
- func (s *Select) RefreshItem()
- func (s *Select) Resize(size fyne.Size)
- func (s *Select) Row(num int) *Select
- func (s *Select) SelectedIndex() int
- func (s *Select) SetSelected(text string)
- func (s *Select) SetSelectedIndex(index int)
- func (s *Select) Tapped(*fyne.PointEvent)
- func (s *Select) TypedKey(event *fyne.KeyEvent)
- func (s *Select) TypedRune(_ rune)
- type SelectG
- func (s *SelectG) Change(fn func(*SelectG)) *SelectG
- func (s *SelectG) ClearSelected()
- func (s *SelectG) Col(num int) *SelectG
- func (s *SelectG) CreateRenderer() fyne.WidgetRenderer
- func (s *SelectG) CurPage(curPage int) *SelectG
- func (s *SelectG) Do(fn func(*SelectG)) *SelectG
- func (s *SelectG) FocusGained()
- func (s *SelectG) FocusLost()
- func (s *SelectG) Hide()
- func (s *SelectG) MinSize() fyne.Size
- func (s *SelectG) MouseIn(*desktop.MouseEvent)
- func (s *SelectG) MouseMoved(*desktop.MouseEvent)
- func (s *SelectG) MouseOut()
- func (s *SelectG) Move(pos fyne.Position)
- func (s *SelectG) RefreshItem()
- func (s *SelectG) Resize(size fyne.Size)
- func (s *SelectG) Row(num int) *SelectG
- func (s *SelectG) SelectedIndex() int
- func (s *SelectG) SetOptions(opts []cnregion.Region) *SelectG
- func (s *SelectG) SetSelected(text cnregion.Region)
- func (s *SelectG) SetSelectedIndex(index int)
- func (s *SelectG) Tapped(*fyne.PointEvent)
- func (s *SelectG) TypedKey(event *fyne.KeyEvent)
- func (s *SelectG) TypedRune(_ rune)
- type SelectGeneric
- func (s *SelectGeneric) Change(fn func(*SelectGeneric)) *SelectGeneric
- func (s *SelectGeneric) ClearSelected()
- func (s *SelectGeneric) Col(num int) *SelectGeneric
- func (s *SelectGeneric) CreateRenderer() fyne.WidgetRenderer
- func (s *SelectGeneric) CurPage(curPage int) *SelectGeneric
- func (s *SelectGeneric) Do(fn func(*SelectGeneric)) *SelectGeneric
- func (s *SelectGeneric) FocusGained()
- func (s *SelectGeneric) FocusLost()
- func (s *SelectGeneric) Hide()
- func (s *SelectGeneric) MinSize() fyne.Size
- func (s *SelectGeneric) MouseIn(*desktop.MouseEvent)
- func (s *SelectGeneric) MouseMoved(*desktop.MouseEvent)
- func (s *SelectGeneric) MouseOut()
- func (s *SelectGeneric) Move(pos fyne.Position)
- func (s *SelectGeneric) RefreshItem()
- func (s *SelectGeneric) Resize(size fyne.Size)
- func (s *SelectGeneric) Row(num int) *SelectGeneric
- func (s *SelectGeneric) SelectedIndex() int
- func (s *SelectGeneric) SetOptions(opts []item) *SelectGeneric
- func (s *SelectGeneric) SetSelected(text item)
- func (s *SelectGeneric) SetSelectedIndex(index int)
- func (s *SelectGeneric) Tapped(*fyne.PointEvent)
- func (s *SelectGeneric) TypedKey(event *fyne.KeyEvent)
- func (s *SelectGeneric) TypedRune(_ rune)
- type Slider
- func (s *Slider) Bind(data binding.Float)
- func (s *Slider) CircleScale(scale float32) *Slider
- func (s *Slider) ColorActive(c color.Color) *Slider
- func (s *Slider) ColorCircle(c color.Color) *Slider
- func (s *Slider) ColorMin(c color.Color) *Slider
- func (s *Slider) ColorTrack(c color.Color) *Slider
- func (s *Slider) ColorValue(c color.Color) *Slider
- func (s *Slider) CreateRenderer() fyne.WidgetRenderer
- func (s *Slider) Do(fn func(*Slider)) *Slider
- func (s *Slider) DragEnd()
- func (s *Slider) Dragged(e *fyne.DragEvent)
- func (s *Slider) MinSize() fyne.Size
- func (s *Slider) SetValue(value float64)
- func (s *Slider) Unbind()
- type TextField
- func (me *TextField) BgFillColor(c color.Color) *TextField
- func (me *TextField) BgStrokeColor(c color.Color) *TextField
- func (me *TextField) Click(fn func(*TextField)) *TextField
- func (me *TextField) CreateRenderer() fyne.WidgetRenderer
- func (me *TextField) Do(fn func(t *TextField)) *TextField
- func (me *TextField) MinSize() fyne.Size
- func (b *TextField) MouseIn(*desktop.MouseEvent)
- func (b *TextField) MouseMoved(*desktop.MouseEvent)
- func (b *TextField) MouseOut()
- func (me *TextField) SData(d interface{}) *TextField
- func (me *TextField) SText1(t string) *TextField
- func (me *TextField) Style(style fyne.TextStyle) *TextField
- func (me *TextField) T(t string) *TextField
- func (me *TextField) Tap(fn func(tf *TextField)) *TextField
- func (b *TextField) Tapped(*fyne.PointEvent)
- func (me *TextField) TextAlign(align fyne.TextAlign) *TextField
- func (me *TextField) TextColor1(c color.Color) *TextField
- func (me *TextField) TextSize(size float32) *TextField
- type Y2hText
- func (me *Y2hText) BgFillColor(c color.Color) *Y2hText
- func (me *Y2hText) BgStrokeColor(c color.Color) *Y2hText
- func (me *Y2hText) Click(fn func(*Y2hText)) *Y2hText
- func (me *Y2hText) CreateRenderer() fyne.WidgetRenderer
- func (me *Y2hText) Do(fn func(t *Y2hText)) *Y2hText
- func (me *Y2hText) MinSize() fyne.Size
- func (b *Y2hText) MouseIn(*desktop.MouseEvent)
- func (b *Y2hText) MouseMoved(*desktop.MouseEvent)
- func (b *Y2hText) MouseOut()
- func (me *Y2hText) SData(d interface{}) *Y2hText
- func (me *Y2hText) SText1(t string) *Y2hText
- func (me *Y2hText) Style(style fyne.TextStyle) *Y2hText
- func (b *Y2hText) Tapped(*fyne.PointEvent)
- func (me *Y2hText) TextAlign(align fyne.TextAlign) *Y2hText
- func (me *Y2hText) TextColor1(c color.Color) *Y2hText
- func (me *Y2hText) TextColor2(c color.Color) *Y2hText
- func (me *Y2hText) TextSize(size float32) *Y2hText
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ASCIIEntry ¶
func AlphaEntry ¶
func AlphaNumericEntry ¶
func AlphaUnicodeEntry ¶
func Base64Entry ¶
func Base64URLEntry ¶
func BtcAddressEntry ¶
func DataURIEntry ¶
func EmailEntry ¶
func EthAddressEntry ¶
func EthAddressLowerEntry ¶
func EthAddressUpperEntry ¶
func FqdnRFC1123Entry ¶
func HTMLEncodedEntry ¶
func HexColorEntry ¶
func HexadecimalEntry ¶
func HostnameRFC1123Entry ¶
func HostnameRFC952Entry ¶
func ISBN10Entry ¶
func ISBN13Entry ¶
func LatitudeEntry ¶
func LongitudeEntry ¶
func MultibyteEntry ¶
func NewOpenFile ¶
NewOpenFile bdFilePath := binding.NewString() filters:=[]string{".jpg",".jpeg",".png"} filters:=[]string{".zip",".rar",".tar"} openFile := NewOpenFile(bdFilePath,filters w)
func NewOpenFolder ¶
NewOpenFolder 打开目录 NewOpenFolder bdFolderPath := binding.NewString() openFolder := NewOpenFolder(outData, w)
func NewOpenFolder2 ¶
NewOpenFolder2 打开目录并执行传入的操作 fn
func NumberEntry ¶
func NumericEntry ¶
func PrintableASCIIEntry ¶
func SplitParamsEntry ¶
func ToNRGBA ¶
ToNRGBA converts a color to RGBA values which are not premultiplied, unlike color.RGBA().
func URLEncodedEntry ¶
func UUID3Entry ¶
func UUID3RFC4122Entry ¶
func UUID4Entry ¶
func UUID4RFC4122Entry ¶
func UUID5Entry ¶
func UUID5RFC4122Entry ¶
func UUIDRFC4122Entry ¶
Types ¶
type Axis ¶
type Axis struct { widget.BaseWidget W, H float32 Data []float32 X *canvas.Line Y *canvas.Line Line1 *canvas.Line P1 *canvas.Circle T1 *canvas.Text Points []fyne.Position MousePos fyne.Position Line1P1 fyne.Position Line1P2 fyne.Position Center fyne.Position ChartCtn *fyne.Container // contains filtered or unexported fields }
Axis is a widget for displaying a separator with themeable color.
Since: 1.4
func (*Axis) CreateRenderer ¶
func (s *Axis) CreateRenderer() fyne.WidgetRenderer
CreateRenderer returns a new renderer for the separator.
Implements: fyne.Widget
func (*Axis) Do ¶
axis := wdg.NewAxis().Lines([]float32{120, 20, 30, 40, 60, 180, 240})
func (s *Axis) Lines(data []float32) *Axis { s.Data = data s.ChartCtn.Objects = make([]fyne.CanvasObject, len(data)) for i := range data { line := canvas.NewLine(colornames.Chocolate) line.StrokeWidth = 4 s.ChartCtn.Objects[i] = line } return s }
func (*Axis) MinSize ¶
func (s *Axis) MinSize() fyne.Size
MinSize returns the minimal size of the separator.
Implements: fyne.Widget
func (*Axis) MouseIn ¶
func (s *Axis) MouseIn(*desktop.MouseEvent)
func (*Axis) MouseMoved ¶
func (s *Axis) MouseMoved(e *desktop.MouseEvent)
MouseMoved is called when a desktop pointer hovers over the widget
type Bar ¶
type Bar struct { widget.BaseWidget Txt1 *canvas.Text Txt2 *canvas.Text Bg *canvas.Rectangle OnTapped func(*Bar) `json:"-"` OnHoverIn func() `json:"-"` OnHoverOut func() `json:"-"` Data interface{} }
Bar is a widget for displaying a separator with themeable color.
Since: 1.4
func (*Bar) CreateRenderer ¶
func (me *Bar) CreateRenderer() fyne.WidgetRenderer
CreateRenderer returns a new renderer for the separator.
Implements: fyne.Widget
func (*Bar) MinSize ¶
func (me *Bar) MinSize() fyne.Size
MinSize returns the minimal size of the separator.
Implements: fyne.Widget
func (*Bar) MouseIn ¶
func (b *Bar) MouseIn(*desktop.MouseEvent)
MouseIn is called when a desktop pointer enters the widget
func (*Bar) MouseMoved ¶
func (b *Bar) MouseMoved(*desktop.MouseEvent)
MouseMoved is called when a desktop pointer hovers over the widget
func (*Bar) MouseOut ¶
func (b *Bar) MouseOut()
MouseOut is called when a desktop pointer exits the widget
func (*Bar) StrokeWidth ¶
func (*Bar) Style ¶
Style fyne.TextStyle{Bold: true} fyne.TextStyle{Italic: true} fyne.TextStyle{Monospace: true} fyne.TextStyle{TabWidth: 10}
type BaseRenderer ¶
type BaseRenderer struct {
// contains filtered or unexported fields
}
BaseRenderer is a renderer base providing the most common implementations of a part of the widget.Renderer interface.
func NewBaseRenderer ¶
func NewBaseRenderer(objects []fyne.CanvasObject) BaseRenderer
NewBaseRenderer creates a new BaseRenderer.
func (*BaseRenderer) Destroy ¶
func (r *BaseRenderer) Destroy()
Destroy does nothing in the base implementation.
Implements: fyne.WidgetRenderer
func (*BaseRenderer) Objects ¶
func (r *BaseRenderer) Objects() []fyne.CanvasObject
Objects returns the objects that should be rendered.
Implements: fyne.WidgetRenderer
func (*BaseRenderer) SetObjects ¶
func (r *BaseRenderer) SetObjects(objects []fyne.CanvasObject)
SetObjects updates the objects of the renderer.
type BtnX ¶
type BtnX struct { // widget.BaseWidget widget.DisableableWidget // 背景 Bg *canvas.Rectangle // 文本 Textc *canvas.Text // contains filtered or unexported fields }
BtnX is a widget for displaying a separator with themeable color.
Since: 1.4
func (*BtnX) CreateRenderer ¶
func (s *BtnX) CreateRenderer() fyne.WidgetRenderer
CreateRenderer returns a new renderer for the separator.
Implements: fyne.Widget
func (*BtnX) DoubleTapped ¶
func (b *BtnX) DoubleTapped(*fyne.PointEvent)
func (*BtnX) MinSize ¶
func (s *BtnX) MinSize() fyne.Size
MinSize returns the minimal size of the separator.
Implements: fyne.Widget
func (*BtnX) MouseIn ¶
func (b *BtnX) MouseIn(*desktop.MouseEvent)
MouseIn is called when a desktop pointer enters the widget
func (*BtnX) MouseMoved ¶
func (b *BtnX) MouseMoved(*desktop.MouseEvent)
MouseMoved is called when a desktop pointer hovers over the widget
func (*BtnX) MouseOut ¶
func (b *BtnX) MouseOut()
MouseOut is called when a desktop pointer exits the widget
func (*BtnX) Tapped ¶
func (b *BtnX) Tapped(*fyne.PointEvent)
Tapped is called when a pointer tapped event is captured and triggers any tap handler
func (*BtnX) TappedSecondary ¶
func (b *BtnX) TappedSecondary(e *fyne.PointEvent)
type Calendar ¶
type Calendar struct { widget.DisableableWidget // Alignment sets the text alignment of the select and its list of options. // // Since: 2.1 Alignment fyne.TextAlign Selected string Options []string PlaceHolder string OnChanged func(string) `json:"-"` DefaultCalendar *gocalendar.Calendar // contains filtered or unexported fields }
Calendar widget has a list of options, with the current one shown, and triggers an event func when clicked
func NewCalendar ¶
func NewCalendar() *Calendar
NewCalendar creates a new select widget with the set list of options and changes handler
func (*Calendar) ClearSelected ¶
func (s *Calendar) ClearSelected()
ClearSelected clears the current option of the select widget. After clearing the current option, the Calendar widget's PlaceHolder will be displayed.
func (*Calendar) CreateRenderer ¶
func (s *Calendar) CreateRenderer() fyne.WidgetRenderer
CreateRenderer is a private method to Fyne which links this widget to its renderer
func (*Calendar) FocusGained ¶
func (s *Calendar) FocusGained()
FocusGained is called after this Calendar has gained focus.
Implements: fyne.Focusable
func (*Calendar) FocusLost ¶
func (s *Calendar) FocusLost()
FocusLost is called after this Calendar has lost focus.
Implements: fyne.Focusable
func (*Calendar) MinSize ¶
func (s *Calendar) MinSize() fyne.Size
MinSize returns the size that this widget should not shrink below
func (*Calendar) MouseIn ¶
func (s *Calendar) MouseIn(*desktop.MouseEvent)
MouseIn is called when a desktop pointer enters the widget
func (*Calendar) MouseMoved ¶
func (s *Calendar) MouseMoved(*desktop.MouseEvent)
MouseMoved is called when a desktop pointer hovers over the widget
func (*Calendar) MouseOut ¶
func (s *Calendar) MouseOut()
MouseOut is called when a desktop pointer exits the widget
func (*Calendar) Move ¶
func (s *Calendar) Move(pos fyne.Position)
Move changes the relative position of the select.
Implements: fyne.Widget
func (*Calendar) RefreshItem ¶
func (*Calendar) Resize ¶
func (s *Calendar) Resize(size fyne.Size)
Resize sets a new size for a widget. Note this should not be used if the widget is being managed by a Layout within a Container.
func (*Calendar) SelectedIndex ¶
SelectedIndex returns the index value of the currently selected item in Options list. It will return -1 if there is no selection.
func (*Calendar) SetSelected ¶
SetSelected sets the current option of the select widget
func (*Calendar) SetSelectedIndex ¶
SetSelectedIndex will set the Selected option from the value in Options list at index position.
func (*Calendar) Tapped ¶
func (s *Calendar) Tapped(*fyne.PointEvent)
Tapped is called when a pointer tapped event is captured and triggers any tap handler
type CircleButton ¶
type CircleButton struct { widget.BaseWidget Txt1 *canvas.Text Background *canvas.Circle OnTapped func(*CircleButton) `json:"-"` OnHoverIn func() `json:"-"` OnHoverOut func() `json:"-"` Data interface{} }
CircleButton is a widget for displaying a separator with themeable color.
Since: 1.4
func NewCircleButton ¶
func NewCircleButton() *CircleButton
NewCircleButton creates a new separator.
Since: 1.4
func (*CircleButton) BgFillColor ¶
func (me *CircleButton) BgFillColor(c color.Color) *CircleButton
func (*CircleButton) BgStrokeColor ¶
func (me *CircleButton) BgStrokeColor(c color.Color) *CircleButton
func (*CircleButton) Click ¶
func (me *CircleButton) Click(fn func(*CircleButton)) *CircleButton
func (*CircleButton) CreateRenderer ¶
func (me *CircleButton) CreateRenderer() fyne.WidgetRenderer
CreateRenderer returns a new renderer for the separator.
Implements: fyne.Widget
func (*CircleButton) Cursor ¶
func (b *CircleButton) Cursor() desktop.Cursor
Cursor returns the cursor type of this widget
func (*CircleButton) Do ¶
func (me *CircleButton) Do(fn func(t *CircleButton)) *CircleButton
func (*CircleButton) MinSize ¶
func (me *CircleButton) MinSize() fyne.Size
MinSize returns the minimal size of the separator.
Implements: fyne.Widget
func (*CircleButton) MouseIn ¶
func (b *CircleButton) MouseIn(*desktop.MouseEvent)
MouseIn is called when a desktop pointer enters the widget
func (*CircleButton) MouseMoved ¶
func (b *CircleButton) MouseMoved(*desktop.MouseEvent)
MouseMoved is called when a desktop pointer hovers over the widget
func (*CircleButton) MouseOut ¶
func (b *CircleButton) MouseOut()
MouseOut is called when a desktop pointer exits the widget
func (*CircleButton) SData ¶
func (me *CircleButton) SData(d interface{}) *CircleButton
func (*CircleButton) SText1 ¶
func (me *CircleButton) SText1(t string) *CircleButton
func (*CircleButton) Style ¶
func (me *CircleButton) Style(style fyne.TextStyle) *CircleButton
Style fyne.TextStyle{Bold: true} fyne.TextStyle{Italic: true} fyne.TextStyle{Monospace: true} fyne.TextStyle{TabWidth: 10}
func (*CircleButton) Tapped ¶
func (b *CircleButton) Tapped(*fyne.PointEvent)
func (*CircleButton) TextAlign ¶
func (me *CircleButton) TextAlign(align fyne.TextAlign) *CircleButton
TextAlign fyne.TextAlignLeading , fyne.TextAlignCenter , fyne.TextAlignTrailing
func (*CircleButton) TextColor1 ¶
func (me *CircleButton) TextColor1(c color.Color) *CircleButton
func (*CircleButton) TextSize ¶
func (me *CircleButton) TextSize(size float32) *CircleButton
type ClickImage ¶
type ClickImage struct { widget.BaseWidget Img *canvas.Image PlaceHolder *canvas.Text OnTapped func(*ClickImage) `json:"-"` OnTapped2 func(me *ClickImage, e *fyne.PointEvent) `json:"-"` }
ClickImage is a widget for displaying a separator with themeable color.
Since: 1.4
func NewClickImage ¶
func NewClickImage() *ClickImage
NewClickImage creates a new separator.
Since: 1.4
func (*ClickImage) CreateRenderer ¶
func (s *ClickImage) CreateRenderer() fyne.WidgetRenderer
CreateRenderer returns a new renderer for the separator.
Implements: fyne.Widget
func (*ClickImage) Cursor ¶
func (b *ClickImage) Cursor() desktop.Cursor
Cursor returns the cursor type of this widget
func (*ClickImage) Do ¶
func (s *ClickImage) Do(fn func(t *ClickImage)) *ClickImage
func (*ClickImage) MinSize ¶
func (s *ClickImage) MinSize() fyne.Size
MinSize returns the minimal size of the separator.
Implements: fyne.Widget
func (*ClickImage) SetImage ¶
func (s *ClickImage) SetImage(img image.Image) *ClickImage
func (*ClickImage) Tapped ¶
func (b *ClickImage) Tapped(*fyne.PointEvent)
打开文件选择对话框,选择需要显示的图片 使用系统原生对话框 https://hub.fastgit.xyz/ncruces/zenity
func (*ClickImage) Tapped1 ¶
func (b *ClickImage) Tapped1(*fyne.PointEvent)
打开文件选择对话框,选择需要显示的图片 使用系统原生对话框 "github.com/sqweek/dialog"
func (*ClickImage) TappedSecondary ¶
func (b *ClickImage) TappedSecondary(e *fyne.PointEvent)
type Clock ¶
type Clock struct { widget.BaseWidget TxtTime *canvas.Text Txt1 *canvas.Text Txt2 *canvas.Text Txt3 *canvas.Text Txt4 *canvas.Text Txt5 *canvas.Text Txt6 *canvas.Text Txt7 *canvas.Text Txt8 *canvas.Text Txt9 *canvas.Text Txt10 *canvas.Text Txt11 *canvas.Text Txt12 *canvas.Text Background *canvas.Circle Hour *canvas.Line Minute *canvas.Line Second *canvas.Line OnTapped func(*Clock) `json:"-"` OnHoverIn func() `json:"-"` OnHoverOut func() `json:"-"` Data interface{} }
Clock is a widget for displaying a separator with themeable color.
Since: 1.4
func NewClock ¶
func NewClock() *Clock
NewClock creates a new separator. color reference https://www.58pic.com/peisebiao/ Since: 1.4
func (*Clock) CreateRenderer ¶
func (me *Clock) CreateRenderer() fyne.WidgetRenderer
CreateRenderer returns a new renderer for the separator.
Implements: fyne.Widget
func (*Clock) MinSize ¶
func (me *Clock) MinSize() fyne.Size
MinSize returns the minimal size of the separator.
Implements: fyne.Widget
func (*Clock) MouseIn ¶
func (b *Clock) MouseIn(*desktop.MouseEvent)
MouseIn is called when a desktop pointer enters the widget
func (*Clock) MouseMoved ¶
func (b *Clock) MouseMoved(*desktop.MouseEvent)
MouseMoved is called when a desktop pointer hovers over the widget
func (*Clock) MouseOut ¶
func (b *Clock) MouseOut()
MouseOut is called when a desktop pointer exits the widget
func (*Clock) Style ¶
Style fyne.TextStyle{Bold: true} fyne.TextStyle{Italic: true} fyne.TextStyle{Monospace: true} fyne.TextStyle{TabWidth: 10}
type FileDialogItem ¶
type FileDialogItem struct { widget.BaseWidget // contains filtered or unexported fields }
func NewFileItem ¶
func NewFileItem(location fyne.URI, dir bool) *FileDialogItem
func (*FileDialogItem) CreateRenderer ¶
func (i *FileDialogItem) CreateRenderer() fyne.WidgetRenderer
func (*FileDialogItem) MouseIn ¶
func (i *FileDialogItem) MouseIn(*desktop.MouseEvent)
func (*FileDialogItem) MouseMoved ¶
func (i *FileDialogItem) MouseMoved(*desktop.MouseEvent)
func (*FileDialogItem) MouseOut ¶
func (i *FileDialogItem) MouseOut()
func (*FileDialogItem) SetLoc ¶
func (i *FileDialogItem) SetLoc(location fyne.URI) *FileDialogItem
func (*FileDialogItem) Tapped ¶
func (i *FileDialogItem) Tapped(_ *fyne.PointEvent)
type Orientation ¶
type Orientation int
Orientation controls the horizontal/vertical layout of a widget
const ( Horizontal Orientation = 0 Vertical Orientation = 1 )
Orientation constants to control widget layout
type Select ¶
type Select struct { widget.DisableableWidget // Alignment sets the text alignment of the select and its list of options. // // Since: 2.1 Alignment fyne.TextAlign Selected string Options []string PlaceHolder string OnChanged func(string) `json:"-"` // contains filtered or unexported fields }
Select widget has a list of options, with the current one shown, and triggers an event func when clicked
func NewSelect ¶
NewSelect creates a new select widget with the set list of options and changes handler
func (*Select) ClearSelected ¶
func (s *Select) ClearSelected()
ClearSelected clears the current option of the select widget. After clearing the current option, the Select widget's PlaceHolder will be displayed.
func (*Select) CreateRenderer ¶
func (s *Select) CreateRenderer() fyne.WidgetRenderer
CreateRenderer is a private method to Fyne which links this widget to its renderer
func (*Select) FocusGained ¶
func (s *Select) FocusGained()
FocusGained is called after this Select has gained focus.
Implements: fyne.Focusable
func (*Select) FocusLost ¶
func (s *Select) FocusLost()
FocusLost is called after this Select has lost focus.
Implements: fyne.Focusable
func (*Select) MinSize ¶
func (s *Select) MinSize() fyne.Size
MinSize returns the size that this widget should not shrink below
func (*Select) MouseIn ¶
func (s *Select) MouseIn(*desktop.MouseEvent)
MouseIn is called when a desktop pointer enters the widget
func (*Select) MouseMoved ¶
func (s *Select) MouseMoved(*desktop.MouseEvent)
MouseMoved is called when a desktop pointer hovers over the widget
func (*Select) MouseOut ¶
func (s *Select) MouseOut()
MouseOut is called when a desktop pointer exits the widget
func (*Select) Move ¶
func (s *Select) Move(pos fyne.Position)
Move changes the relative position of the select.
Implements: fyne.Widget
func (*Select) RefreshItem ¶
func (s *Select) RefreshItem()
func (*Select) Resize ¶
func (s *Select) Resize(size fyne.Size)
Resize sets a new size for a widget. Note this should not be used if the widget is being managed by a Layout within a Container.
func (*Select) SelectedIndex ¶
SelectedIndex returns the index value of the currently selected item in Options list. It will return -1 if there is no selection.
func (*Select) SetSelected ¶
SetSelected sets the current option of the select widget
func (*Select) SetSelectedIndex ¶
SetSelectedIndex will set the Selected option from the value in Options list at index position.
func (*Select) Tapped ¶
func (s *Select) Tapped(*fyne.PointEvent)
Tapped is called when a pointer tapped event is captured and triggers any tap handler
type SelectG ¶
type SelectG struct { widget.DisableableWidget // Alignment sets the text alignment of the select and its list of options. // // Since: 2.1 Alignment fyne.TextAlign Selected cnregion.Region Options []cnregion.Region PlaceHolder string OnChanged func(*SelectG) `json:"-"` // contains filtered or unexported fields }
Select widget has a list of options, with the current one shown, and triggers an event func when clicked
func NewSelectG ¶
NewSelect creates a new select widget with the set list of options and changes handler
func (*SelectG) ClearSelected ¶
func (s *SelectG) ClearSelected()
ClearSelected clears the current option of the select widget. After clearing the current option, the Select widget's PlaceHolder will be displayed.
func (*SelectG) CreateRenderer ¶
func (s *SelectG) CreateRenderer() fyne.WidgetRenderer
CreateRenderer is a private method to Fyne which links this widget to its renderer
func (*SelectG) FocusGained ¶
func (s *SelectG) FocusGained()
FocusGained is called after this Select has gained focus.
Implements: fyne.Focusable
func (*SelectG) FocusLost ¶
func (s *SelectG) FocusLost()
FocusLost is called after this Select has lost focus.
Implements: fyne.Focusable
func (*SelectG) MinSize ¶
func (s *SelectG) MinSize() fyne.Size
MinSize returns the size that this widget should not shrink below
func (*SelectG) MouseIn ¶
func (s *SelectG) MouseIn(*desktop.MouseEvent)
MouseIn is called when a desktop pointer enters the widget
func (*SelectG) MouseMoved ¶
func (s *SelectG) MouseMoved(*desktop.MouseEvent)
MouseMoved is called when a desktop pointer hovers over the widget
func (*SelectG) MouseOut ¶
func (s *SelectG) MouseOut()
MouseOut is called when a desktop pointer exits the widget
func (*SelectG) Move ¶
func (s *SelectG) Move(pos fyne.Position)
Move changes the relative position of the select.
Implements: fyne.Widget
func (*SelectG) RefreshItem ¶
func (s *SelectG) RefreshItem()
func (*SelectG) Resize ¶
func (s *SelectG) Resize(size fyne.Size)
Resize sets a new size for a widget. Note this should not be used if the widget is being managed by a Layout within a Container.
func (*SelectG) SelectedIndex ¶
SelectedIndex returns the index value of the currently selected item in Options list. It will return -1 if there is no selection.
func (*SelectG) SetSelected ¶
SetSelected sets the current option of the select widget
func (*SelectG) SetSelectedIndex ¶
SetSelectedIndex will set the Selected option from the value in Options list at index position.
func (*SelectG) Tapped ¶
func (s *SelectG) Tapped(*fyne.PointEvent)
Tapped is called when a pointer tapped event is captured and triggers any tap handler
type SelectGeneric ¶
type SelectGeneric struct { widget.DisableableWidget // Alignment sets the text alignment of the select and its list of options. // // Since: 2.1 Alignment fyne.TextAlign Selected item Options []item PlaceHolder string OnChanged func(*SelectGeneric) `json:"-"` // contains filtered or unexported fields }
Select widget has a list of options, with the current one shown, and triggers an event func when clicked
func NewSelectGeneric ¶
func NewSelectGeneric(options []item) *SelectGeneric
NewSelect creates a new select widget with the set list of options and changes handler
func (*SelectGeneric) Change ¶
func (s *SelectGeneric) Change(fn func(*SelectGeneric)) *SelectGeneric
func (*SelectGeneric) ClearSelected ¶
func (s *SelectGeneric) ClearSelected()
ClearSelected clears the current option of the select widget. After clearing the current option, the Select widget's PlaceHolder will be displayed.
func (*SelectGeneric) Col ¶
func (s *SelectGeneric) Col(num int) *SelectGeneric
func (*SelectGeneric) CreateRenderer ¶
func (s *SelectGeneric) CreateRenderer() fyne.WidgetRenderer
CreateRenderer is a private method to Fyne which links this widget to its renderer
func (*SelectGeneric) CurPage ¶
func (s *SelectGeneric) CurPage(curPage int) *SelectGeneric
func (*SelectGeneric) Do ¶
func (s *SelectGeneric) Do(fn func(*SelectGeneric)) *SelectGeneric
func (*SelectGeneric) FocusGained ¶
func (s *SelectGeneric) FocusGained()
FocusGained is called after this Select has gained focus.
Implements: fyne.Focusable
func (*SelectGeneric) FocusLost ¶
func (s *SelectGeneric) FocusLost()
FocusLost is called after this Select has lost focus.
Implements: fyne.Focusable
func (*SelectGeneric) Hide ¶
func (s *SelectGeneric) Hide()
Hide hides the select.
Implements: fyne.Widget
func (*SelectGeneric) MinSize ¶
func (s *SelectGeneric) MinSize() fyne.Size
MinSize returns the size that this widget should not shrink below
func (*SelectGeneric) MouseIn ¶
func (s *SelectGeneric) MouseIn(*desktop.MouseEvent)
MouseIn is called when a desktop pointer enters the widget
func (*SelectGeneric) MouseMoved ¶
func (s *SelectGeneric) MouseMoved(*desktop.MouseEvent)
MouseMoved is called when a desktop pointer hovers over the widget
func (*SelectGeneric) MouseOut ¶
func (s *SelectGeneric) MouseOut()
MouseOut is called when a desktop pointer exits the widget
func (*SelectGeneric) Move ¶
func (s *SelectGeneric) Move(pos fyne.Position)
Move changes the relative position of the select.
Implements: fyne.Widget
func (*SelectGeneric) RefreshItem ¶
func (s *SelectGeneric) RefreshItem()
func (*SelectGeneric) Resize ¶
func (s *SelectGeneric) Resize(size fyne.Size)
Resize sets a new size for a widget. Note this should not be used if the widget is being managed by a Layout within a Container.
func (*SelectGeneric) Row ¶
func (s *SelectGeneric) Row(num int) *SelectGeneric
func (*SelectGeneric) SelectedIndex ¶
func (s *SelectGeneric) SelectedIndex() int
SelectedIndex returns the index value of the currently selected item in Options list. It will return -1 if there is no selection.
func (*SelectGeneric) SetOptions ¶
func (s *SelectGeneric) SetOptions(opts []item) *SelectGeneric
func (*SelectGeneric) SetSelected ¶
func (s *SelectGeneric) SetSelected(text item)
SetSelected sets the current option of the select widget
func (*SelectGeneric) SetSelectedIndex ¶
func (s *SelectGeneric) SetSelectedIndex(index int)
SetSelectedIndex will set the Selected option from the value in Options list at index position.
func (*SelectGeneric) Tapped ¶
func (s *SelectGeneric) Tapped(*fyne.PointEvent)
Tapped is called when a pointer tapped event is captured and triggers any tap handler
func (*SelectGeneric) TypedKey ¶
func (s *SelectGeneric) TypedKey(event *fyne.KeyEvent)
TypedKey is called if a key event happens while this Select is focused.
Implements: fyne.Focusable
func (*SelectGeneric) TypedRune ¶
func (s *SelectGeneric) TypedRune(_ rune)
TypedRune is called if a text event happens while this Select is focused.
Implements: fyne.Focusable
type Slider ¶
type Slider struct { widget.BaseWidget Caption string Value float64 Min float64 Max float64 Step float64 Txt *canvas.Text MinTxt *canvas.Text TxtColor color.Color MinColor color.Color Orientation Orientation OnChanged func(float64) // contains filtered or unexported fields }
Slider is a widget that can slide between two fixed values.
func NewSliderWithData ¶
NewSliderWithData returns a slider connected with the specified data source.
Since: 2.0
func (*Slider) Bind ¶
Bind connects the specified data source to this Slider. The current value will be displayed and any changes in the data will cause the widget to update. User interactions with this Slider will set the value into the data source.
Since: 2.0
func (*Slider) CircleScale ¶
func (*Slider) CreateRenderer ¶
func (s *Slider) CreateRenderer() fyne.WidgetRenderer
CreateRenderer links this widget to its renderer.
func (*Slider) MinSize ¶
func (s *Slider) MinSize() fyne.Size
MinSize returns the size that this widget should not shrink below
type TextField ¶
type TextField struct { widget.BaseWidget Txt1 *canvas.Text Background *canvas.Rectangle OnTapped func(*TextField) `json:"-"` OnHoverIn func() `json:"-"` OnHoverOut func() `json:"-"` Data interface{} }
TextField is a widget for displaying a separator with themeable color.
Since: 1.4
func (*TextField) CreateRenderer ¶
func (me *TextField) CreateRenderer() fyne.WidgetRenderer
CreateRenderer returns a new renderer for the separator.
Implements: fyne.Widget
func (*TextField) MinSize ¶
func (me *TextField) MinSize() fyne.Size
MinSize returns the minimal size of the separator.
Implements: fyne.Widget
func (*TextField) MouseIn ¶
func (b *TextField) MouseIn(*desktop.MouseEvent)
MouseIn is called when a desktop pointer enters the widget
func (*TextField) MouseMoved ¶
func (b *TextField) MouseMoved(*desktop.MouseEvent)
MouseMoved is called when a desktop pointer hovers over the widget
func (*TextField) MouseOut ¶
func (b *TextField) MouseOut()
MouseOut is called when a desktop pointer exits the widget
func (*TextField) Style ¶
Style fyne.TextStyle{Bold: true} fyne.TextStyle{Italic: true} fyne.TextStyle{Monospace: true} fyne.TextStyle{TabWidth: 10}
type Y2hText ¶
type Y2hText struct { widget.BaseWidget Txt1 *canvas.Text Txt2 *canvas.Text Background *canvas.Rectangle OnTapped func(*Y2hText) `json:"-"` OnHoverIn func() `json:"-"` OnHoverOut func() `json:"-"` Data interface{} }
Y2hText is a widget for displaying a separator with themeable color.
Since: 1.4
func (*Y2hText) CreateRenderer ¶
func (me *Y2hText) CreateRenderer() fyne.WidgetRenderer
CreateRenderer returns a new renderer for the separator.
Implements: fyne.Widget
func (*Y2hText) MinSize ¶
func (me *Y2hText) MinSize() fyne.Size
MinSize returns the minimal size of the separator.
Implements: fyne.Widget
func (*Y2hText) MouseIn ¶
func (b *Y2hText) MouseIn(*desktop.MouseEvent)
MouseIn is called when a desktop pointer enters the widget
func (*Y2hText) MouseMoved ¶
func (b *Y2hText) MouseMoved(*desktop.MouseEvent)
MouseMoved is called when a desktop pointer hovers over the widget
func (*Y2hText) MouseOut ¶
func (b *Y2hText) MouseOut()
MouseOut is called when a desktop pointer exits the widget
func (*Y2hText) Style ¶
Style fyne.TextStyle{Bold: true} fyne.TextStyle{Italic: true} fyne.TextStyle{Monospace: true} fyne.TextStyle{TabWidth: 10}