Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/diamondburned/cchat-gtk
/ functions
Functions
952 in github.com/diamondburned/cchat-gtk
⨍
Functions
952
◇
Types & classes
190
↓ 1 callers
Method
SendMessage
SendMessage asynchronously sends the given message.
internal/ui/messages/input/input.go:30
↓ 1 callers
Method
SendingMessage
()
internal/ui/messages/message/sending.go:21
↓ 1 callers
Method
ServerID
ServerID returns the server ID, or an empty string if there's no server.
internal/ui/messages/state.go:51
↓ 1 callers
Method
Service
Service asks the controller for its service.
internal/ui/service/session/session.go:26
↓ 1 callers
Method
SessionSelected
SessionSelected tells the view to change the session view.
internal/ui/service/service.go:30
↓ 1 callers
Method
SessionSelected
(*Service, *session.Row)
internal/ui/service/list.go:15
↓ 1 callers
Method
SessionSelected
SessionSelected is called when the row is clicked. The parent container should change the views to show this session's *Servers.
internal/ui/service/session/session.go:38
↓ 1 callers
Method
SetAllowUpload
(allow bool)
internal/ui/messages/input/input.go:316
↓ 1 callers
Method
SetCanShowMembers
(canShow bool)
internal/ui/messages/header.go:121
↓ 1 callers
Method
SetDone
SetDone is shared between the parent struct and the children list. This is because both will use the same SetFailed.
internal/ui/service/session/server/server.go:417
↓ 1 callers
Method
SetDone
(id cchat.ID)
internal/ui/messages/message/sending.go:22
↓ 1 callers
Method
SetEnabled
(enabled bool)
internal/ui/messages/input/attachment/attachment.go:128
↓ 1 callers
Method
SetError
SetError prints the error. If err is nil, then the label is cleared.
internal/ui/service/auth/entries.go:153
↓ 1 callers
Method
SetError
(err error)
internal/ui/messages/sadface/sadface.go:75
↓ 1 callers
Method
SetFailed
SetFailed sets the initial connect status to failed. Do note that session can have 2 types of loading: loading the session and loading the server list
internal/ui/service/session/session.go:297
↓ 1 callers
Method
SetFailed
SetFailed is shared between the parent struct and the children list. This is because both of those errors share the same appearance, just different ca
internal/ui/service/session/server/server.go:405
↓ 1 callers
Method
SetFolded
(folded bool)
internal/ui/messages/view.go:256
↓ 1 callers
Method
SetHidden
SetHidden sets whether or not the control should be hidden.
internal/ui/messages/msgctrl.go:95
↓ 1 callers
Method
SetHollowServerList
SetHollowServerList sets the row to a hollow server list (children) and recursively create
internal/ui/service/session/server/server.go:255
↓ 1 callers
Method
SetIfNone
SetIfNone sets the callback to be used if an empty URL is given to the image. If nil is given, then a fallback icon is used.
internal/ui/primitives/roundimage/roundimage.go:125
↓ 1 callers
Method
SetLoading
SetLoading sets the session button to have a spinner circle. DO NOT CONFUSE THIS WITH THE SERVERS LOADING.
internal/ui/service/session/session.go:283
↓ 1 callers
Method
SetMain
()
internal/ui/messages/sadface/sadface.go:63
↓ 1 callers
Method
SetMember
(sectionID string, member cchat.ListMember)
internal/ui/messages/memberlist/memberlist.go:112
↓ 1 callers
Method
SetMemberUnsafe
(sectionID string, member cchat.ListMember)
internal/ui/messages/memberlist/memberlist.go:169
↓ 1 callers
Method
SetMiniBreadcrumb
SetMiniBreadcrumb sets whether or not the breadcrumb should display the full label.
internal/ui/messages/header.go:133
↓ 1 callers
Method
SetName
(string)
internal/ui/primitives/drag/drag.go:38
↓ 1 callers
Method
SetNormal
SetNormal sets the button's state to normal from either loading or failed.
internal/ui/service/session/server/button/button.go:201
↓ 1 callers
Method
SetPixelSize
(int)
internal/ui/primitives/primitives.go:182
↓ 1 callers
Method
SetSectionsUnsafe
(sections []cchat.MemberSection)
internal/ui/messages/memberlist/memberlist.go:125
↓ 1 callers
Method
SetSelf
SetSelf sets the author for the current user.
internal/ui/messages/container/container.go:37
↓ 1 callers
Method
SetSentError
(err error)
internal/ui/messages/message/sending.go:24
↓ 1 callers
Method
SetSessionMenu
(s *session.Row)
internal/ui/service/header.go:122
↓ 1 callers
Method
SetSizeRequest
(int, int)
internal/ui/primitives/buttonoverlay/buttonoverlay.go:8
↓ 1 callers
Method
SetText
(text string)
internal/ui/primitives/roundimage/avatar.go:16
↓ 1 callers
Method
SetURL
SetURL updates the Avatar to be that URL. It does nothing if URL is empty or matches the existing one.
internal/ui/messages/container/cozy/avatar.go:37
↓ 1 callers
Method
SetUnreadUnsafe
(unread, mentioned bool)
internal/ui/service/session/server/server.go:229
↓ 1 callers
Method
ShowDialog
()
internal/ui/service/session/server/commander/buffer.go:61
↓ 1 callers
Function
Small
Small is a renderer that makes the plain text small.
internal/ui/rich/rich.go:20
↓ 1 callers
Function
SpawnDialog
(buf *Buffer)
internal/ui/service/session/server/commander/commander.go:37
↓ 1 callers
Function
SpawnUploader
(dirpath string, callback func(absolutePaths []string))
internal/gts/gts.go:279
↓ 1 callers
Method
Start
()
internal/gts/throttler/throttler.go:41
↓ 1 callers
Method
StartReplyingTo
(msgID cchat.ID)
internal/ui/messages/input/input.go:333
↓ 1 callers
Function
State
(buf *gtk.TextBuffer)
internal/ui/primitives/completion/utils.go:96
↓ 1 callers
Method
Stop
()
internal/gts/throttler/throttler.go:64
↓ 1 callers
Method
StopEditing
StopEditing cancels the current editing message. It returns a false and does nothing if the editor is not editing anything.
internal/ui/messages/input/input.go:394
↓ 1 callers
Method
String
String satisfies the fmt.Stringer interface.
internal/ui/messages/container/list.go:74
↓ 1 callers
Method
String
()
internal/ui/config/config.go:22
↓ 1 callers
Method
Subscribe
Subscribe is thread-safe.
internal/ui/messages/typing/state.go:52
↓ 1 callers
Function
SubstringSegment
SubstringSegment slices the given rich text.
internal/ui/rich/parser/markup/markup.go:32
↓ 1 callers
Function
SuggestAction
SuggestAction styles the element to have the suggeested action class.
internal/ui/primitives/primitives.go:153
↓ 1 callers
Method
SwapResource
(v interface{}, cancel func())
internal/ui/rich/async.go:15
↓ 1 callers
Function
SwapWord
(b *gtk.TextBuffer, word string, offset int64)
internal/ui/primitives/completion/utils.go:81
↓ 1 callers
Function
Switch
(value *bool, change func(bool))
internal/ui/config/widgets.go:65
↓ 1 callers
Function
TimeAgo
(t time.Time)
internal/humanize/humanize.go:28
↓ 1 callers
Function
TimeAgoLong
(t time.Time)
internal/humanize/humanize.go:38
↓ 1 callers
Method
ToMenuItem
func (item Item) ToModelButton() *gtk.ModelButton { b, _ := gtk.ModelButtonNew() b.SetLabel(action[0]) b.SetActionName(action[1]) b.Show() // Set
internal/ui/primitives/menu/menu.go:129
↓ 1 callers
Method
ToToolButton
()
internal/ui/primitives/menu/menu.go:141
↓ 1 callers
Function
Tokenize
(language, source string)
internal/ui/rich/parser/hl/hl.go:33
↓ 1 callers
Method
TryAsyncList
TryAsyncList tries to set the member list from the given server. It does type assertions and handles asynchronicity. Reset must be called before this.
internal/ui/messages/memberlist/memberlist.go:92
↓ 1 callers
Function
TrySetUnread
TrySetUnread tries to check if a breadcrumber parent node supports Unreadabler. If it does, then this function will set the state appropriately.
internal/ui/service/session/server/traverse/traverse.go:91
↓ 1 callers
Method
TrySubscribe
(svmsg cchat.Messenger)
internal/ui/messages/typing/typing.go:144
↓ 1 callers
Method
URISegment
(uri string)
internal/ui/rich/parser/markup/markup.go:85
↓ 1 callers
Method
Unborrow
()
internal/ui/messages/input/input.go:36
↓ 1 callers
Method
UnselectMessage
UnselectMessage is called when the message selection is cleared.
internal/ui/messages/container/container.go:142
↓ 1 callers
Function
Update
(b traverse.Breadcrumber, expanded bool)
internal/ui/service/savepath/savepath.go:93
↓ 1 callers
Method
Update
Update is not thread-safe.
internal/ui/messages/input/username/username.go:114
↓ 1 callers
Method
UpdateIfNone
UpdateIfNone updates the image if the image currently does not have one fetched from the URL. It does nothing otherwise.
internal/ui/primitives/roundimage/roundimage.go:131
↓ 1 callers
Method
Updated
()
internal/ui/config/config.go:121
↓ 1 callers
Method
UseEmptyIcon
UseEmptyIcon forces the row to show a placeholder icon.
internal/ui/service/session/server/server.go:338
↓ 1 callers
Method
Validate
(int64)
internal/ui/rich/async.go:14
↓ 1 callers
Function
Wrap
Wrap wraps maincontent inside an overlay with smallbutton placed rightmost on top of the content. It will also set the margins and aligns widgets.
internal/ui/primitives/buttonoverlay/buttonoverlay.go:29
↓ 1 callers
Function
WrapCollapsedSendingMessage
(pstate *message.PresendState)
internal/ui/messages/container/cozy/message_collapsed.go:47
↓ 1 callers
Function
WrapFullSendingMessage
(pstate *message.PresendState)
internal/ui/messages/container/cozy/message_full.go:157
↓ 1 callers
Function
WrapPresendMessage
(pstate *message.PresendState)
internal/ui/messages/container/compact/message.go:34
↓ 1 callers
Function
WriteEntry
(entry Entry)
internal/log/log.go:69
↓ 1 callers
Method
WriteError
WriteError is not thread-safe.
internal/ui/service/session/server/commander/buffer.go:37
↓ 1 callers
Method
WriteOutput
(output []byte)
internal/ui/service/session/server/commander/buffer.go:51
↓ 1 callers
Method
WriteSystem
WriteSystem is not thread-safe.
internal/ui/service/session/server/commander/buffer.go:42
↓ 1 callers
Method
around
(aroundID cchat.ID)
internal/ui/messages/container/list.go:214
↓ 1 callers
Method
bind
(session cchat.Session, server cchat.Server, msgr cchat.Messenger)
internal/ui/messages/state.go:77
↓ 1 callers
Function
capitalizeFirst
capitalizeFirst capitalizes the first letter.
internal/ui/service/auth/entries.go:170
↓ 1 callers
Method
compact
(msg container.MessageRow)
internal/ui/messages/container/cozy/cozy.go:160
↓ 1 callers
Method
complete
()
internal/ui/primitives/completion/completer.go:146
↓ 1 callers
Function
composeAvatarMarkup
(avatarer text.Avatarer)
internal/ui/rich/parser/markup/markup.go:385
↓ 1 callers
Function
composeImageMarkup
(imager text.Imager)
internal/ui/rich/parser/markup/markup.go:367
↓ 1 callers
Function
convEvent
(ev *gdk.Event)
internal/ui/messages/input/keydown.go:20
↓ 1 callers
Function
downloadImage
(src io.Reader, dst io.Writer, p []imgutil.Processor, isGIF bool)
internal/gts/httputil/image.go:191
↓ 1 callers
Method
ensureAnchorColor
ensureAnchorColor ensures the RenderConfig has an AnchorColor.
internal/ui/rich/parser/markup/markup.go:156
↓ 1 callers
Function
ensureLocale
()
internal/humanize/locale.go:26
↓ 1 callers
Function
ext
ext parses and sanitizes the extension to something comparable.
internal/ui/rich/labeluri/labeluri.go:361
↓ 1 callers
Function
filterTypers
(typers []typer, timeout time.Duration)
internal/ui/messages/typing/state.go:155
↓ 1 callers
Method
findID
(id cchat.ID)
internal/ui/service/session/server/children.go:207
↓ 1 callers
Method
findMessage
findMessage finds a message with the given callback as the filter. If presend is false, then presend messages are ignored.
internal/ui/messages/container/list.go:271
↓ 1 callers
Function
formatLongTime
(t time.Time)
internal/ui/messages/container/cozy/message_full.go:143
↓ 1 callers
Method
frac
frac returns the current percentage, or -1 is there is no total.
internal/ui/messages/input/attachment/progress.go:98
↓ 1 callers
Method
generateNonce
generateNonce creates a nonce that should prevent collision. This function will always return a 16-byte long string.
internal/ui/messages/input/sendable.go:23
↓ 1 callers
Function
get
TODO: log cache misses with httpcache.XFromCache
internal/gts/httputil/httputil.go:41
↓ 1 callers
Function
getDefaultScreen
()
internal/gts/css.go:12
↓ 1 callers
Function
getLexer
(lang string)
internal/ui/rich/parser/hl/hl.go:67
↓ 1 callers
Method
getText
getText returns the text from the input, but it doesn't cut it.
internal/ui/messages/input/input.go:414
← previous
next →
501–600 of 952, ranked by callers