Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapCloser ¶
WrapCloser wraps a reader around a closer.
func WrapProgressReader ¶
func WrapProgressReader(b *ProgressBar, r io.ReadCloser) io.ReadCloser
WrapProgressReader wraps a ProgressBar to update it when the reader is read from.
Types ¶
type ProgressBar ¶
type ProgressBar struct { *gtk.ProgressBar // contains filtered or unexported fields }
ProgressBar is a wrapper around gtk.ProgressBar.
func NewProgressBar ¶
func NewProgressBar() *ProgressBar
func (*ProgressBar) Done ¶
func (p *ProgressBar) Done(err bool)
Done marks the progress bar as done. This method is safe to use concurrently.
func (*ProgressBar) Read ¶
func (p *ProgressBar) Read(bytes int64)
Read increments the bytes read. This method is safe to use concurrently.
func (*ProgressBar) SetTotal ¶
func (p *ProgressBar) SetTotal(bytes int64)
SetTotal sets the total number of bytes to upload. This method is safe to use concurrently.
Click to show internal directories.
Click to hide internal directories.