views

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnClickLogin

func OnClickLogin(ctx *app.AppContext, password string, loginWindow fyne.Window)

func RefreshListData

func RefreshListData(ctx *amnesiaApp.AppContext)

Types

type ConfirmView

type ConfirmView struct {
	Window    fyne.Window
	OnYes     func()
	OnNo      func()
	Container *fyne.Container
}

func NewConfirmView

func NewConfirmView(ctx *amnesiaApp.AppContext, msg string) *ConfirmView

func (*ConfirmView) SetOnNoEvent

func (v *ConfirmView) SetOnNoEvent(callback func())

func (*ConfirmView) SetOnYesEvent

func (v *ConfirmView) SetOnYesEvent(callback func())

type ErrorView

type ErrorView struct {
	Window    fyne.Window
	Container *fyne.Container
}

func NewErrorView

func NewErrorView(app fyne.App, appName string, err string, crash bool) ErrorView

type ListView

type ListView struct {
	Window fyne.Window

	Size      fyne.Size
	Container *fyne.Container
}

func NewListView

func NewListView(ctx *amnesiaApp.AppContext) ListView

type LoginView

type LoginView struct {
	Window    fyne.Window
	Container *fyne.Container
}

func NewLoginView

func NewLoginView(ctx *app.AppContext) LoginView

type ResourceAddView

type ResourceAddView struct {
	Title string

	// allow us to have some action in view itself.
	OnButtonClick func()

	Button    *widget.Button
	Container *fyne.Container
}

func NewResourceAddView

func NewResourceAddView(ctx *amnesiaApp.AppContext, previousView ListView) *ResourceAddView

func (*ResourceAddView) SetOnButtonClickEvent

func (v *ResourceAddView) SetOnButtonClickEvent(callback func())

type ResourceEditView

type ResourceEditView struct {
	Title     string
	Container *fyne.Container
}

func NewResourceEditView

func NewResourceEditView(
	ctx *amnesiaApp.AppContext,
	token string,
	resource models.Resource,
	previousView ResourceView,
	listView ListView,
) ResourceEditView

type ResourceView

type ResourceView struct {
	Title     string
	Container *fyne.Container
}

func NewResourceView

func NewResourceView(ctx *amnesiaApp.AppContext, token string, resource models.Resource, previousView ListView) ResourceView

Jump to

Keyboard shortcuts

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