Documentation ¶
Index ¶
- type Image
- func (i *Image) Clear()
- func (i *Image) Clip(cc *cairo.Context)
- func (i *Image) Initials() string
- func (i *Image) SetFromAnimation(p *gdkpixbuf.PixbufAnimation)
- func (i *Image) SetFromPixbuf(p *gdkpixbuf.Pixbuf)
- func (i *Image) SetFromSurface(s *cairo.Surface)
- func (i *Image) SetInitials(initials string)
- func (i *Image) SetRadius(r float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { gtk.Image Radius float64 // contains filtered or unexported fields }
Image represents an image with abstractions for asynchronously fetching images from a URL as well as having interchangeable fallbacks.
func NewImage ¶
NewImage creates a new round image. If radius is 0, then it will be half the dimensions. If the radius is less than 0, then nothing is rounded.
func (*Image) SetFromAnimation ¶
func (i *Image) SetFromAnimation(p *gdkpixbuf.PixbufAnimation)
func (*Image) SetFromPixbuf ¶
func (i *Image) SetFromPixbuf(p *gdkpixbuf.Pixbuf)
func (*Image) SetFromSurface ¶
func (*Image) SetInitials ¶
Click to show internal directories.
Click to hide internal directories.