Пример #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
}
Пример #2
0
// 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
}
Пример #3
0
func NewLoader() *Loader {
	return &Loader{
		C.gdk_pixbuf_loader_new()}
}
Пример #4
0
func PixbufLoaderNew() (_go__return__ PixbufLoader) {
	var _return_ *C.GdkPixbufLoader
	_return_ = C.gdk_pixbuf_loader_new()
	_go__return__ = ToPixbufLoader(unsafe.Pointer(_return_))
	return
}
Пример #5
0
func PixbufLoader() *GdkPixbufLoader {
	return &GdkPixbufLoader{
		C.gdk_pixbuf_loader_new()}
}