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
hasActions
()
internal/ui/messages/state.go:38
↓ 1 callers
Function
hexPad
(c uint32)
internal/ui/rich/parser/markup/markup.go:353
↓ 1 callers
Function
iconFromName
(filename string)
internal/ui/messages/input/attachment/attachment.go:363
↓ 1 callers
Method
insertAt
(row *ServerRow, i int)
internal/ui/service/session/server/children.go:216
↓ 1 callers
Function
largeText
(text string)
internal/ui/rich/labeluri/labeluri.go:189
↓ 1 callers
Method
load
()
internal/ui/service/session/servers.go:137
↓ 1 callers
Function
loadFn
(ctx context.Context, img ImageContainer, isGIF bool)
internal/gts/httputil/image.go:160
↓ 1 callers
Function
loadImage
(fc *gtk.FileChooserNativeDialog, img *gtk.Image)
internal/gts/gts.go:319
↓ 1 callers
Function
loadProviders
(screen *gdk.Screen)
internal/gts/css.go:18
↓ 1 callers
Method
makeActionItem
makeActionItem creates a new menu callback that's called on menu item activation.
internal/ui/messages/view.go:501
↓ 1 callers
Function
markupAttr
(attr text.Attribute)
internal/ui/rich/parser/markup/markup.go:440
↓ 1 callers
Function
mimeFromHeaders
(headers http.Header)
internal/gts/httputil/image.go:148
↓ 1 callers
Function
min
(i, j int)
internal/ui/messages/memberlist/eventqueue.go:73
↓ 1 callers
Function
minsize
minsize returns the scaled size so that the largest edge is maxsz.
internal/ui/messages/input/attachment/attachment.go:382
↓ 1 callers
Function
newContainer
(conf map[string]string, apply func() error)
internal/ui/service/config/widgets.go:34
↓ 1 callers
Function
newEntry
(authEntry cchat.AuthenticateEntry)
internal/ui/service/auth/entries.go:188
↓ 1 callers
Function
newEntry
(k string, conf map[string]string, change func())
internal/ui/service/config/widgets.go:109
↓ 1 callers
Function
newErrorHeader
()
internal/ui/service/config/widgets.go:135
↓ 1 callers
Method
nthMessage
(n int)
internal/ui/messages/container/list.go:309
↓ 1 callers
Method
pop
()
internal/ui/messages/memberlist/eventqueue.go:43
↓ 1 callers
Method
popover
(relative gtk.IWidget)
internal/ui/primitives/actions/menu.go:66
↓ 1 callers
Function
popoverImg
popoverImg creates a new button with an image for it, which is used for the avatar in the user popover.
internal/ui/rich/labeluri/labeluri.go:197
↓ 1 callers
Method
remove
(name string)
internal/ui/messages/input/attachment/attachment.go:228
↓ 1 callers
Function
render
(typers []typer)
internal/ui/messages/typing/typing.go:158
↓ 1 callers
Method
reset
()
internal/ui/messages/typing/state.go:40
↓ 1 callers
Method
reset
()
internal/ui/rich/parser/hl/hl.go:87
↓ 1 callers
Method
resetCtx
()
internal/ui/primitives/roundimage/roundimage.go:189
↓ 1 callers
Method
restoreAll
restoreAll restores all sessions.
internal/ui/service/service.go:265
↓ 1 callers
Method
retryMessage
retryMessage sends the message.
internal/ui/messages/view.go:429
↓ 1 callers
Method
saveSelectedRow
saveSelectedRow saves the current selected row and returns a callback that restores the selection.
internal/ui/service/session/server/children.go:288
↓ 1 callers
Method
segments
(appendmap *attrmap.AppendMap, offset int, iter chroma.Iterator)
internal/ui/rich/parser/hl/hl.go:91
↓ 1 callers
Method
set
(v int)
internal/ui/config/widgets.go:26
↓ 1 callers
Method
setDone
setDone changes the view to show the servers.
internal/ui/service/session/servers.go:181
↓ 1 callers
Method
setFailed
setFailed shows a sad face with the error. Use this when the session row has failed to load.
internal/ui/service/session/servers.go:205
↓ 1 callers
Method
setForegroundAnchor
setForegroundAnchor sets the AnchorColor of the render config to be that of the regular text foreground color.
internal/ui/rich/parser/markup/markup.go:143
↓ 1 callers
Method
setLoading
setLoading shows a loading spinner. Use this after the session row is connected.
internal/ui/service/session/servers.go:193
↓ 1 callers
Method
setcurrent
(fn func())
internal/ui/messages/state.go:84
↓ 1 callers
Method
shouldReveal
shouldReveal returns whether or not the container should reveal.
internal/ui/messages/input/username/username.go:97
↓ 1 callers
Function
spawn
(c Configurator, conf map[string]string, apply func(final bool) error)
internal/ui/service/config/config.go:84
↓ 1 callers
Function
splitRGBA
splitRGBA splits the given rgba integer into rgb and a.
internal/ui/rich/parser/markup/markup.go:318
↓ 1 callers
Function
statusClassName
(status cchat.Status)
internal/ui/messages/memberlist/memberlist.go:426
↓ 1 callers
Method
styleAttr
(tt chroma.TokenType)
internal/ui/rich/parser/hl/hl.go:109
↓ 1 callers
Function
styleEntryToTag
(e chroma.StyleEntry)
internal/ui/rich/parser/hl/hl.go:140
↓ 1 callers
Function
styleToCSS
(style *chroma.Style)
internal/ui/rich/parser/hl/hl.go:123
↓ 1 callers
Method
textLen
()
internal/ui/messages/input/input.go:420
↓ 1 callers
Method
update
update force-runs th callback.
internal/ui/messages/typing/state.go:84
↓ 1 callers
Method
update
()
internal/ui/primitives/completion/completer.go:175
↓ 1 callers
Function
urlExt
(anyURL string)
internal/gts/httputil/image.go:139
↓ 1 callers
Method
values
()
internal/ui/service/auth/entries.go:179
Method
Activate
Activate executes whatever needs to be done. If the row has failed, then this method will reconnect. If the row is already loaded, then SessionSelecte
internal/ui/service/session/session.go:266
Method
Activate
()
internal/ui/messages/memberlist/eventqueue.go:36
Method
Add
Add adds a session into the sessions list.
internal/keyring/keyring.go:90
Method
Add
(msg Message)
internal/ui/messages/container/compact/compact.go:29
Method
Add
(fn func())
internal/ui/messages/memberlist/eventqueue.go:25
Method
Add
(f func())
internal/ui/config/config.go:117
Method
AddAction
(label string, call func())
internal/ui/primitives/actions/stateful.go:38
Method
AddFiles
AddFiles is used for the file chooser's callback.
internal/ui/messages/input/attachment/attachment.go:160
Method
AddMessageAt
(msg MessageRow, ix int)
internal/ui/messages/container/list.go:379
Method
AddProcessor
AddProcessor adds image processors that will be processed on fetched images. Images generated internally, such as initials, won't use it.
internal/ui/primitives/roundimage/roundimage.go:98
Method
AddService
(svc cchat.Service)
internal/ui/service/view.go:68
Method
AddService
(svc cchat.Service)
internal/ui/service/list.go:77
Method
AddSimpleItem
(name string, fn func())
internal/ui/primitives/menu/menu.go:38
Method
AddTyper
AddTyper is thread-safe.
internal/ui/messages/typing/state.go:99
Function
AppendMenuItems
(menu interface{ Append(gtk.IMenuItem) }, items []gtk.IMenuItem)
internal/ui/primitives/primitives.go:196
Method
AsAttacher
()
internal/ui/messages/input/sendable.go:132
Method
AsNoncer
()
internal/ui/messages/input/sendable.go:129
Method
AsReplier
()
internal/ui/messages/input/sendable.go:133
Function
AsyncCancel
AsyncCancel is similar to AsyncCtx, but the context is created internally.
internal/gts/gts.go:174
Function
AsyncCtx
AsyncCtx does what Async does, except the returned callback will not be executed if the given context has expired or the returned callback is called.
internal/gts/gts.go:195
Function
AsyncUse
AsyncUse is a handler for structs that implement the Reuser primitive. The passed in function will be called asynchronously, but swap will be called i
internal/ui/rich/async.go:23
Method
Attachments
Attachments returns the list of files as a list of cchat attachments.
internal/ui/messages/input/sendable.go:102
Method
AuthenticateSession
(list *service.List, ssvc *service.Service)
internal/ui/ui.go:201
Method
AuthenticateSession
()
internal/ui/service/service.go:169
Method
AuthenticateSession
AuthenticateSession is called to spawn the authentication dialog.
internal/ui/service/view.go:19
Method
AuthenticateSession
(svc *Service)
internal/ui/service/list.go:65
Method
Author
Author returns the author from the message list with the given author ID.
internal/ui/messages/view.go:404
Method
AuthorEvent
AuthorEvent should be called on message create/update/delete.
internal/ui/messages/view.go:386
Function
BinLeftAlignLabel
(bin Bin)
internal/ui/primitives/primitives.go:164
Function
BindDynamicMenu
(connector Connector, constr func(menu *gtk.Menu))
internal/ui/primitives/primitives.go:244
Function
BindMenu
(connector Connector, menu *gtk.Menu)
internal/ui/primitives/primitives.go:236
Method
BindMenu
BindMenu attaches the menu constructor into the message with the needed states and callbacks.
internal/ui/messages/view.go:467
Function
BindPreviewer
BindPreviewer binds the file chooser dialog with a previewer.
internal/gts/gts.go:312
Method
BorrowLabel
BorrowLabel borrows the container label. The typing indicator will display the given markup string instead of the markup it is intended to display unt
internal/ui/messages/typing/typing.go:121
Method
Bottomed
()
internal/ui/messages/view.go:230
Method
Breadcrumb
()
internal/ui/service/service.go:228
Method
Breadcrumb
()
internal/ui/service/session/session.go:251
Method
Breadcrumb
()
internal/ui/service/session/server/server.go:376
Method
ClearMessenger
(ses *session.Row)
internal/ui/ui.go:153
Method
ClearMessenger
ClearMessenger is called when a nil slice of servers is set.
internal/ui/service/service.go:26
Method
ClearMessenger
ClearMessenger is called when a nil slice of servers is set.
internal/ui/service/view.go:15
Method
ClearMessenger
(*session.Row)
internal/ui/service/list.go:13
Method
ClearMessenger
ClearMessenger is called when a nil slice of servers is set.
internal/ui/service/session/session.go:40
Method
ClearMessenger
()
internal/ui/service/session/session.go:259
Method
Close
Close is called when the application finishes gracefully.
internal/ui/ui.go:209
Method
Connect
(string, interface{})
internal/ui/primitives/primitives.go:221
Method
Connect
(c Connector)
internal/gts/throttler/throttler.go:36
Method
Construct
()
internal/ui/config/widgets.go:33
Method
Construct
()
internal/ui/config/widgets.go:76
Method
Construct
()
internal/ui/config/widgets.go:116
Method
Content
Words returns the buffer content split into words.
internal/ui/primitives/completion/completer.go:117
← previous
next →
601–700 of 952, ranked by callers