Documentation ¶
Index ¶
- Constants
- func NewAnyAttachment(name, url string, size uint64) gtk.Widgetter
- func NewAttachment(msg *discord.Message) []gtk.Widgetter
- func NewEmbed(s *ningen.State, msg *discord.Message) []gtk.Widgetter
- func NewSaver(filename string, onSave func(string)) func()
- func SpawnPreviewDialog(proxy, imageURL string)
- func SpawnUploader(callback func(absolutePath []string))
- func WithPreviewer(fc *gtk.FileChooserNative)
- type MessageUploader
- type PreviewDialog
- type ProgressUploader
- type Uploader
Constants ¶
View Source
const EmbedMainCSS = ".embed { border-left: 4px solid #%06X; }"
Variables ¶
This section is empty.
Functions ¶
func NewAnyAttachment ¶ added in v0.1.0
func NewAttachment ¶ added in v0.1.0
func SpawnPreviewDialog ¶
func SpawnPreviewDialog(proxy, imageURL string)
func SpawnUploader ¶
func SpawnUploader(callback func(absolutePath []string))
func WithPreviewer ¶
func WithPreviewer(fc *gtk.FileChooserNative)
Types ¶
type MessageUploader ¶
type MessageUploader struct { *gtk.Box // contains filtered or unexported fields }
func NewMessageUploader ¶
func NewMessageUploader(paths []string) (*MessageUploader, error)
func (*MessageUploader) Close ¶
func (m *MessageUploader) Close()
func (*MessageUploader) MakeSendData ¶
func (m *MessageUploader) MakeSendData(message *discord.Message) api.SendMessageData
type PreviewDialog ¶
type PreviewDialog struct { *gtk.Dialog Content *gtk.Box Image *gtk.Image OpenOriginal *gtk.Button ImageView *gtk.ScrolledWindow Proxy string URL string }
func (*PreviewDialog) Fetch ¶
func (pd *PreviewDialog) Fetch(w, h int)
type ProgressUploader ¶
type ProgressUploader struct { *gtk.Box Name string // contains filtered or unexported fields }
func NewProgressUploader ¶
func NewProgressUploader(Name string, r io.ReadCloser, s int64) *ProgressUploader
func (*ProgressUploader) Close ¶
func (p *ProgressUploader) Close() error
Click to show internal directories.
Click to hide internal directories.