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
↓ 2 callers
Function
MarshalToFile
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 callers
Function
MenuItems
(menu MenuAppender, items []Item)
internal/ui/primitives/menu/menu.go:69
↓ 2 callers
Method
MenuModel
()
internal/ui/primitives/actions/menu.go:38
↓ 2 callers
Method
Message
Message finds and returns the message, if any. It performs maximum 2 constant-time lookups.
internal/ui/messages/container/container.go:53
↓ 2 callers
Function
New
()
internal/ui/primitives/spinner/spinner.go:10
↓ 2 callers
Function
NewBuffer
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 callers
Function
NewCSD
(body, header gtk.IWidget)
internal/ui/dialog/dialog.go:62
↓ 2 callers
Function
NewEmptyButton
()
internal/ui/primitives/roundimage/button.go:34
↓ 2 callers
Function
NewEmptyState
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 callers
Function
NewHollowChildren
NewHollowChildren creates a hollow children, which is a children without any widgets.
internal/ui/service/session/server/children.go:52
↓ 2 callers
Function
NewHollowServer
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 callers
Function
NewLabelState
NewLabelState creates a new label state.
internal/ui/rich/rich.go:155
↓ 2 callers
Function
NewLabelWithRenderer
NewLabelWithRenderer creates a self-updating label using the given renderer.
internal/ui/rich/label.go:55
↓ 2 callers
Function
NewListContainer
(ctrl Controller)
internal/ui/messages/container/container.go:173
↓ 2 callers
Function
NewModal
(body gtk.IWidget, title, button string, clicked func(m *Modal))
internal/ui/dialog/dialog.go:28
↓ 2 callers
Function
NewScrolledWindow
()
internal/ui/primitives/autoscroll/autoscroll.go:11
↓ 2 callers
Function
NewServers
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 callers
Function
NewTargetEntry
(target string, f gtk.TargetFlags, info uint)
internal/ui/primitives/drag/drag.go:14
↓ 2 callers
Method
Nonce
()
internal/ui/messages/input/sendable.go:130
↓ 2 callers
Method
OnMessageBusy
OnMessageBusy is called when the message buffer is busy. This happens when it's loading messages.
internal/ui/messages/view.go:54
↓ 2 callers
Method
OnSessionDisconnect
(*Service, *session.Row)
internal/ui/service/list.go:18
↓ 2 callers
Method
Openf
(ind int, f string, argv ...interface{})
internal/ui/rich/parser/attrmap/attrmap.go:90
↓ 2 callers
Method
PopMessage
PopMessage deletes a message off of the list and return the deleted message.
internal/ui/messages/container/list.go:423
↓ 2 callers
Function
PrettyMarshal
PrettyMarshal pretty marshals v into dst as formatted JSON.
internal/ui/config/file.go:38
↓ 2 callers
Method
Reset
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 callers
Method
Reset
Reset ensures that the children container is no longer hollow, then reset all states.
internal/ui/service/session/server/children.go:97
↓ 2 callers
Function
Restore
Restore restores all sessions of the service asynchronously, then calls the auth callback inside the GTK main thread.
internal/keyring/keyring.go:76
↓ 2 callers
Method
SelectColumnatedLister
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 callers
Method
Session
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 callers
Method
Sessions
()
internal/ui/service/session/list.go:69
↓ 2 callers
Method
SetBreadcrumber
(b traverse.Breadcrumber)
internal/ui/messages/header.go:154
↓ 2 callers
Method
SetImageURL
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 callers
Method
SetImageURL
(url string)
internal/ui/rich/image.go:7
↓ 2 callers
Method
SetImageURLInto
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 callers
Method
SetList
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 callers
Method
SetMessenger
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 callers
Method
SetPlaceholderIcon
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 callers
Method
SetRequest
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 callers
Method
SetRevealChild
SetRevealChild sets whether or not the service should reveal all sessions.
internal/ui/service/service.go:156
↓ 2 callers
Method
SetServersUnsafe
(servers []cchat.Server)
internal/ui/service/session/server/children.go:181
↓ 2 callers
Method
SetSession
SetSession binds the session and marks the row as ready. It extends SetDone.
internal/ui/service/session/session.go:323
↓ 2 callers
Method
SetShowLabel
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 callers
Method
SetState
(id string, unread, mentioned bool)
internal/ui/service/session/server/traverse/traverse.go:86
↓ 2 callers
Method
SetUnreadUnsafe
(unread, mentioned bool)
internal/ui/service/session/server/traverse/traverse.go:100
↓ 2 callers
Function
Spawn
(conf Configurator)
internal/ui/service/config/config.go:48
↓ 2 callers
Method
StartEditing
(msgID cchat.ID)
internal/ui/messages/input/input.go:363
↓ 2 callers
Method
String
()
internal/log/log.go:30
↓ 2 callers
Method
Systemlnf
Systemlnf is not thread-safe.
internal/ui/service/session/server/commander/buffer.go:47
↓ 2 callers
Function
Traverse
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 callers
Function
TryBreadcrumb
TryBreadcrumb accepts a nilable breadcrumber and handles it appropriately.
internal/ui/service/session/server/traverse/traverse.go:50
↓ 2 callers
Function
TryID
(i Breadcrumber, appended ...cchat.ID)
internal/ui/service/session/server/traverse/traverse.go:65
↓ 2 callers
Method
UpdateContent
UpdateContent updates the underlying content widget.
internal/ui/messages/message/message.go:31
↓ 2 callers
Function
UpdateMessage
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 callers
Method
UpdateServerUnsafe
(update cchat.ServerUpdate)
internal/ui/service/session/server/children.go:231
↓ 2 callers
Method
UseInitialsIfNone
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 callers
Function
Warn
Warn calls Info().
internal/log/log.go:54
↓ 2 callers
Function
WrapMessage
(ct *message.State)
internal/ui/messages/container/compact/message.go:55
↓ 2 callers
Function
Write
(msg string)
internal/log/log.go:62
↓ 2 callers
Method
addMessage
(msg container.MessageRow)
internal/ui/messages/container/compact/compact.go:58
↓ 2 callers
Method
addPreview
(name string, thumbnail *cairo.Surface)
internal/ui/messages/input/attachment/attachment.go:273
↓ 2 callers
Method
append
-- internal methods -- append guarantees there's no collision. It returns the unique filename.
internal/ui/messages/input/attachment/attachment.go:211
↓ 2 callers
Method
appendIndex
(ind int)
internal/ui/rich/parser/attrmap/attrmap.go:27
↓ 2 callers
Function
bind
bind connects activate-link. If activator returns true, then nothing is done. Activator can be nil.
internal/ui/rich/labeluri/labeluri.go:244
↓ 2 callers
Function
bithas
(bit, has uint)
internal/ui/messages/input/keydown.go:16
↓ 2 callers
Method
childrenSetErr
(err error)
internal/ui/service/session/server/server.go:321
↓ 2 callers
Function
colorAttrs
colorAttrs renders the given color into a list of attributes.
internal/ui/rich/parser/markup/markup.go:325
↓ 2 callers
Method
createMessageContainer
()
internal/ui/messages/view.go:201
↓ 2 callers
Function
execIfCtx
(ctx context.Context, fn func())
internal/gts/httputil/image.go:181
↓ 2 callers
Method
findIndex
findIndex searches backwards for id.
internal/ui/messages/container/list.go:238
↓ 2 callers
Method
findMessage
(presend bool, fn func(*messageRow) bool)
internal/ui/messages/container/list.go:264
↓ 2 callers
Function
fmtSegmentURI
(stype string, ix int)
internal/ui/rich/parser/markup/markup.go:76
↓ 2 callers
Function
hyphenate
(text string)
internal/ui/rich/parser/markup/markup.go:24
↓ 2 callers
Method
invalidate
invalidate sorts and invalidates the state.
internal/ui/messages/typing/state.go:89
↓ 2 callers
Function
lettersOnly
(str string)
internal/humanize/locale.go:17
↓ 2 callers
Method
load
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 callers
Function
mustSurface
(p *gdk.Pixbuf, scale int)
icons/icons.go:33
↓ 2 callers
Method
name
()
internal/ui/messages/container/list.go:66
↓ 2 callers
Function
newCSD
(body, header gtk.IWidget)
internal/ui/dialog/dialog.go:72
↓ 2 callers
Function
newRow
(parent traverse.Breadcrumber, name text.Rich, ctrl Controller)
internal/ui/service/session/session.go:144
↓ 2 callers
Function
nonceKey
(nonce string)
internal/ui/messages/container/list.go:22
↓ 2 callers
Function
posHaveSpace
(tags map[int][]byte, pos int)
internal/ui/rich/parser/attrmap/attrmap.go:67
↓ 2 callers
Method
refetch
()
internal/ui/primitives/roundimage/avatar.go:85
↓ 2 callers
Method
removeTyper
(typerID string)
internal/ui/messages/typing/state.go:134
↓ 2 callers
Method
reset
reset resets the message view, but does not change visible containers.
internal/ui/messages/view.go:239
↓ 2 callers
Method
sendInput
()
internal/ui/messages/input/sendable.go:37
↓ 2 callers
Function
serviceFile
(conf Configurator)
internal/ui/service/config/config.go:80
↓ 2 callers
Method
set
(v bool)
internal/ui/config/widgets.go:69
↓ 2 callers
Method
set
(v string)
internal/ui/config/widgets.go:108
↓ 2 callers
Method
setAuthers
(authers []cchat.Authenticator)
internal/ui/service/auth/auth.go:107
↓ 2 callers
Function
setIf
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 callers
Method
setLabel
(label text.Rich)
internal/ui/rich/rich.go:193
↓ 2 callers
Method
setLoading
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 callers
Method
setNotLoading
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 callers
Function
thumbnailPixbuf
(pixbuf *gdk.Pixbuf, scale int)
internal/ui/messages/input/attachment/attachment.go:311
↓ 2 callers
Function
timeAgo
(t time.Time, truncs []truncator)
internal/humanize/humanize.go:47
↓ 2 callers
Method
uncompact
(msg container.MessageRow)
internal/ui/messages/container/cozy/cozy.go:150
↓ 1 callers
Method
Acquire
()
internal/ui/rich/async.go:13
↓ 1 callers
Function
ActionPopover
(p *gtk.Popover, actions [][2]string)
internal/ui/primitives/primitives.go:295
↓ 1 callers
Function
AddEntryHandler
AddEntryHandler adds a handler, which will run asynchronously.
internal/log/log.go:35
↓ 1 callers
Method
AddFile
AddFile is used for the file picker.
internal/ui/messages/input/attachment/attachment.go:169
← previous
next →
201–300 of 952, ranked by callers