Exemplo n.º 1
0
/*
Creates a new pixbuf loader object.
*/
func PixbufLoaderNew() (return__ *PixbufLoader) {
	var __cgo__return__ interface{}
	__cgo__return__ = C.gdk_pixbuf_loader_new()
	if __cgo__return__ != nil {
		return__ = NewPixbufLoaderFromCPointer(unsafe.Pointer(reflect.ValueOf(__cgo__return__).Pointer()))
	}
	return
}
Exemplo n.º 2
0
Arquivo: gdk.go Projeto: raichu/gotk3
// PixbufLoaderNew() is a wrapper around gdk_pixbuf_loader_new().
func PixbufLoaderNew() (*PixbufLoader, error) {
	c := C.gdk_pixbuf_loader_new()
	if c == nil {
		return nil, nilPtrErr
	}
	obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))}
	p := &PixbufLoader{obj}
	runtime.SetFinalizer(obj, (*glib.Object).Unref)
	return p, nil
}
Exemplo n.º 3
0
func NewLoader() *Loader {
	return &Loader{
		C.gdk_pixbuf_loader_new()}
}
Exemplo n.º 4
0
func PixbufLoaderNew() (_go__return__ PixbufLoader) {
	var _return_ *C.GdkPixbufLoader
	_return_ = C.gdk_pixbuf_loader_new()
	_go__return__ = ToPixbufLoader(unsafe.Pointer(_return_))
	return
}
Exemplo n.º 5
0
func PixbufLoader() *GdkPixbufLoader {
	return &GdkPixbufLoader{
		C.gdk_pixbuf_loader_new()}
}