frontend

package
v0.0.0-...-7e2d19e Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APPLICATION_WINDOW_UI string
View Source
var HOME_WINDOW_UI string
View Source
var WELCOME_WINDOW_UI string

Functions

func BindUI

func BindUI(ui Bindable) error

func NewApplication

func NewApplication(id string) *gtk.Application

Types

type ApplicationWindow

type ApplicationWindow struct {
	ID             *gtk.ApplicationWindow `gtk:"window"`
	Infobar        *gtk.InfoBar           `gtk:"infobar"`
	InfobarMessage *gtk.Label             `gtk:"infobar-message"`
	Page           *gtk.Box               `gtk:"page"`
	CurrentPage    *gtk.Viewport
}

func (*ApplicationWindow) Activate

func (a *ApplicationWindow) Activate()

func (*ApplicationWindow) Goto

func (a *ApplicationWindow) Goto(viewport *gtk.Viewport)

func (*ApplicationWindow) InfobarClose

func (a *ApplicationWindow) InfobarClose()

func (*ApplicationWindow) ShowError

func (a *ApplicationWindow) ShowError(err error)

func (*ApplicationWindow) Signals

func (a *ApplicationWindow) Signals() Signals

func (*ApplicationWindow) UI

func (a *ApplicationWindow) UI() string

type Bindable

type Bindable interface {
	UI() string
	Signals() Signals
}

type HomeWindow

type HomeWindow struct {
	NoSignals
	Viewport *gtk.Viewport `gtk:"home"`
	Account  *mau.Account
}

func (*HomeWindow) UI

func (h *HomeWindow) UI() string

type NoSignals

type NoSignals struct{}

func (*NoSignals) Signals

func (a *NoSignals) Signals() Signals

type Signals

type Signals map[string]interface{}

type WelcomeWindow

type WelcomeWindow struct {
	AppWindow *ApplicationWindow

	Viewport          *gtk.Viewport `gtk:"new_account"`
	Name              *gtk.Entry    `gtk:"name"`
	Email             *gtk.Entry    `gtk:"email"`
	Passphrase        *gtk.Entry    `gtk:"passphrase"`
	ConfirmPassphrase *gtk.Entry    `gtk:"confirm_passphrase"`
}

func (*WelcomeWindow) CreateClicked

func (w *WelcomeWindow) CreateClicked()

func (*WelcomeWindow) Signals

func (w *WelcomeWindow) Signals() Signals

func (*WelcomeWindow) UI

func (w *WelcomeWindow) UI() string

Jump to

Keyboard shortcuts

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