Documentation ¶
Index ¶
- Constants
- func NewAnyAttachmentUnsafe(name, url string, size uint64) gtkutils.ExtendedWidget
- func NewAttachmentUnsafe(msg *discord.Message) []gtk.IWidget
- func NewEmbedUnsafe(s *ningen.State, msg *discord.Message) []gtk.IWidget
- func NewSaver(filename string, onSave func(string)) func()
- func SpawnPreviewDialog(proxy, imageURL string)
- func SpawnUploader(callback func(absolutePath []string))
- func WithPreviewer(fc *gtk.FileChooserDialog)
- 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 NewAnyAttachmentUnsafe ¶
func NewAnyAttachmentUnsafe(name, url string, size uint64) gtkutils.ExtendedWidget
func SpawnPreviewDialog ¶
func SpawnPreviewDialog(proxy, imageURL string)
func SpawnUploader ¶
func SpawnUploader(callback func(absolutePath []string))
func WithPreviewer ¶
func WithPreviewer(fc *gtk.FileChooserDialog)
Types ¶
type MessageUploader ¶
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 { *handy.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 ¶
func NewProgressUploader ¶
func NewProgressUploader(Name string, r io.ReadCloser, s int64) *ProgressUploader
func (*ProgressUploader) Close ¶
func (p *ProgressUploader) Close() error
type Uploader ¶
type Uploader struct { *gtk.FileChooserNativeDialog // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.