common

package
v0.0.0-...-0caaa62 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2017 License: GPL-3.0-or-later Imports: 4 Imported by: 1

Documentation

Overview

Package common provides simple gtk helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRRTHREADS

func GRRTHREADS()

GRRTHREADS is a dirty hack to prevent threads related crashs.

func ImageNewFromFile

func ImageNewFromFile(iconName string, size int) (*gtk.Image, error)

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

func NewWindowMain(widget gtk.IWidget, w, h int) *gtk.Window

NewWindowMain creates a new toplevel window, set size and pack the main widget.

func PixbufAtSize

func PixbufAtSize(file string, maxW, maxH int) (*gdk.Pixbuf, error)

PixbufAtSize loads an image from disk as pixbuf.

func PixbufNewFromFile

func PixbufNewFromFile(iconName string, size int) (pixbuf *gdk.Pixbuf, e error)

PixbufNewFromFile loads an icon from stock or disk as pixbuf.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL