widgets

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MinWidthEntry added in v0.3.3

type MinWidthEntry struct {
	widget.Entry
	// contains filtered or unexported fields
}

MinWidthEntry is an entry widget which has a minimum width

func NewMinWidthEntry added in v0.3.3

func NewMinWidthEntry(minWidth float32, placeholder string) *MinWidthEntry

NewMinWidthEntry returns a new MinWidthEntry widget

func (*MinWidthEntry) MinSize added in v0.3.3

func (d *MinWidthEntry) MinSize() fyne.Size

MinSize is the minimum size of the widget

type Task added in v0.3.3

type Task struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

Task is the implementation of the Task widget. This is essentially TasklistItem v2.

func NewTask added in v0.3.3

func NewTask() *Task

NewTask returns a pointer to a newly initialized Task

func NewTaskWithData added in v0.3.3

func NewTaskWithData(taskData models.Task) *Task

NewTaskWithData returns a pointer to a new Task object initialized with the supplied taskData

func (*Task) CreateRenderer added in v0.3.3

func (t *Task) CreateRenderer() fyne.WidgetRenderer

CreateRenderer returns a new WidgetRenderer for this widget.

func (*Task) SetTask added in v0.3.3

func (t *Task) SetTask(taskData models.Task)

SetTask sets the task to be represented by the widget

func (*Task) Task added in v0.3.3

func (t *Task) Task() models.Task

Task returns the task currently represented by the widget

type TaskEditorV2 added in v0.3.3

type TaskEditorV2 struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

TaskEditorV2 is the struct implementing the TaskEditorV2 widget. Use NewTaskEditorV2() to create a new instance of the widget.

func NewTaskEditorV2 added in v0.3.3

func NewTaskEditorV2() *TaskEditorV2

NewTaskEditorV2 returns a pointer to a newly initialized instance of the TaskEditorV2 widget

func (*TaskEditorV2) CreateRenderer added in v0.3.3

func (t *TaskEditorV2) CreateRenderer() fyne.WidgetRenderer

CreateRenderer returns a new WidgetRenderer for this widget.

func (*TaskEditorV2) Reset added in v0.3.3

func (t *TaskEditorV2) Reset()

Reset resets the editor widget to its default state

func (*TaskEditorV2) SetTask added in v0.3.3

func (t *TaskEditorV2) SetTask(task models.Task)

SetTask sets the task to be edited

func (*TaskEditorV2) Task added in v0.3.3

func (t *TaskEditorV2) Task() models.Task

Task returns the task currently being edited

type TaskSelector added in v0.3.3

type TaskSelector struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

TaskSelector is the implementation of the task selector widget

func NewTaskSelector added in v0.3.3

func NewTaskSelector() *TaskSelector

NewTaskSelector returns a pointer to a new, initialized instance of TaskSelector

func (*TaskSelector) CreateRenderer added in v0.3.3

func (t *TaskSelector) CreateRenderer() fyne.WidgetRenderer

CreateRenderer returns a new WidgetRenderer for this widget.

func (*TaskSelector) FilterTasks added in v0.3.3

func (t *TaskSelector) FilterTasks()

FilterTasks loads and filters tasks from the database

func (*TaskSelector) HasSelected added in v0.3.3

func (t *TaskSelector) HasSelected() bool

HasSelected indicates whether a selection has been made or not

func (*TaskSelector) MinSize added in v0.3.3

func (t *TaskSelector) MinSize() fyne.Size

MinSize overrides the minimum size of this widget. A minimum width is enforced.

func (*TaskSelector) Observable added in v0.3.3

func (t *TaskSelector) Observable() rxgo.Observable

Observable returns an rxgo Observable for the widget's command channel

func (*TaskSelector) Reset added in v0.3.3

func (t *TaskSelector) Reset()

Reset resets the widget to its default state

func (*TaskSelector) Selected added in v0.3.3

func (t *TaskSelector) Selected() models.Task

Selected returns the selected task or nil if there is no selection

func (*TaskSelector) SetList added in v0.3.3

func (t *TaskSelector) SetList(tasks models.TaskList)

SetList sets the list of Task objects used in the selector Deprecated

type TaskSelectorErrorEvent added in v0.3.3

type TaskSelectorErrorEvent struct {
	// Err is the underlying error
	Err error
}

TaskSelectorErrorEvent contains an error that occurred during the lifetime of the widget

type TaskSelectorSelectedEvent added in v0.3.3

type TaskSelectorSelectedEvent struct {
	// SelectedTask is the selected task item; nil if there is no selection
	SelectedTask models.Task
}

TaskSelectorSelectedEvent contains the task that is sent to the command channel when a selection happens

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL