sside

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: 12 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 ScreenSidebar

type ScreenSidebar struct {
	// Tabs for DMs, Chats, and Friends in that order
	Base                    *container.AppTabs
	OutgoingReqChatMetadata chan prot.ChatMetadataRequest
	OutgoingReqMember       chan prot.MemberRequest
	ScreenManager           *screen.ScreenManager
	// All widgets used in the sidebar
	Widgets WidgetTableSidebar
	Window  fyne.Window
}

func InitScreenSidebar

func InitScreenSidebar(w fyne.Window, s *screen.ScreenManager, c *chat.ChatCache, u *user.UserCache, opt *options.Options) *ScreenSidebar

func (*ScreenSidebar) ChatMetadataRequestCreate added in v0.4.0

func (g *ScreenSidebar) ChatMetadataRequestCreate(u *user.UserCache)

func (*ScreenSidebar) ChatMetadataRequestGet added in v0.4.0

func (g *ScreenSidebar) ChatMetadataRequestGet(chatIDs []int, u *user.UserCache)

func (*ScreenSidebar) ChatMetadataRequestJoin added in v0.4.0

func (g *ScreenSidebar) ChatMetadataRequestJoin(chatID int, u *user.UserCache)

func (*ScreenSidebar) ChatMetadataRespCreate added in v0.4.1

func (g *ScreenSidebar) ChatMetadataRespCreate(u *user.UserCache)

func (*ScreenSidebar) ChatMetadataRespGet added in v0.4.0

func (g *ScreenSidebar) ChatMetadataRespGet(
	resp prot.ChatMetadataResponse, c *chat.ChatCache,
)

func (*ScreenSidebar) ChatMetadataRespJoin added in v0.4.1

func (g *ScreenSidebar) ChatMetadataRespJoin(u *user.UserCache)

func (*ScreenSidebar) InitChatsList added in v0.4.0

func (g *ScreenSidebar) InitChatsList(c *chat.ChatCache, u *user.UserCache)

type WidgetTableSidebar

type WidgetTableSidebar struct {
	// Sends an outgoing Create chat metadata request in order to create a new chat
	ButtonCreateChat *widget.Button
	// Prompts the user to enter the ID of a chat they want to join
	ButtonJoinChat *widget.Button
	// Opens options inner window
	ButtonOptions *widget.Button
	// List of chat cards which display info about a chat and open that chat when clicked
	ChatsList *widget.List
	// Labels the chats tab as chats, sits at the tob of the tab container
	LabelChats *widget.Label
	// Labels the DMs tab as DMs, sits at the tob of the tab container
	LabelDMs *widget.Label
}

Jump to

Keyboard shortcuts

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