fwk

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

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

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

Documentation

Overview

Package fwk stands for framework

Index

Constants

View Source
const (
	SettingsPageURL      URL = "/settings"
	AccountsPageURL          = SettingsPageURL + "/accounts"
	ContactsPageURL          = SettingsPageURL + "/contacts"
	ThemePageURL             = SettingsPageURL + "/theme"
	NotificationsPageURL     = SettingsPageURL + "/notifications"
	HelpPageURL              = SettingsPageURL + "/help"
	AboutPageURL             = SettingsPageURL + "/about"
	PrivacyPageURL           = SettingsPageURL + "/privacy"
	ChatPageURL          URL = "/chat"
	ChatRoomPageURL      URL = "/chat-room"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Animation

type Animation = component.VisibilityAnimation

type Dim

type Dim = layout.Dimensions

type Gtx

type Gtx = layout.Context

type Manager

type Manager interface {
	NavigateToPage(page Page, AfterNavCallback func())
	NavigateToUrl(pageURL URL, AfterNavCallback func())
	PopUp()
	CurrentPage() Page
	GetWindowWidthInDp() int
	GetWindowWidthInPx() int
	GetWindowHeightInDp() int
	GetWindowHeightInPx() int
	IsStageRunning() bool
	Theme() *material.Theme
	Service() service.Service
	Window() *app.Window
	Notifier() notify.Notifier
	Modal() Modal
	PageFromUrl(url URL) Page
	SystemInsets() system.Insets
	ShouldDrawSidebar() bool
	Snackbar() Snackbar
}
type Modal interface {
	Show(widget layout.Widget, onBackdropClickCallback func(), animation Animation)
	Dismiss(afterDismiss func())
	View
}

type Page

type Page interface {
	View
	URL() URL
}

type Snackbar

type Snackbar interface {
	Show(txt string, actionButton *widget.Clickable, actionColor color.NRGBA, actionText string)
	View
}

type URL

type URL string

type View

type View interface {
	Layout(gtx Gtx) Dim
}

type ViewWidget

type ViewWidget interface {
	Layout(gtx Gtx, widget layout.Widget) Dim
}

Jump to

Keyboard shortcuts

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