Documentation ¶
Index ¶
- type Input
- type Message
- type Messages
- func (m *Messages) Cleanup()
- func (m *Messages) Focus()
- func (m *Messages) GetChannelID() discord.ChannelID
- func (m *Messages) GetGuildID() discord.GuildID
- func (m *Messages) GetRecentAuthorsUnsafe(limit int) []discord.UserID
- func (m *Messages) LastFromMeUnsafe() *Message
- func (m *Messages) Load(channel discord.ChannelID, done func(error))
- func (m *Messages) ScrollToBottom()
- func (m *Messages) SetWidth(width int)
- func (m *Messages) UpdateUnsafe(update *discord.Message) bool
- func (m *Messages) UpsertUnsafe(message *discord.Message)
- type Opts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct { *handy.Column Messages *Messages Main *gtk.Box Style *gtk.StyleContext Completer *completer.State InputBox *gtk.Box Input *gtk.TextView InputBuf *gtk.TextBuffer Upload *gtk.Button Emoji *gtk.Button Send *gtk.Button Bottom *gtk.Box Typing *typing.State // | Typing... | Editing. _Cancel_ | EditRevealer *gtk.Revealer EditLabel *gtk.Label EditCancel *gtk.Button Editing *discord.Message }
type Message ¶
type Message struct { *gtk.ListBoxRow Nonce string ID discord.MessageID AuthorID discord.UserID Author string Webhook bool Timestamp time.Time Edited time.Time Condensed bool CondenseOffset time.Duration OnUserClick func(m *Message) OnRightClick func(m *Message, btn *gdk.EventButton) // contains filtered or unexported fields }
func (*Message) SetCondensedUnsafe ¶
func (*Message) UpdateAvatar ¶
func (*Message) UpdateContentUnsafe ¶
type Messages ¶
type Messages struct { Opts gtkutils.ExtendedWidget Main *gtk.Box Column *handy.Column Scroll *gtk.ScrolledWindow Viewport *gtk.Viewport Messages *gtk.ListBox // Additional components Input *Input // contains filtered or unexported fields }
func (*Messages) GetChannelID ¶
func (*Messages) GetGuildID ¶
func (*Messages) GetRecentAuthorsUnsafe ¶
func (*Messages) ScrollToBottom ¶
func (m *Messages) ScrollToBottom()
func (*Messages) UpsertUnsafe ¶
type Opts ¶
type Opts struct { // Whether or not the sent messages should be "obfuscated" with zero-width // space characters, which avoids telemetry somewhat. InputZeroWidth bool // true // Whether or not gtkcord should send typing events to the Discord server // and announce it. InputOnTyping bool // true MessageWidth int }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.