/*
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
}
Example #2
0
File: gdk.go Project: 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
}
Example #3
0
func NewLoader() *Loader {
	return &Loader{
		C.gdk_pixbuf_loader_new()}
}
Example #4
0
func PixbufLoaderNew() (_go__return__ PixbufLoader) {
	var _return_ *C.GdkPixbufLoader
	_return_ = C.gdk_pixbuf_loader_new()
	_go__return__ = ToPixbufLoader(unsafe.Pointer(_return_))
	return
}
Example #5
0
func PixbufLoader() *GdkPixbufLoader {
	return &GdkPixbufLoader{
		C.gdk_pixbuf_loader_new()}
}