sside

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

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(chatID int, 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) ChatMetadataRespGet added in v0.4.0

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

func (*ScreenSidebar) InitChatsList added in v0.4.0

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

func (*ScreenSidebar) MemberRequestGet added in v0.4.0

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

func (*ScreenSidebar) MemberRequestToggle added in v0.4.0

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

type WidgetTableSidebar

type WidgetTableSidebar struct {
	// Prompts the user to enter the ID of a chat they want to join
	ButtonJoinChat *widget.Button
	// List of chat cards which display info about a chat and open that chat when clicked
	ChatsList *widget.List
}

Jump to

Keyboard shortcuts

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