MCPcopy Create free account

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

Functions952 in github.com/diamondburned/cchat-gtk

↓ 2 callersFunctionMarshalToFile
MarshalToFile marshals the given interface into the given filename. The filename will be prepended with the config directory.
internal/ui/config/file.go:72
↓ 2 callersFunctionMenuItems
(menu MenuAppender, items []Item)
internal/ui/primitives/menu/menu.go:69
↓ 2 callersMethodMenuModel
()
internal/ui/primitives/actions/menu.go:38
↓ 2 callersMethodMessage
Message finds and returns the message, if any. It performs maximum 2 constant-time lookups.
internal/ui/messages/container/container.go:53
↓ 2 callersFunctionNew
()
internal/ui/primitives/spinner/spinner.go:10
↓ 2 callersFunctionNewBuffer
NewBuffer creates a new buffer with the given SessionCommander, or returns nil if cmder is nil.
internal/ui/service/session/server/commander/buffer.go:21
↓ 2 callersFunctionNewCSD
(body, header gtk.IWidget)
internal/ui/dialog/dialog.go:62
↓ 2 callersFunctionNewEmptyButton
()
internal/ui/primitives/roundimage/button.go:34
↓ 2 callersFunctionNewEmptyState
NewEmptyState creates a new empty message state. The author should be set immediately afterwards; it is invalid once the state is used.
internal/ui/messages/message/message.go:73
↓ 2 callersFunctionNewHollowChildren
NewHollowChildren creates a hollow children, which is a children without any widgets.
internal/ui/service/session/server/children.go:52
↓ 2 callersFunctionNewHollowServer
NewHollowServer creates a new hollow ServerRow. It will automatically create hollow children containers and rows for the given server.
internal/ui/service/session/server/server.go:81
↓ 2 callersFunctionNewLabelState
NewLabelState creates a new label state.
internal/ui/rich/rich.go:155
↓ 2 callersFunctionNewLabelWithRenderer
NewLabelWithRenderer creates a self-updating label using the given renderer.
internal/ui/rich/label.go:55
↓ 2 callersFunctionNewListContainer
(ctrl Controller)
internal/ui/messages/container/container.go:173
↓ 2 callersFunctionNewModal
(body gtk.IWidget, title, button string, clicked func(m *Modal))
internal/ui/dialog/dialog.go:28
↓ 2 callersFunctionNewScrolledWindow
()
internal/ui/primitives/autoscroll/autoscroll.go:11
↓ 2 callersFunctionNewServers
NewServers creates a new Servers instance that holds only the given column number and its children. Any servers with a different columnate ID will be
internal/ui/service/session/servers.go:59
↓ 2 callersFunctionNewTargetEntry
(target string, f gtk.TargetFlags, info uint)
internal/ui/primitives/drag/drag.go:14
↓ 2 callersMethodNonce
()
internal/ui/messages/input/sendable.go:130
↓ 2 callersMethodOnMessageBusy
OnMessageBusy is called when the message buffer is busy. This happens when it's loading messages.
internal/ui/messages/view.go:54
↓ 2 callersMethodOnSessionDisconnect
(*Service, *session.Row)
internal/ui/service/list.go:18
↓ 2 callersMethodOpenf
(ind int, f string, argv ...interface{})
internal/ui/rich/parser/attrmap/attrmap.go:90
↓ 2 callersMethodPopMessage
PopMessage deletes a message off of the list and return the deleted message.
internal/ui/messages/container/list.go:423
↓ 2 callersFunctionPrettyMarshal
PrettyMarshal pretty marshals v into dst as formatted JSON.
internal/ui/config/file.go:38
↓ 2 callersMethodReset
Reset extends the server row's Reset function and resets additional states. It resets all states back to nil, but the session ID stays.
internal/ui/service/session/session.go:234
↓ 2 callersMethodReset
Reset ensures that the children container is no longer hollow, then reset all states.
internal/ui/service/session/server/children.go:97
↓ 2 callersFunctionRestore
Restore restores all sessions of the service asynchronously, then calls the auth callback inside the GTK main thread.
internal/keyring/keyring.go:76
↓ 2 callersMethodSelectColumnatedLister
SelectColumnatedLister is called when the user clicks a server lister with its with Columnate method returning true. If lister is nil, then the impl s
internal/ui/service/session/server/children.go:21
↓ 2 callersMethodSession
Session returns the session row with the given ID. A nil Row is returned if none is found.
internal/ui/service/session/list.go:89
↓ 2 callersMethodSessions
()
internal/ui/service/session/list.go:69
↓ 2 callersMethodSetBreadcrumber
(b traverse.Breadcrumber)
internal/ui/messages/header.go:154
↓ 2 callersMethodSetImageURL
SetImageURL sets the image's URL. If the URL is empty, then the placeholder icon is used, or the IfNone callback is called, or the pixbuf is cleared.
internal/ui/primitives/roundimage/roundimage.go:158
↓ 2 callersMethodSetImageURL
(url string)
internal/ui/rich/image.go:7
↓ 2 callersMethodSetImageURLInto
SetImageURLInto is SetImageURL, but the image container is given as an argument. It is used by other widgets that extend on this Image.
internal/ui/primitives/roundimage/roundimage.go:164
↓ 2 callersMethodSetList
SetList indicates that the server list has been loaded. Unlike server.Children, this method will load immediately.
internal/ui/service/session/servers.go:127
↓ 2 callersMethodSetMessenger
SetMessenger changes the messenger of the input field. If nil, the input will be disabled. Reset() should be called first.
internal/ui/messages/input/input.go:290
↓ 2 callersMethodSetPlaceholderIcon
SetPlaceholderIcon sets the placeholder icon onto the image. The given icon size does not affect the image's physical size.
internal/ui/primitives/roundimage/roundimage.go:141
↓ 2 callersMethodSetRequest
SetRequest sets the request into the stack. If auther is nil, then the placeholder icon is displayed. If auther is not nil, then Show() will be called
internal/ui/service/auth/entries.go:53
↓ 2 callersMethodSetRevealChild
SetRevealChild sets whether or not the service should reveal all sessions.
internal/ui/service/service.go:156
↓ 2 callersMethodSetServersUnsafe
(servers []cchat.Server)
internal/ui/service/session/server/children.go:181
↓ 2 callersMethodSetSession
SetSession binds the session and marks the row as ready. It extends SetDone.
internal/ui/service/session/session.go:323
↓ 2 callersMethodSetShowLabel
SetShowLabel sets whether or not to show the button's label. If the button does not have an image, then the label is always shown.
internal/ui/service/session/server/button/button.go:128
↓ 2 callersMethodSetState
(id string, unread, mentioned bool)
internal/ui/service/session/server/traverse/traverse.go:86
↓ 2 callersMethodSetUnreadUnsafe
(unread, mentioned bool)
internal/ui/service/session/server/traverse/traverse.go:100
↓ 2 callersFunctionSpawn
(conf Configurator)
internal/ui/service/config/config.go:48
↓ 2 callersMethodStartEditing
(msgID cchat.ID)
internal/ui/messages/input/input.go:363
↓ 2 callersMethodString
()
internal/log/log.go:30
↓ 2 callersMethodSystemlnf
Systemlnf is not thread-safe.
internal/ui/service/session/server/commander/buffer.go:47
↓ 2 callersFunctionTraverse
Traverse traverses the given breadcrumber recursively. If traverser returns true, then the function halts. Traversal is done from parent down to child
internal/ui/service/session/server/traverse/traverse.go:32
↓ 2 callersFunctionTryBreadcrumb
TryBreadcrumb accepts a nilable breadcrumber and handles it appropriately.
internal/ui/service/session/server/traverse/traverse.go:50
↓ 2 callersFunctionTryID
(i Breadcrumber, appended ...cchat.ID)
internal/ui/service/session/server/traverse/traverse.go:65
↓ 2 callersMethodUpdateContent
UpdateContent updates the underlying content widget.
internal/ui/messages/message/message.go:31
↓ 2 callersFunctionUpdateMessage
UpdateMessage is a convenient function to update a message in the container. It does nothing if the message is not found.
internal/ui/messages/container/container.go:69
↓ 2 callersMethodUpdateServerUnsafe
(update cchat.ServerUpdate)
internal/ui/service/session/server/children.go:231
↓ 2 callersMethodUseInitialsIfNone
UseInitialsIfNone sets the given image to render an initial image if the image doesn't have a URL.
internal/ui/primitives/roundimage/roundimage.go:289
↓ 2 callersFunctionWarn
Warn calls Info().
internal/log/log.go:54
↓ 2 callersFunctionWrapMessage
(ct *message.State)
internal/ui/messages/container/compact/message.go:55
↓ 2 callersFunctionWrite
(msg string)
internal/log/log.go:62
↓ 2 callersMethodaddMessage
(msg container.MessageRow)
internal/ui/messages/container/compact/compact.go:58
↓ 2 callersMethodaddPreview
(name string, thumbnail *cairo.Surface)
internal/ui/messages/input/attachment/attachment.go:273
↓ 2 callersMethodappend
-- internal methods -- append guarantees there's no collision. It returns the unique filename.
internal/ui/messages/input/attachment/attachment.go:211
↓ 2 callersMethodappendIndex
(ind int)
internal/ui/rich/parser/attrmap/attrmap.go:27
↓ 2 callersFunctionbind
bind connects activate-link. If activator returns true, then nothing is done. Activator can be nil.
internal/ui/rich/labeluri/labeluri.go:244
↓ 2 callersFunctionbithas
(bit, has uint)
internal/ui/messages/input/keydown.go:16
↓ 2 callersMethodchildrenSetErr
(err error)
internal/ui/service/session/server/server.go:321
↓ 2 callersFunctioncolorAttrs
colorAttrs renders the given color into a list of attributes.
internal/ui/rich/parser/markup/markup.go:325
↓ 2 callersMethodcreateMessageContainer
()
internal/ui/messages/view.go:201
↓ 2 callersFunctionexecIfCtx
(ctx context.Context, fn func())
internal/gts/httputil/image.go:181
↓ 2 callersMethodfindIndex
findIndex searches backwards for id.
internal/ui/messages/container/list.go:238
↓ 2 callersMethodfindMessage
(presend bool, fn func(*messageRow) bool)
internal/ui/messages/container/list.go:264
↓ 2 callersFunctionfmtSegmentURI
(stype string, ix int)
internal/ui/rich/parser/markup/markup.go:76
↓ 2 callersFunctionhyphenate
(text string)
internal/ui/rich/parser/markup/markup.go:24
↓ 2 callersMethodinvalidate
invalidate sorts and invalidates the state.
internal/ui/messages/typing/state.go:89
↓ 2 callersFunctionlettersOnly
(str string)
internal/humanize/locale.go:17
↓ 2 callersMethodload
load calls finish if the server list is not loaded. If it is, finish is called with a nil immediately.
internal/ui/service/session/server/server.go:263
↓ 2 callersFunctionmustSurface
(p *gdk.Pixbuf, scale int)
icons/icons.go:33
↓ 2 callersMethodname
()
internal/ui/messages/container/list.go:66
↓ 2 callersFunctionnewCSD
(body, header gtk.IWidget)
internal/ui/dialog/dialog.go:72
↓ 2 callersFunctionnewRow
(parent traverse.Breadcrumber, name text.Rich, ctrl Controller)
internal/ui/service/session/session.go:144
↓ 2 callersFunctionnonceKey
(nonce string)
internal/ui/messages/container/list.go:22
↓ 2 callersFunctionposHaveSpace
(tags map[int][]byte, pos int)
internal/ui/rich/parser/attrmap/attrmap.go:67
↓ 2 callersMethodrefetch
()
internal/ui/primitives/roundimage/avatar.go:85
↓ 2 callersMethodremoveTyper
(typerID string)
internal/ui/messages/typing/state.go:134
↓ 2 callersMethodreset
reset resets the message view, but does not change visible containers.
internal/ui/messages/view.go:239
↓ 2 callersMethodsendInput
()
internal/ui/messages/input/sendable.go:37
↓ 2 callersFunctionserviceFile
(conf Configurator)
internal/ui/service/config/config.go:80
↓ 2 callersMethodset
(v bool)
internal/ui/config/widgets.go:69
↓ 2 callersMethodset
(v string)
internal/ui/config/widgets.go:108
↓ 2 callersMethodsetAuthers
(authers []cchat.Authenticator)
internal/ui/service/auth/auth.go:107
↓ 2 callersFunctionsetIf
setIf sets the ID into the given map if the cond boolean is true, or deletes it if the boolean is false.
internal/ui/service/session/server/traverse/traverse.go:175
↓ 2 callersMethodsetLabel
(label text.Rich)
internal/ui/rich/rich.go:193
↓ 2 callersMethodsetLoading
setLoading shows the loading circle as a list child. If hollow, this function will only update the state.
internal/ui/service/session/server/children.go:136
↓ 2 callersMethodsetNotLoading
setNotLoading removes the loading circle, if any. This is not in Reset() anymore, since the backend may not necessarily call SetServers.
internal/ui/service/session/server/children.go:160
↓ 2 callersFunctionthumbnailPixbuf
(pixbuf *gdk.Pixbuf, scale int)
internal/ui/messages/input/attachment/attachment.go:311
↓ 2 callersFunctiontimeAgo
(t time.Time, truncs []truncator)
internal/humanize/humanize.go:47
↓ 2 callersMethoduncompact
(msg container.MessageRow)
internal/ui/messages/container/cozy/cozy.go:150
↓ 1 callersMethodAcquire
()
internal/ui/rich/async.go:13
↓ 1 callersFunctionActionPopover
(p *gtk.Popover, actions [][2]string)
internal/ui/primitives/primitives.go:295
↓ 1 callersFunctionAddEntryHandler
AddEntryHandler adds a handler, which will run asynchronously.
internal/log/log.go:35
↓ 1 callersMethodAddFile
AddFile is used for the file picker.
internal/ui/messages/input/attachment/attachment.go:169
← previousnext →201–300 of 952, ranked by callers