ui

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: GPL-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUI

func CreateUI()

Types

type Page

type Page interface {
	Render(gtx layout.Context) layout.Dimensions
}

type UI

type UI struct {
	GlobalState globalstate.GlobalState

	Tabs []UITab
	// contains filtered or unexported fields
}

func (*UI) GLSGTFSLoadComputeFeeds

func (ui *UI) GLSGTFSLoadComputeFeeds(gtfsFeedIDs []int, purgeUpdate bool)

func (*UI) GLSMobrouteRuntime

func (ui *UI) GLSMobrouteRuntime()

GLSGTFSMobrouteRuntime is a global loading service to load the MobrouteRuntime (fetches source MDB, initializes SQLite db connection).

UI is blocked via AppStageMessage until complete.

func (*UI) RenderMessageUI

func (ui *UI) RenderMessageUI(gtx layout.Context, loadingMessage string) layout.Dimensions

RenderMessageUI renders a UI which is just a full page that is displayed blocking the main UI while state is being resolved.

Used for both:

  • MobrouteRuntimeInitialization (MDB CSV fetch / SQLite setup)
  • GTFS fetch/load

func (*UI) RenderTabbedUI

func (ui *UI) RenderTabbedUI(gtx layout.Context) layout.Dimensions

func (*UI) Run

func (ui *UI) Run(w *app.Window) error

type UITab

type UITab struct {
	Tabname   string
	Clickable widget.Clickable
	Page      Page
}

Jump to

Keyboard shortcuts

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