page

package
v0.0.0-...-df3f4e6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: BSD-3-Clause Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Album

type Album struct {
	bus.Connection
	*theme.Theme
}

func (*Album) Layout

func (a *Album) Layout(gtx C) D

func (*Album) Update

func (*Album) Update(data any) bool

Update consumes data updates.

type Albums

type Albums struct {
	bus.Connection
	*theme.Theme
}

func (*Albums) Layout

func (a *Albums) Layout(gtx C) D

func (*Albums) Update

func (*Albums) Update(data any) bool

Update consumes data updates.

type C

type C = layout.Context

type D

type D = layout.Dimensions

type Home

type Home struct {
	bus.Connection

	Theme *theme.Theme
	// contains filtered or unexported fields
}

func NewHome

func NewHome(conn bus.Connection, cli *client.Client) *Home

func (*Home) Layout

func (h *Home) Layout(gtx C) D

func (*Home) Update

func (p *Home) Update(data any) bool

type Image

type Image struct {
	Title string
	Date  time.Time
	// contains filtered or unexported fields
}

type Timeline

type Timeline struct {
	// contains filtered or unexported fields
}

func NewTimeline

func NewTimeline(conn bus.Connection, cli *client.Client, expl *explorer.Explorer) *Timeline

func (*Timeline) Layout

func (tl *Timeline) Layout(gtx C) D

func (*Timeline) Update

func (tl *Timeline) Update(data any) bool

Update consumes data updates.

type UI

type UI struct {
	bus.Connection

	Theme     *theme.Theme
	Pages     router.Router
	SidePanel widget.SidePanel
	// contains filtered or unexported fields
}

func New

func New(cfg config.Client) *UI

func (*UI) Layout

func (ui *UI) Layout(gtx C) D

func (*UI) Main

func (ui *UI) Main(win *app.Window, conn bus.Connection) error

func (*UI) Update

func (ui *UI) Update(up any) bool

Update the UI state based on external messages.

type Upload

type Upload struct {
	// contains filtered or unexported fields
}

func NewUpload

func NewUpload(conn bus.Connection, cli *client.Client, expl *explorer.Explorer, th *theme.Theme) *Upload

func (*Upload) Layout

func (up *Upload) Layout(gtx C) D

func (*Upload) Update

func (up *Upload) Update(data any) bool

Update consumes data updates.

Jump to

Keyboard shortcuts

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