Documentation ¶
Overview ¶
Package ui contains the main gomuks UI.
Index ¶
- Constants
- Variables
- func NewGomuksUI(gmx ifc.Gomuks) ifc.GomuksUI
- func Rand(n int) (str string)
- type Alias
- type Command
- type CommandAutocomplete
- type CommandAutocompleter
- type CommandHandler
- type CommandProcessor
- func (ch *CommandProcessor) Autocomplete(roomView *RoomView, text string, cursorOffset int) ([]string, string, bool)
- func (ch *CommandProcessor) AutocompleteCommand(word string) (completions []string)
- func (ch *CommandProcessor) HandleCommand(cmd *Command)
- func (ch *CommandProcessor) ParseCommand(roomView *RoomView, text string) *Command
- type EmojiView
- type FuzzySearchModal
- type GomuksUI
- func (ui *GomuksUI) Finish()
- func (ui *GomuksUI) HandleNewPreferences()
- func (ui *GomuksUI) Init()
- func (ui *GomuksUI) MainView() ifc.MainView
- func (ui *GomuksUI) NewLoginView() mauview.Component
- func (ui *GomuksUI) NewMainView() mauview.Component
- func (ui *GomuksUI) OnLogin()
- func (ui *GomuksUI) OnLogout()
- func (ui *GomuksUI) Render()
- func (ui *GomuksUI) RunExternal(executablePath string, args ...string) error
- func (ui *GomuksUI) SetView(name View)
- func (ui *GomuksUI) Start() error
- func (ui *GomuksUI) Stop()
- type GradientTable
- type HelpModal
- type HideMessage
- type InvertedToggleMessage
- type LoginView
- type MainView
- func (view *MainView) AddRoom(room *rooms.Room)
- func (view *MainView) AskPassword(title, thing, placeholder string, isNew bool) (string, bool)
- func (view *MainView) Blur()
- func (view *MainView) Bump(room *rooms.Room)
- func (view *MainView) BumpFocus(roomView *RoomView)
- func (view *MainView) Draw(screen mauview.Screen)
- func (view *MainView) Focus()
- func (view *MainView) GetRoom(roomID id.RoomID) ifc.RoomView
- func (view *MainView) HideModal()
- func (view *MainView) InputChanged(roomView *RoomView, text string)
- func (view *MainView) LoadHistory(roomID id.RoomID)
- func (view *MainView) MarkRead(roomView *RoomView)
- func (view *MainView) NotifyMessage(room *rooms.Room, message ifc.Message, should pushrules.PushActionArrayShould)
- func (view *MainView) OnKeyEvent(event mauview.KeyEvent) bool
- func (view *MainView) OnMouseEvent(event mauview.MouseEvent) bool
- func (view *MainView) OnPasteEvent(event mauview.PasteEvent) bool
- func (view *MainView) OpenSyncingModal() ifc.SyncingModal
- func (view *MainView) RemoveRoom(room *rooms.Room)
- func (view *MainView) SetRooms(rooms *rooms.RoomCache)
- func (view *MainView) SetTyping(roomID id.RoomID, users []id.UserID)
- func (view *MainView) ShowBare(roomView *RoomView)
- func (view *MainView) ShowModal(modal mauview.Component)
- func (view *MainView) SwitchRoom(tag string, room *rooms.Room)
- func (view *MainView) UpdateTags(room *rooms.Room)
- type MemberList
- type MessageDirection
- type MessageView
- func (view *MessageView) AddMessage(ifcMessage ifc.Message, direction MessageDirection)
- func (view *MessageView) AddScrollOffset(diff int)
- func (view *MessageView) CapturePlaintext(height int) string
- func (view *MessageView) Draw(screen mauview.Screen)
- func (view *MessageView) Height() int
- func (view *MessageView) IsAtTop() bool
- func (view *MessageView) OnMouseEvent(event mauview.MouseEvent) bool
- func (view *MessageView) SetSelected(message *messages.UIMessage)
- func (view *MessageView) TotalHeight() int
- func (view *MessageView) Unload()
- type NewlineKeybindMessage
- type OrderedRoom
- type PasswordModal
- type RoomList
- func (list *RoomList) Add(room *rooms.Room)
- func (list *RoomList) AddScrollOffset(offset int)
- func (list *RoomList) AddToTag(tag rooms.RoomTag, room *rooms.Room)
- func (list *RoomList) Blur()
- func (list *RoomList) Bump(room *rooms.Room)
- func (list *RoomList) Clear()
- func (list *RoomList) Contains(roomID id.RoomID) bool
- func (list *RoomList) ContentHeight() (height int)
- func (list *RoomList) Draw(screen mauview.Screen)
- func (list *RoomList) First() (string, *rooms.Room)
- func (list *RoomList) Focus()
- func (list *RoomList) GetTagDisplayName(tag string) string
- func (list *RoomList) HasSelected() bool
- func (list *RoomList) Last() (string, *rooms.Room)
- func (list *RoomList) Next() (string, *rooms.Room)
- func (list *RoomList) NextWithActivity() (string, *rooms.Room)
- func (list *RoomList) OnKeyEvent(_ mauview.KeyEvent) bool
- func (list *RoomList) OnMouseEvent(event mauview.MouseEvent) bool
- func (list *RoomList) OnPasteEvent(_ mauview.PasteEvent) bool
- func (list *RoomList) Previous() (string, *rooms.Room)
- func (list *RoomList) Remove(room *rooms.Room)
- func (list *RoomList) RemoveFromTag(tag string, room *rooms.Room)
- func (list *RoomList) Selected() (string, *rooms.Room)
- func (list *RoomList) SelectedRoom() *rooms.Room
- func (list *RoomList) SetSelected(tag string, room *rooms.Room)
- type RoomView
- func (view *RoomView) AddEdit(evt *muksevt.Event)
- func (view *RoomView) AddEvent(evt *muksevt.Event) ifc.Message
- func (view *RoomView) AddHistoryEvent(evt *muksevt.Event)
- func (view *RoomView) AddReaction(evt *muksevt.Event, key string)
- func (view *RoomView) AddRedaction(redactedEvt *muksevt.Event)
- func (view *RoomView) AddServiceMessage(text string)
- func (view *RoomView) AutocompleteEmoji(word string) (completions []string)
- func (view *RoomView) AutocompleteRoom(existingText string) (completions []completion)
- func (view *RoomView) AutocompleteUser(existingText string) (completions []completion)
- func (view *RoomView) Blur()
- func (view *RoomView) ClearAllContext()
- func (view *RoomView) CopyToClipboard(text string, register string)
- func (view *RoomView) Download(url id.ContentURI, file *attachment.EncryptedFile, filename string, ...)
- func (view *RoomView) Draw(screen mauview.Screen)
- func (view *RoomView) EditNext()
- func (view *RoomView) EditPrevious()
- func (view *RoomView) Focus()
- func (view *RoomView) GetEvent(eventID id.EventID) ifc.Message
- func (view *RoomView) GetInputText() string
- func (view *RoomView) GetStatus() string
- func (view *RoomView) InputSubmit(text string)
- func (view *RoomView) InputTabComplete(text string, cursorOffset int)
- func (view *RoomView) MessageView() *MessageView
- func (view *RoomView) MxRoom() *rooms.Room
- func (view *RoomView) OnKeyEvent(event mauview.KeyEvent) bool
- func (view *RoomView) OnMouseEvent(event mauview.MouseEvent) bool
- func (view *RoomView) OnPasteEvent(event mauview.PasteEvent) bool
- func (view *RoomView) OnSelect(message *messages.UIMessage)
- func (view *RoomView) Redact(eventID id.EventID, reason string)
- func (view *RoomView) SelectNext()
- func (view *RoomView) SelectPrevious()
- func (view *RoomView) SendMessage(msgtype event.MessageType, text string)
- func (view *RoomView) SendMessageHTML(msgtype event.MessageType, text, html string)
- func (view *RoomView) SendMessageMedia(path string)
- func (view *RoomView) SendReaction(eventID id.EventID, reaction string)
- func (view *RoomView) SetCompletions(completions []string)
- func (view *RoomView) SetEditing(evt *muksevt.Event)
- func (view *RoomView) SetInputChangedFunc(fn func(room *RoomView, text string)) *RoomView
- func (view *RoomView) SetInputText(newText string) *RoomView
- func (view *RoomView) SetTyping(users []id.UserID)
- func (view *RoomView) StartSelecting(reason SelectReason, content string)
- func (view *RoomView) StopSelecting()
- func (view *RoomView) Update()
- func (view *RoomView) UpdateUserList()
- type SelectReason
- type SimpleToggleMessage
- type SyncingModal
- type TagNameList
- type TagRoomList
- func (trl *TagRoomList) All() []*OrderedRoom
- func (trl *TagRoomList) Bump(mxRoom *rooms.Room)
- func (trl *TagRoomList) Draw(screen mauview.Screen)
- func (trl *TagRoomList) DrawHeader(screen mauview.Screen)
- func (trl *TagRoomList) FirstVisible() *rooms.Room
- func (trl *TagRoomList) HasInvisibleRooms() bool
- func (trl *TagRoomList) HasVisibleRooms() bool
- func (trl *TagRoomList) Index(room *rooms.Room) int
- func (trl *TagRoomList) IndexVisible(room *rooms.Room) int
- func (trl *TagRoomList) Insert(order json.Number, mxRoom *rooms.Room)
- func (trl *TagRoomList) IsCollapsed() bool
- func (trl *TagRoomList) IsEmpty() bool
- func (trl *TagRoomList) LastVisible() *rooms.Room
- func (trl *TagRoomList) Length() int
- func (trl *TagRoomList) Remove(room *rooms.Room)
- func (trl *TagRoomList) RemoveIndex(index int)
- func (trl *TagRoomList) RenderHeight() int
- func (trl *TagRoomList) ShouldBeAfter(room1 *OrderedRoom, room2 *OrderedRoom) bool
- func (trl *TagRoomList) ToggleCollapse()
- func (trl *TagRoomList) TotalLength() int
- func (trl *TagRoomList) Visible() []*OrderedRoom
- type ToggleMessage
- type VerificationModal
- func (vm *VerificationModal) Blur()
- func (vm *VerificationModal) Focus()
- func (vm *VerificationModal) OnCancel(cancelledByUs bool, reason string, _ event.VerificationCancelCode)
- func (vm *VerificationModal) OnKeyEvent(event mauview.KeyEvent) bool
- func (vm *VerificationModal) OnSuccess()
- func (vm *VerificationModal) VerificationMethods() []crypto.VerificationMethod
- func (vm *VerificationModal) VerifySASMatch(device *crypto.DeviceIdentity, data crypto.SASData) bool
- type View
Constants ¶
View Source
const ( SelectReply SelectReason = "reply to" SelectReact = "react to" SelectRedact = "redact" SelectEdit = "edit" SelectDownload = "download" SelectOpen = "open" SelectCopy = "copy" )
View Source
const ( TimestampSenderGap = 1 SenderSeparatorGap = 1 SenderMessageGap = 3 )
View Source
const ( UserListBorderWidth = 1 UserListWidth = 20 StaticHorizontalSpace = UserListBorderWidth + UserListWidth TopicBarHeight = 1 StatusBarHeight = 1 MaxInputHeight = 5 )
Constants defining the size of the room view grid.
View Source
const PaddingAtTop = 5
View Source
const WheelScrollOffsetDiff = 3
Variables ¶
View Source
var ExtensionRainbow = &extRainbow{}
View Source
var TagDisplayNameStyle = tcell.StyleDefault.Underline(true).Bold(true)
View Source
var TagRoomCountStyle = tcell.StyleDefault.Italic(true)
Functions ¶
Types ¶
type Command ¶
type CommandAutocomplete ¶ added in v0.2.0
type CommandAutocomplete Command
type CommandAutocompleter ¶ added in v0.2.0
type CommandAutocompleter func(cmd *CommandAutocomplete) (completions []string, newText string)
type CommandHandler ¶
type CommandHandler func(cmd *Command)
type CommandProcessor ¶
type CommandProcessor struct {
// contains filtered or unexported fields
}
func NewCommandProcessor ¶
func NewCommandProcessor(parent *MainView) *CommandProcessor
func (*CommandProcessor) Autocomplete ¶ added in v0.2.0
func (*CommandProcessor) AutocompleteCommand ¶ added in v0.2.0
func (ch *CommandProcessor) AutocompleteCommand(word string) (completions []string)
func (*CommandProcessor) HandleCommand ¶
func (ch *CommandProcessor) HandleCommand(cmd *Command)
func (*CommandProcessor) ParseCommand ¶
func (ch *CommandProcessor) ParseCommand(roomView *RoomView, text string) *Command
type EmojiView ¶ added in v0.2.0
type EmojiView struct { mauview.SimpleEventHandler Data crypto.SASData }
type FuzzySearchModal ¶
func NewFuzzySearchModal ¶
func NewFuzzySearchModal(mainView *MainView, width int, height int) *FuzzySearchModal
func (*FuzzySearchModal) Blur ¶
func (fs *FuzzySearchModal) Blur()
func (*FuzzySearchModal) Focus ¶
func (fs *FuzzySearchModal) Focus()
func (*FuzzySearchModal) InitList ¶
func (fs *FuzzySearchModal) InitList(rooms map[id.RoomID]*RoomView)
func (*FuzzySearchModal) OnKeyEvent ¶
func (fs *FuzzySearchModal) OnKeyEvent(event mauview.KeyEvent) bool
type GomuksUI ¶
type GomuksUI struct {
// contains filtered or unexported fields
}
func (*GomuksUI) HandleNewPreferences ¶
func (ui *GomuksUI) HandleNewPreferences()
func (*GomuksUI) NewLoginView ¶
func (*GomuksUI) NewMainView ¶
func (*GomuksUI) RunExternal ¶ added in v0.3.0
type GradientTable ¶
type GradientTable []struct { Col colorful.Color Pos float64 }
GradientTable from https://github.com/lucasb-eyer/go-colorful/blob/master/doc/gradientgen/gradientgen.go
func (GradientTable) GetInterpolatedColorFor ¶
func (gt GradientTable) GetInterpolatedColorFor(t float64) colorful.Color
type HelpModal ¶ added in v0.2.1
type HelpModal struct { mauview.FocusableComponent // contains filtered or unexported fields }
func NewHelpModal ¶ added in v0.2.1
type HideMessage ¶
type HideMessage string
func (HideMessage) Format ¶
func (hm HideMessage) Format(state bool) string
func (HideMessage) Name ¶
func (hm HideMessage) Name() string
type InvertedToggleMessage ¶ added in v0.3.0
type InvertedToggleMessage string
func (InvertedToggleMessage) Format ¶ added in v0.3.0
func (itm InvertedToggleMessage) Format(state bool) string
func (InvertedToggleMessage) Name ¶ added in v0.3.0
func (itm InvertedToggleMessage) Name() string
type MainView ¶
type MainView struct {
// contains filtered or unexported fields
}
func (*MainView) AskPassword ¶ added in v0.2.0
func (*MainView) InputChanged ¶
func (*MainView) LoadHistory ¶
func (*MainView) NotifyMessage ¶
func (*MainView) OnMouseEvent ¶
func (view *MainView) OnMouseEvent(event mauview.MouseEvent) bool
func (*MainView) OnPasteEvent ¶
func (view *MainView) OnPasteEvent(event mauview.PasteEvent) bool
func (*MainView) OpenSyncingModal ¶
func (view *MainView) OpenSyncingModal() ifc.SyncingModal
func (*MainView) RemoveRoom ¶
func (*MainView) UpdateTags ¶
type MemberList ¶
type MemberList struct {
// contains filtered or unexported fields
}
func NewMemberList ¶
func NewMemberList() *MemberList
func (*MemberList) Draw ¶
func (ml *MemberList) Draw(screen mauview.Screen)
func (*MemberList) Update ¶
func (ml *MemberList) Update(data map[id.UserID]*rooms.Member, levels *event.PowerLevelsEventContent) *MemberList
type MessageDirection ¶
type MessageDirection int
const ( AppendMessage MessageDirection = iota PrependMessage IgnoreMessage )
type MessageView ¶
type MessageView struct { ScrollOffset int MaxSenderWidth int DateFormat string TimestampFormat string TimestampWidth int // contains filtered or unexported fields }
func NewMessageView ¶
func NewMessageView(parent *RoomView) *MessageView
func (*MessageView) AddMessage ¶
func (view *MessageView) AddMessage(ifcMessage ifc.Message, direction MessageDirection)
func (*MessageView) AddScrollOffset ¶
func (view *MessageView) AddScrollOffset(diff int)
func (*MessageView) CapturePlaintext ¶
func (view *MessageView) CapturePlaintext(height int) string
func (*MessageView) Draw ¶
func (view *MessageView) Draw(screen mauview.Screen)
func (*MessageView) Height ¶
func (view *MessageView) Height() int
func (*MessageView) IsAtTop ¶
func (view *MessageView) IsAtTop() bool
func (*MessageView) OnMouseEvent ¶
func (view *MessageView) OnMouseEvent(event mauview.MouseEvent) bool
func (*MessageView) SetSelected ¶
func (view *MessageView) SetSelected(message *messages.UIMessage)
func (*MessageView) TotalHeight ¶
func (view *MessageView) TotalHeight() int
func (*MessageView) Unload ¶
func (view *MessageView) Unload()
type NewlineKeybindMessage ¶ added in v0.2.4
type NewlineKeybindMessage string
func (NewlineKeybindMessage) Format ¶ added in v0.2.4
func (nkm NewlineKeybindMessage) Format(state bool) string
func (NewlineKeybindMessage) Name ¶ added in v0.2.4
func (nkm NewlineKeybindMessage) Name() string
type OrderedRoom ¶
func NewDefaultOrderedRoom ¶
func NewDefaultOrderedRoom(room *rooms.Room) *OrderedRoom
func NewOrderedRoom ¶
func NewOrderedRoom(order json.Number, room *rooms.Room) *OrderedRoom
type PasswordModal ¶ added in v0.2.0
func NewPasswordModal ¶ added in v0.2.0
func NewPasswordModal(parent *MainView, title, thing, placeholder string, isNew bool) *PasswordModal
func (*PasswordModal) ClickCancel ¶ added in v0.2.0
func (pwm *PasswordModal) ClickCancel()
func (*PasswordModal) ClickSubmit ¶ added in v0.2.0
func (pwm *PasswordModal) ClickSubmit()
func (*PasswordModal) HandleChange ¶ added in v0.2.0
func (pwm *PasswordModal) HandleChange(_ string)
func (*PasswordModal) Wait ¶ added in v0.2.0
func (pwm *PasswordModal) Wait() (string, bool)
type RoomList ¶
func NewRoomList ¶
func (*RoomList) AddScrollOffset ¶
func (*RoomList) ContentHeight ¶
func (*RoomList) GetTagDisplayName ¶
func (*RoomList) HasSelected ¶
func (*RoomList) NextWithActivity ¶
NextWithActivity Returns next room with activity.
Sorted by (in priority):
- Highlights - Messages - Other traffic (joins, parts, etc)
TODO: Sorting. Now just finds first room with new messages.
func (*RoomList) OnMouseEvent ¶
func (list *RoomList) OnMouseEvent(event mauview.MouseEvent) bool
func (*RoomList) OnPasteEvent ¶
func (list *RoomList) OnPasteEvent(_ mauview.PasteEvent) bool
func (*RoomList) SelectedRoom ¶
type RoomView ¶
func (*RoomView) AddHistoryEvent ¶
func (*RoomView) AddRedaction ¶
func (*RoomView) AddServiceMessage ¶
func (*RoomView) AutocompleteEmoji ¶ added in v0.2.0
func (*RoomView) AutocompleteRoom ¶ added in v0.2.0
func (*RoomView) AutocompleteUser ¶ added in v0.2.0
func (*RoomView) ClearAllContext ¶
func (view *RoomView) ClearAllContext()
func (*RoomView) CopyToClipboard ¶
func (*RoomView) Download ¶
func (view *RoomView) Download(url id.ContentURI, file *attachment.EncryptedFile, filename string, openFile bool)
func (*RoomView) EditPrevious ¶
func (view *RoomView) EditPrevious()
func (*RoomView) GetInputText ¶
func (*RoomView) InputSubmit ¶
func (*RoomView) InputTabComplete ¶
func (*RoomView) MessageView ¶
func (view *RoomView) MessageView() *MessageView
func (*RoomView) OnMouseEvent ¶
func (view *RoomView) OnMouseEvent(event mauview.MouseEvent) bool
func (*RoomView) OnPasteEvent ¶
func (view *RoomView) OnPasteEvent(event mauview.PasteEvent) bool
func (*RoomView) SelectNext ¶
func (view *RoomView) SelectNext()
func (*RoomView) SelectPrevious ¶
func (view *RoomView) SelectPrevious()
func (*RoomView) SendMessage ¶
func (view *RoomView) SendMessage(msgtype event.MessageType, text string)
func (*RoomView) SendMessageHTML ¶
func (view *RoomView) SendMessageHTML(msgtype event.MessageType, text, html string)
func (*RoomView) SendMessageMedia ¶ added in v0.2.0
func (*RoomView) SendReaction ¶
func (*RoomView) SetCompletions ¶
func (*RoomView) SetEditing ¶
func (*RoomView) SetInputChangedFunc ¶
func (*RoomView) SetInputText ¶
func (*RoomView) StartSelecting ¶
func (view *RoomView) StartSelecting(reason SelectReason, content string)
func (*RoomView) StopSelecting ¶
func (view *RoomView) StopSelecting()
func (*RoomView) UpdateUserList ¶
func (view *RoomView) UpdateUserList()
type SelectReason ¶
type SelectReason string
type SimpleToggleMessage ¶
type SimpleToggleMessage string
func (SimpleToggleMessage) Format ¶
func (stm SimpleToggleMessage) Format(state bool) string
func (SimpleToggleMessage) Name ¶
func (stm SimpleToggleMessage) Name() string
type SyncingModal ¶
type SyncingModal struct {
// contains filtered or unexported fields
}
func NewSyncingModal ¶
func NewSyncingModal(parent *MainView) (mauview.Component, *SyncingModal)
func (*SyncingModal) Close ¶
func (sm *SyncingModal) Close()
func (*SyncingModal) SetIndeterminate ¶
func (sm *SyncingModal) SetIndeterminate()
func (*SyncingModal) SetMessage ¶
func (sm *SyncingModal) SetMessage(text string)
func (*SyncingModal) SetSteps ¶
func (sm *SyncingModal) SetSteps(max int)
func (*SyncingModal) Step ¶
func (sm *SyncingModal) Step()
type TagNameList ¶
type TagNameList []string
TagNameList is a list of Matrix tag names where default names are sorted in a hardcoded way.
func (TagNameList) Len ¶
func (tnl TagNameList) Len() int
func (TagNameList) Less ¶
func (tnl TagNameList) Less(i, j int) bool
func (TagNameList) Swap ¶
func (tnl TagNameList) Swap(i, j int)
type TagRoomList ¶
type TagRoomList struct { mauview.NoopEventHandler // contains filtered or unexported fields }
func NewTagRoomList ¶
func NewTagRoomList(parent *RoomList, name string, rooms ...*OrderedRoom) *TagRoomList
func (*TagRoomList) All ¶
func (trl *TagRoomList) All() []*OrderedRoom
func (*TagRoomList) Bump ¶
func (trl *TagRoomList) Bump(mxRoom *rooms.Room)
func (*TagRoomList) Draw ¶
func (trl *TagRoomList) Draw(screen mauview.Screen)
func (*TagRoomList) DrawHeader ¶
func (trl *TagRoomList) DrawHeader(screen mauview.Screen)
func (*TagRoomList) FirstVisible ¶
func (trl *TagRoomList) FirstVisible() *rooms.Room
func (*TagRoomList) HasInvisibleRooms ¶
func (trl *TagRoomList) HasInvisibleRooms() bool
func (*TagRoomList) HasVisibleRooms ¶
func (trl *TagRoomList) HasVisibleRooms() bool
func (*TagRoomList) IndexVisible ¶
func (trl *TagRoomList) IndexVisible(room *rooms.Room) int
func (*TagRoomList) IsCollapsed ¶
func (trl *TagRoomList) IsCollapsed() bool
func (*TagRoomList) IsEmpty ¶
func (trl *TagRoomList) IsEmpty() bool
func (*TagRoomList) LastVisible ¶
func (trl *TagRoomList) LastVisible() *rooms.Room
func (*TagRoomList) Length ¶
func (trl *TagRoomList) Length() int
func (*TagRoomList) Remove ¶
func (trl *TagRoomList) Remove(room *rooms.Room)
func (*TagRoomList) RemoveIndex ¶
func (trl *TagRoomList) RemoveIndex(index int)
func (*TagRoomList) RenderHeight ¶
func (trl *TagRoomList) RenderHeight() int
func (*TagRoomList) ShouldBeAfter ¶
func (trl *TagRoomList) ShouldBeAfter(room1 *OrderedRoom, room2 *OrderedRoom) bool
ShouldBeAfter returns if the first room should be after the second room in the room list. The manual order and last received message timestamp are considered.
func (*TagRoomList) ToggleCollapse ¶
func (trl *TagRoomList) ToggleCollapse()
func (*TagRoomList) TotalLength ¶
func (trl *TagRoomList) TotalLength() int
func (*TagRoomList) Visible ¶
func (trl *TagRoomList) Visible() []*OrderedRoom
type ToggleMessage ¶
type VerificationModal ¶ added in v0.2.0
func NewVerificationModal ¶ added in v0.2.0
func NewVerificationModal(mainView *MainView, device *crypto.DeviceIdentity, timeout time.Duration) *VerificationModal
func (*VerificationModal) Blur ¶ added in v0.2.0
func (vm *VerificationModal) Blur()
func (*VerificationModal) Focus ¶ added in v0.2.0
func (vm *VerificationModal) Focus()
func (*VerificationModal) OnCancel ¶ added in v0.2.0
func (vm *VerificationModal) OnCancel(cancelledByUs bool, reason string, _ event.VerificationCancelCode)
func (*VerificationModal) OnKeyEvent ¶ added in v0.2.0
func (vm *VerificationModal) OnKeyEvent(event mauview.KeyEvent) bool
func (*VerificationModal) OnSuccess ¶ added in v0.2.0
func (vm *VerificationModal) OnSuccess()
func (*VerificationModal) VerificationMethods ¶ added in v0.2.0
func (vm *VerificationModal) VerificationMethods() []crypto.VerificationMethod
func (*VerificationModal) VerifySASMatch ¶ added in v0.2.0
func (vm *VerificationModal) VerifySASMatch(device *crypto.DeviceIdentity, data crypto.SASData) bool
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package messages contains different message types and code to generate and render them.
|
Package messages contains different message types and code to generate and render them. |
html
gomuks - A terminal Matrix client written in Go.
|
gomuks - A terminal Matrix client written in Go. |
tstring
Package tstring contains a string type that stores style data for each character, allowing it to be rendered to a tcell screen essentially unmodified.
|
Package tstring contains a string type that stores style data for each character, allowing it to be rendered to a tcell screen essentially unmodified. |
Package widget contains additional tview widgets.
|
Package widget contains additional tview widgets. |
Click to show internal directories.
Click to hide internal directories.