gui

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: AGPL-3.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GUI

type GUI struct {
	// Base container that splits the window into the sidebar and main screen
	Base *container.Split
	// Chat screen
	Chat *schat.ScreenChat
	// All dialogs used by Ping
	Dialogs dialogs.DialogTable
	// Manages inner windows
	InnerWindows *container.MultipleWindows
	// Options screen
	Options          *sopt.ScreenOptions
	OutgoingRequests chan prot.ChatRequest
	// Manages screens
	ScreenManager *screen.ScreenManager
	// Sidebar
	Sidebar *sside.ScreenSidebar
	// The main window
	Window fyne.Window
}

func InitGUI

func InitGUI(
	a fyne.App, c *chat.ChatCache,
	u *user.UserCache, loadingWindow fyne.Window, opt *options.Options,
	onQuit func(),
) *GUI

InitGUI: Initializes the main window and all objects in it, closes the loading window and then shows the main window Parameters:

	a (fyne.App) - The fyne application the window will be initialized in
 c (*chat.ChatCache) - Data/cache for chats
 u (*user.UserCache) - Information pertaining to users
	loadingWindow (fyne.Window) - The loading window
 opt (*options.Options) - Options/settings
 onQuit (func()) - Code to run when quiting Ping (main window closed)

Returns:

*GUI - The main window and all its objects

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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