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
↓ 4 callers
Method
SetBreadcrumber
(b traverse.Breadcrumber)
internal/ui/service/header.go:109
↓ 4 callers
Method
SetCompleter
SetCompleter sets the current completer. If completer is nil, then the completer is disabled.
internal/ui/primitives/completion/completer.go:88
↓ 4 callers
Method
SetExpand
SetExpand sets whether or not to expand the margin and show the labels.
internal/ui/service/session/server/children.go:115
↓ 4 callers
Method
SetFocusHAdjustment
UI methods.
internal/ui/messages/container/container.go:63
↓ 4 callers
Method
SetFocusVAdjustment
(*gtk.Adjustment)
internal/ui/messages/container/container.go:64
↓ 4 callers
Method
SetReferenceHighlighter
SetReferenceHighlighter sets the reference highlighter into the message.
internal/ui/messages/message/message.go:34
↓ 4 callers
Method
SetShowLabel
SetShowLabel sets whether or not to show the button's (and its children's, if any)'s icons.
internal/ui/service/session/server/server.go:350
↓ 4 callers
Function
UnmarshalFromFile
UnmarshalFromFile unmarshals the given filename to the given interface. The filename will be prepended with the config directory. IsNotExist errors ar
internal/ui/config/file.go:96
↓ 4 callers
Function
WrapFullMessage
(gc *message.State)
internal/ui/messages/container/cozy/message_full.go:61
↓ 4 callers
Method
ensurePlaceholderDestroyed
()
internal/ui/messages/sadface/sadface.go:82
↓ 4 callers
Method
unbind
()
internal/ui/messages/msgctrl.go:31
↓ 4 callers
Function
wrapKeyValue
(key, value string)
internal/ui/rich/parser/markup/markup.go:429
↓ 3 callers
Method
AddMessageAt
AddMessage adds the given message.
internal/ui/messages/container/cozy/cozy.go:80
↓ 3 callers
Method
AnchorNU
AnchorNU makes a new <a> tag without underlines and colors.
internal/ui/rich/parser/attrmap/attrmap.go:43
↓ 3 callers
Function
AppearanceAdd
(name string, value EntryValue)
internal/ui/config/config.go:55
↓ 3 callers
Method
BindNamer
BindNamer binds a destructor signal to the name container to cancel a context.
internal/ui/rich/rich.go:102
↓ 3 callers
Method
BorrowLabel
(markup string)
internal/ui/messages/input/input.go:35
↓ 3 callers
Method
ClearBox
ClearBox clears the state's widget container.
internal/ui/messages/message/message.go:130
↓ 3 callers
Function
ExecLater
ExecLater executes the function asynchronously with a low priority.
internal/gts/gts.go:211
↓ 3 callers
Function
FindItemFunc
FindItemFunc iterates over the list of items and returns the first item with the matching name.
internal/ui/primitives/menu/menu.go:77
↓ 3 callers
Method
FindMessage
FindMessage finds a message that satisfies the given callback. It iterates the message buffer from latest to earliest.
internal/ui/messages/container/container.go:56
↓ 3 callers
Function
ForeachChildBackwards
ForeachChildBackwards iterates the list backwards. If the callback returns true, then the loop is broken.
internal/ui/primitives/primitives.go:84
↓ 3 callers
Method
GetSizeRequest
()
internal/gts/httputil/image.go:27
↓ 3 callers
Method
GrabFocus
()
internal/ui/messages/container/container.go:19
↓ 3 callers
Method
GrabFocus
()
internal/ui/primitives/primitives.go:149
↓ 3 callers
Function
Info
(err error)
internal/log/log.go:58
↓ 3 callers
Function
InsertPosition
InsertPosition returns the message that is before the given time (or nil) and the new index of the message with the given timestamp. If -1 is returned
internal/ui/messages/container/container.go:105
↓ 3 callers
Method
LoadAll
LoadAll forces all children rows to be unhollowed (initialized). It does NOT check if the children container itself is hollow.
internal/ui/service/session/server/children.go:263
↓ 3 callers
Method
MessagesLen
MessagesLen returns the current number of messages.
internal/ui/messages/container/container.go:46
↓ 3 callers
Method
MessagesLen
()
internal/ui/messages/container/list.go:154
↓ 3 callers
Function
NewCompleter
(input *gtk.TextView)
internal/ui/primitives/completion/completer.go:49
↓ 3 callers
Function
NewCustomAuthor
NewCustomAuthor creates a new Author from the given parameters.
internal/ui/messages/message/author.go:26
↓ 3 callers
Function
NewEmptyModalDialog
()
internal/gts/gts.go:65
↓ 3 callers
Function
NewLabel
NewLabel creates a self-updating label.
internal/ui/rich/label.go:50
↓ 3 callers
Function
NewLabel
var ( _ Labeler = (*Label)(nil) _ rich.SuperLabeler = (*Label)(nil) )
internal/ui/rich/labeluri/labeluri.go:52
↓ 3 callers
Function
NewMenu
(prefix string)
internal/ui/primitives/actions/menu.go:26
↓ 3 callers
Function
NewPopoverMentioner
(rel gtk.IWidget, input string, segment text.Segment)
internal/ui/rich/labeluri/labeluri.go:117
↓ 3 callers
Function
NewState
NewState creates a new message state with the given MessageCreate.
internal/ui/messages/message/message.go:57
↓ 3 callers
Function
NewVScroll
(maxHeight int)
internal/ui/primitives/scrollinput/scrollinput.go:5
↓ 3 callers
Method
NthMessage
NthMessage returns the nth message in the buffer or nil if there's nothing.
internal/ui/messages/container/container.go:49
↓ 3 callers
Method
OnMessageDone
OnMessageDone is called after OnMessageBusy, when the message buffer is done with loading.
internal/ui/messages/view.go:57
↓ 3 callers
Method
PopupAtPointer
(ev *gdk.Event)
internal/ui/primitives/menu/menu.go:46
↓ 3 callers
Function
PromptOpen
PromptOpen shows a dialog asking if the URL should be opened.
internal/ui/rich/labeluri/labeluri.go:319
↓ 3 callers
Method
Remove
(gtk.IWidget)
internal/ui/primitives/buttonoverlay/buttonoverlay.go:20
↓ 3 callers
Function
RenderCmplx
RenderCmplx renders content into a complete output.
internal/ui/rich/parser/markup/markup.go:116
↓ 3 callers
Method
Revert
Revert unwraps and reverts all widget changes to the internal state then returns that state.
internal/ui/messages/message/message.go:28
↓ 3 callers
Method
SaveAllSessions
()
internal/ui/service/service.go:236
↓ 3 callers
Method
SessionID
SessionID returns the session ID, or an empty string if there's no session.
internal/ui/messages/state.go:43
↓ 3 callers
Method
Set
(service string, v interface{})
internal/keyring/driver/driver.go:11
↓ 3 callers
Method
SetClicked
SetClicked sets the callback to run when clicked. It overrides the previous callback.
internal/ui/service/session/server/button/button.go:151
↓ 3 callers
Method
SetError
(err error)
internal/ui/service/config/widgets.go:121
↓ 3 callers
Method
SetFromAnimation
(*gdk.PixbufAnimation)
internal/gts/httputil/image.go:26
↓ 3 callers
Method
SetHAlign
(gtk.Align)
internal/ui/primitives/buttonoverlay/buttonoverlay.go:9
↓ 3 callers
Method
SetImage
SetImage sets the avatar from the given label image.
internal/ui/messages/container/cozy/avatar.go:31
↓ 3 callers
Method
SetImage
(img Imager)
internal/ui/primitives/roundimage/button.go:56
↓ 3 callers
Method
SetSensitive
SetSensitive sets the sensitivity of the content.
internal/ui/messages/message/sending.go:71
↓ 3 callers
Method
SetUnreadHandler
SetUpdateHandler sets the parent's update handler. This update handler must refer to the parent's breadcrumb.
internal/ui/service/session/server/traverse/traverse.go:122
↓ 3 callers
Method
State
()
internal/ui/service/session/server/traverse/traverse.go:156
↓ 3 callers
Method
SwapMessage
Swap changes the message with the ID to the given message. This provides a low level API for edits that need a new Attach method. TODO: combine compa
internal/ui/messages/container/list.go:162
↓ 3 callers
Method
Time
()
internal/ui/messages/input/sendable.go:127
↓ 3 callers
Method
UnselectAll
()
internal/ui/service/session/list.go:138
↓ 3 callers
Method
Update
(member cchat.ListMember)
internal/ui/messages/memberlist/memberlist.go:450
↓ 3 callers
Function
WrapCollapsedMessage
WrapCollapsedMessage wraps the given message state to be a collapsed message.
internal/ui/messages/container/cozy/message_collapsed.go:16
↓ 3 callers
Method
bind
(fn func())
internal/ui/messages/msgctrl.go:22
↓ 3 callers
Method
bindMessage
(msgc *messageRow)
internal/ui/messages/container/list.go:362
↓ 3 callers
Method
cancelCtx
()
internal/ui/primitives/roundimage/avatar.go:94
↓ 3 callers
Method
clearBox
clearBox clears everything inside the content container.
internal/ui/messages/message/sending.go:155
↓ 3 callers
Function
destroyMsg
(row *messageRow)
internal/ui/messages/container/list.go:481
↓ 3 callers
Method
ensureImage
()
internal/ui/service/session/server/button/button.go:163
↓ 3 callers
Function
idKey
(id cchat.ID)
internal/ui/messages/container/list.go:23
↓ 3 callers
Function
isCollapsible
isCollapsible returns true if the given lastMsg has matching conditions with the given msg.
internal/ui/messages/container/cozy/cozy.go:51
↓ 3 callers
Function
loadPixbuf
(data []byte, sz, scale int)
icons/icons.go:41
↓ 3 callers
Function
newBindableButton
(iconName string)
internal/ui/messages/msgctrl.go:15
↓ 3 callers
Function
newKey
newKey creates a new message key.
internal/ui/messages/container/list.go:26
↓ 3 callers
Method
onChange
()
internal/ui/primitives/completion/completer.go:129
↓ 3 callers
Method
open
(service string, write bool)
internal/keyring/driver/json/json.go:24
↓ 3 callers
Method
updateBreadcrumb
updateBreadcrumb updates the breadcrumb label from the local state.
internal/ui/messages/header.go:139
↓ 2 callers
Method
Add
(w gtk.IWidget)
internal/ui/primitives/singlestack/singlestack.go:17
↓ 2 callers
Function
AddAppAction
(name string, call func())
internal/gts/gts.go:80
↓ 2 callers
Method
AddSessionRow
AddSessionRow adds the given row as a session into the list.
internal/ui/service/session/list.go:95
↓ 2 callers
Function
AddWindow
(w Windower)
internal/gts/gts.go:42
↓ 2 callers
Function
AfterFunc
AfterFunc mimics time.AfterFunc's API but runs the callback inside the Gtk main loop.
internal/gts/gts.go:251
↓ 2 callers
Function
BindDraggable
BindDraggable binds the draggable widget and make it drag-and-droppable. The parent MUST have its own state of children and MUST NOT rely on its conta
internal/ui/primitives/drag/drag.go:91
↓ 2 callers
Method
Breadcrumb
Breadcrumb returns the breadcrumb name.
internal/ui/service/session/server/traverse/traverse.go:24
↓ 2 callers
Method
CleanMessages
CleanMessages cleans up the oldest messages if the user is scrolled to the bottom. True is returned if there were changes.
internal/ui/messages/container/container.go:194
↓ 2 callers
Method
Clear
()
internal/ui/primitives/completion/completer.go:112
↓ 2 callers
Method
ClearMessenger
()
internal/ui/service/session/servers.go:22
↓ 2 callers
Method
DragDestSet
(gtk.DestDefaults, []gtk.TargetEntry, gdk.DragAction)
internal/ui/primitives/drag/drag.go:47
↓ 2 callers
Function
EachChildren
(w Container, fn func(i int, v interface{}) bool)
internal/ui/primitives/primitives.go:105
↓ 2 callers
Function
Error
Error returns a short error string.
internal/humanize/humanize.go:67
↓ 2 callers
Function
ExecAsyncCtx
ExecAsyncCtx executes the function asynchronously in the Gtk main thread only if the context has not expired. This API has absolutely no race conditio
internal/gts/gts.go:224
↓ 2 callers
Method
Files
These methods are reserved for internal use.
internal/ui/messages/message/sending.go:35
↓ 2 callers
Function
Find
Find searches the given container for the draggable widget with the given name.
internal/ui/primitives/drag/drag.go:21
↓ 2 callers
Function
FirstMessage
FirstMessage returns the first message in the buffer. Nil is returned if there's nothing.
internal/ui/messages/container/container.go:93
↓ 2 callers
Method
GetChild
()
internal/ui/primitives/primitives.go:159
↓ 2 callers
Method
GetRevealChild
GetRevealChild returns whether or not the server list is expanded, or always false if there is no server list.
internal/ui/service/session/server/server.go:480
↓ 2 callers
Method
HasImage
HasImage returns true if the label has an image.
internal/ui/rich/rich.go:210
↓ 2 callers
Function
HiddenMenuItem
(label string, fn interface{})
internal/ui/primitives/primitives.go:202
↓ 2 callers
Method
Init
Init brings the row out of the hollow state. It loads the children (if any), but this process does not make more widgets.
internal/ui/service/session/server/server.go:118
↓ 2 callers
Function
LeafletOnFold
LeafletOnFold binds a callback to a leaflet that would be called when the leaflet's folded state changes.
internal/ui/primitives/primitives.go:348
← previous
next →
101–200 of 952, ranked by callers