MCPcopy Create free account

hub / github.com/diamondburned/cchat-gtk / functions

Functions952 in github.com/diamondburned/cchat-gtk

↓ 1 callersMethodSendMessage
SendMessage asynchronously sends the given message.
internal/ui/messages/input/input.go:30
↓ 1 callersMethodSendingMessage
()
internal/ui/messages/message/sending.go:21
↓ 1 callersMethodServerID
ServerID returns the server ID, or an empty string if there's no server.
internal/ui/messages/state.go:51
↓ 1 callersMethodService
Service asks the controller for its service.
internal/ui/service/session/session.go:26
↓ 1 callersMethodSessionSelected
SessionSelected tells the view to change the session view.
internal/ui/service/service.go:30
↓ 1 callersMethodSessionSelected
(*Service, *session.Row)
internal/ui/service/list.go:15
↓ 1 callersMethodSessionSelected
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 callersMethodSetAllowUpload
(allow bool)
internal/ui/messages/input/input.go:316
↓ 1 callersMethodSetCanShowMembers
(canShow bool)
internal/ui/messages/header.go:121
↓ 1 callersMethodSetDone
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 callersMethodSetDone
(id cchat.ID)
internal/ui/messages/message/sending.go:22
↓ 1 callersMethodSetEnabled
(enabled bool)
internal/ui/messages/input/attachment/attachment.go:128
↓ 1 callersMethodSetError
SetError prints the error. If err is nil, then the label is cleared.
internal/ui/service/auth/entries.go:153
↓ 1 callersMethodSetError
(err error)
internal/ui/messages/sadface/sadface.go:75
↓ 1 callersMethodSetFailed
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 callersMethodSetFailed
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 callersMethodSetFolded
(folded bool)
internal/ui/messages/view.go:256
↓ 1 callersMethodSetHidden
SetHidden sets whether or not the control should be hidden.
internal/ui/messages/msgctrl.go:95
↓ 1 callersMethodSetHollowServerList
SetHollowServerList sets the row to a hollow server list (children) and recursively create
internal/ui/service/session/server/server.go:255
↓ 1 callersMethodSetIfNone
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 callersMethodSetLoading
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 callersMethodSetMain
()
internal/ui/messages/sadface/sadface.go:63
↓ 1 callersMethodSetMember
(sectionID string, member cchat.ListMember)
internal/ui/messages/memberlist/memberlist.go:112
↓ 1 callersMethodSetMemberUnsafe
(sectionID string, member cchat.ListMember)
internal/ui/messages/memberlist/memberlist.go:169
↓ 1 callersMethodSetMiniBreadcrumb
SetMiniBreadcrumb sets whether or not the breadcrumb should display the full label.
internal/ui/messages/header.go:133
↓ 1 callersMethodSetName
(string)
internal/ui/primitives/drag/drag.go:38
↓ 1 callersMethodSetNormal
SetNormal sets the button's state to normal from either loading or failed.
internal/ui/service/session/server/button/button.go:201
↓ 1 callersMethodSetPixelSize
(int)
internal/ui/primitives/primitives.go:182
↓ 1 callersMethodSetSectionsUnsafe
(sections []cchat.MemberSection)
internal/ui/messages/memberlist/memberlist.go:125
↓ 1 callersMethodSetSelf
SetSelf sets the author for the current user.
internal/ui/messages/container/container.go:37
↓ 1 callersMethodSetSentError
(err error)
internal/ui/messages/message/sending.go:24
↓ 1 callersMethodSetSessionMenu
(s *session.Row)
internal/ui/service/header.go:122
↓ 1 callersMethodSetSizeRequest
(int, int)
internal/ui/primitives/buttonoverlay/buttonoverlay.go:8
↓ 1 callersMethodSetText
(text string)
internal/ui/primitives/roundimage/avatar.go:16
↓ 1 callersMethodSetURL
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 callersMethodSetUnreadUnsafe
(unread, mentioned bool)
internal/ui/service/session/server/server.go:229
↓ 1 callersMethodShowDialog
()
internal/ui/service/session/server/commander/buffer.go:61
↓ 1 callersFunctionSmall
Small is a renderer that makes the plain text small.
internal/ui/rich/rich.go:20
↓ 1 callersFunctionSpawnDialog
(buf *Buffer)
internal/ui/service/session/server/commander/commander.go:37
↓ 1 callersFunctionSpawnUploader
(dirpath string, callback func(absolutePaths []string))
internal/gts/gts.go:279
↓ 1 callersMethodStart
()
internal/gts/throttler/throttler.go:41
↓ 1 callersMethodStartReplyingTo
(msgID cchat.ID)
internal/ui/messages/input/input.go:333
↓ 1 callersFunctionState
(buf *gtk.TextBuffer)
internal/ui/primitives/completion/utils.go:96
↓ 1 callersMethodStop
()
internal/gts/throttler/throttler.go:64
↓ 1 callersMethodStopEditing
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 callersMethodString
String satisfies the fmt.Stringer interface.
internal/ui/messages/container/list.go:74
↓ 1 callersMethodString
()
internal/ui/config/config.go:22
↓ 1 callersMethodSubscribe
Subscribe is thread-safe.
internal/ui/messages/typing/state.go:52
↓ 1 callersFunctionSubstringSegment
SubstringSegment slices the given rich text.
internal/ui/rich/parser/markup/markup.go:32
↓ 1 callersFunctionSuggestAction
SuggestAction styles the element to have the suggeested action class.
internal/ui/primitives/primitives.go:153
↓ 1 callersMethodSwapResource
(v interface{}, cancel func())
internal/ui/rich/async.go:15
↓ 1 callersFunctionSwapWord
(b *gtk.TextBuffer, word string, offset int64)
internal/ui/primitives/completion/utils.go:81
↓ 1 callersFunctionSwitch
(value *bool, change func(bool))
internal/ui/config/widgets.go:65
↓ 1 callersFunctionTimeAgo
(t time.Time)
internal/humanize/humanize.go:28
↓ 1 callersFunctionTimeAgoLong
(t time.Time)
internal/humanize/humanize.go:38
↓ 1 callersMethodToMenuItem
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 callersMethodToToolButton
()
internal/ui/primitives/menu/menu.go:141
↓ 1 callersFunctionTokenize
(language, source string)
internal/ui/rich/parser/hl/hl.go:33
↓ 1 callersMethodTryAsyncList
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 callersFunctionTrySetUnread
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 callersMethodTrySubscribe
(svmsg cchat.Messenger)
internal/ui/messages/typing/typing.go:144
↓ 1 callersMethodURISegment
(uri string)
internal/ui/rich/parser/markup/markup.go:85
↓ 1 callersMethodUnborrow
()
internal/ui/messages/input/input.go:36
↓ 1 callersMethodUnselectMessage
UnselectMessage is called when the message selection is cleared.
internal/ui/messages/container/container.go:142
↓ 1 callersFunctionUpdate
(b traverse.Breadcrumber, expanded bool)
internal/ui/service/savepath/savepath.go:93
↓ 1 callersMethodUpdate
Update is not thread-safe.
internal/ui/messages/input/username/username.go:114
↓ 1 callersMethodUpdateIfNone
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 callersMethodUpdated
()
internal/ui/config/config.go:121
↓ 1 callersMethodUseEmptyIcon
UseEmptyIcon forces the row to show a placeholder icon.
internal/ui/service/session/server/server.go:338
↓ 1 callersMethodValidate
(int64)
internal/ui/rich/async.go:14
↓ 1 callersFunctionWrap
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 callersFunctionWrapCollapsedSendingMessage
(pstate *message.PresendState)
internal/ui/messages/container/cozy/message_collapsed.go:47
↓ 1 callersFunctionWrapFullSendingMessage
(pstate *message.PresendState)
internal/ui/messages/container/cozy/message_full.go:157
↓ 1 callersFunctionWrapPresendMessage
(pstate *message.PresendState)
internal/ui/messages/container/compact/message.go:34
↓ 1 callersFunctionWriteEntry
(entry Entry)
internal/log/log.go:69
↓ 1 callersMethodWriteError
WriteError is not thread-safe.
internal/ui/service/session/server/commander/buffer.go:37
↓ 1 callersMethodWriteOutput
(output []byte)
internal/ui/service/session/server/commander/buffer.go:51
↓ 1 callersMethodWriteSystem
WriteSystem is not thread-safe.
internal/ui/service/session/server/commander/buffer.go:42
↓ 1 callersMethodaround
(aroundID cchat.ID)
internal/ui/messages/container/list.go:214
↓ 1 callersMethodbind
(session cchat.Session, server cchat.Server, msgr cchat.Messenger)
internal/ui/messages/state.go:77
↓ 1 callersFunctioncapitalizeFirst
capitalizeFirst capitalizes the first letter.
internal/ui/service/auth/entries.go:170
↓ 1 callersMethodcompact
(msg container.MessageRow)
internal/ui/messages/container/cozy/cozy.go:160
↓ 1 callersMethodcomplete
()
internal/ui/primitives/completion/completer.go:146
↓ 1 callersFunctioncomposeAvatarMarkup
(avatarer text.Avatarer)
internal/ui/rich/parser/markup/markup.go:385
↓ 1 callersFunctioncomposeImageMarkup
(imager text.Imager)
internal/ui/rich/parser/markup/markup.go:367
↓ 1 callersFunctionconvEvent
(ev *gdk.Event)
internal/ui/messages/input/keydown.go:20
↓ 1 callersFunctiondownloadImage
(src io.Reader, dst io.Writer, p []imgutil.Processor, isGIF bool)
internal/gts/httputil/image.go:191
↓ 1 callersMethodensureAnchorColor
ensureAnchorColor ensures the RenderConfig has an AnchorColor.
internal/ui/rich/parser/markup/markup.go:156
↓ 1 callersFunctionensureLocale
()
internal/humanize/locale.go:26
↓ 1 callersFunctionext
ext parses and sanitizes the extension to something comparable.
internal/ui/rich/labeluri/labeluri.go:361
↓ 1 callersFunctionfilterTypers
(typers []typer, timeout time.Duration)
internal/ui/messages/typing/state.go:155
↓ 1 callersMethodfindID
(id cchat.ID)
internal/ui/service/session/server/children.go:207
↓ 1 callersMethodfindMessage
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 callersFunctionformatLongTime
(t time.Time)
internal/ui/messages/container/cozy/message_full.go:143
↓ 1 callersMethodfrac
frac returns the current percentage, or -1 is there is no total.
internal/ui/messages/input/attachment/progress.go:98
↓ 1 callersMethodgenerateNonce
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 callersFunctionget
TODO: log cache misses with httpcache.XFromCache
internal/gts/httputil/httputil.go:41
↓ 1 callersFunctiongetDefaultScreen
()
internal/gts/css.go:12
↓ 1 callersFunctiongetLexer
(lang string)
internal/ui/rich/parser/hl/hl.go:67
↓ 1 callersMethodgetText
getText returns the text from the input, but it doesn't cut it.
internal/ui/messages/input/input.go:414
← previousnext →501–600 of 952, ranked by callers