roomlist

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 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 AllRoomsButton

type AllRoomsButton struct {
	*gtk.ToggleButton
	// contains filtered or unexported fields
}

AllRoomsButton describes the button that says "All rooms".

func NewAllRoomsButton

func NewAllRoomsButton(ctx context.Context) *AllRoomsButton

NewAllRoomsButton creates a new AllRoomsButton.

type Browser

type Browser struct {
	*gtk.Box
	// contains filtered or unexported fields
}

Browser describes a widget holding

func New

func New(ctx context.Context, ctrl space.Controller) *Browser

New creates a new spaces browser.

func (*Browser) InvalidateRooms

func (b *Browser) InvalidateRooms()

InvalidateRooms refetches the room list and updates everything.

func (*Browser) Room

func (b *Browser) Room(id matrix.RoomID) *room.Room

Room gets the room with the given ID, or nil if it's not known.

func (*Browser) Search

func (b *Browser) Search(query string)

Search searches the room browwser for the given query.

func (*Browser) SearchBar

func (b *Browser) SearchBar() *gtk.SearchBar

SearchBar returns the list's search bar widget.

func (*Browser) SetSelectedRoom

func (b *Browser) SetSelectedRoom(id matrix.RoomID)

SetSelectedRoom sets the given room ID as the selected room row. It does not activate the room.

type SpaceButton

type SpaceButton struct {
	*gtk.ToggleButton
	// contains filtered or unexported fields
}

SpaceButton describes a button of a space.

func NewSpaceButton

func NewSpaceButton(ctx context.Context, spaceID matrix.RoomID) *SpaceButton

NewSpaceButton creates a new space button.

func (*SpaceButton) SpaceID

func (b *SpaceButton) SpaceID() matrix.RoomID

SpaceID returns the space ID of the button. If this returns an empty string, then assume it returned no space (or all rooms).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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