Documentation ¶
Overview ¶
Package common provides simple gtk helpers.
Index ¶
- func GRRTHREADS()
- func ImageNewFromFile(iconName string, size int) (*gtk.Image, error)
- func InitGtk() (onstart, onstop func())
- func NewWindowMain(widget gtk.IWidget, w, h int) *gtk.Window
- func PixbufAtSize(file string, maxW, maxH int) (*gdk.Pixbuf, error)
- func PixbufNewFromFile(iconName string, size int) (pixbuf *gdk.Pixbuf, e error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageNewFromFile ¶
ImageNewFromFile creates an image widget from the file path.
func InitGtk ¶
func InitGtk() (onstart, onstop func())
InitGtk provides GTK start and stop callbacks.
func NewWindowMain ¶
NewWindowMain creates a new toplevel window, set size and pack the main widget.
func PixbufAtSize ¶
PixbufAtSize loads an image from disk as pixbuf.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.