Documentation
¶
Index ¶
- type Controller
- type List
- func (l *List) AddRoom(roomID matrix.RoomID)
- func (l *List) InvalidateFilter()
- func (l *List) InvalidateSections()
- func (l *List) IsSearching() bool
- func (l *List) MoveRoomToSection(src matrix.RoomID, dst *section.Section) bool
- func (l *List) MoveRoomToTag(src matrix.RoomID, tag matrix.TagName) bool
- func (l *List) OpenRoom(id matrix.RoomID)
- func (l *List) OpenRoomInTab(id matrix.RoomID)
- func (l *List) Room(id matrix.RoomID) *room.Room
- func (l *List) RoomIsVisible(roomID matrix.RoomID) bool
- func (l *List) Search(str string)
- func (l *List) SetSelectedRoom(id matrix.RoomID)
- func (l *List) SetSpaceID(spaceID matrix.RoomID)
- func (l *List) SpaceID() matrix.RoomID
- func (l *List) VAdjustment() *gtk.Adjustment
- type RoomTabOpener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { // OpenRoom opens the given room. The function should call back // List.SetSelectedRoom. OpenRoom(matrix.RoomID) // ForwardTypingTo returns the widget that typing events that are uncaught // in the List should be forwarded to. ForwardTypingTo() gtk.Widgetter }
Controller describes the controller requirement.
type List ¶
type List struct { *gtk.Box SearchBar *gtk.SearchBar // contains filtered or unexported fields }
List describes a room list showing rooms within a space (or no space, i.e. the global space).
func (*List) InvalidateFilter ¶
func (l *List) InvalidateFilter()
InvalidateFilter invalidates all sections' filters.
func (*List) InvalidateSections ¶
func (l *List) InvalidateSections()
InvalidateSections throws away the session box and recreates a new one from the internal list. It will sort the internal sections list.
func (*List) IsSearching ¶
IsSearching returns true if the user is searching for rooms.
func (*List) MoveRoomToSection ¶
MoveRoomToSection moves the room w/ the given ID to the given section. False is returend if the return doesn't make sense.
func (*List) MoveRoomToTag ¶
MoveRoomToTag moves the room to the new tag.
func (*List) OpenRoomInTab ¶
OpenRoomInTab opens the given room in a new tab.
func (*List) RoomIsVisible ¶
RoomIsVisible returns true if the room with the given ID should be visible.
func (*List) SetSelectedRoom ¶
SetSelectedRoom sets the given room ID as the selected room row. It does not activate the room.
func (*List) SetSpaceID ¶
SetSpaceID sets the space room ID of the list. This causes the list to filter out all rooms, only leaving behind rooms that belong to the given space. Sections that don't have any rooms after filtering will be hidden.
func (*List) SpaceID ¶
SpaceID returns the ID of the currently displayed space. If it's empty, then the list will show all rooms, i.e. no filtering is done.
func (*List) VAdjustment ¶
func (l *List) VAdjustment() *gtk.Adjustment
VAdjustment returns the list's ScrolledWindow's vertical adjustment for scrolling.
type RoomTabOpener ¶
RoomTabOpener can optionally be implemented by Application.