Beispiel #1
0
func (v *GObject) Ref() {
	C.g_object_ref(C.gpointer(v.Object))
}
Beispiel #2
0
// GdkBitmap* gdk_bitmap_create_from_data (GdkDrawable *drawable, const gchar *data, gint width, gint height);
// GdkPixmap* gdk_pixmap_create_from_data (GdkDrawable *drawable, const gchar *data, gint width, gint height, gint depth, const GdkColor *fg, const GdkColor *bg);
// GdkPixmap* gdk_pixmap_create_from_xpm (GdkDrawable *drawable, GdkBitmap **mask, const GdkColor *transparent_color, const gchar *filename);
// GdkPixmap* gdk_pixmap_colormap_create_from_xpm (GdkDrawable *drawable, GdkColormap *colormap, GdkBitmap **mask, const GdkColor *transparent_color, const gchar *filename);
// GdkPixmap* gdk_pixmap_create_from_xpm_d (GdkDrawable *drawable, GdkBitmap **mask, const GdkColor *transparent_color, gchar **data);
// GdkPixmap* gdk_pixmap_colormap_create_from_xpm_d (GdkDrawable *drawable, GdkColormap *colormap, GdkBitmap **mask, const GdkColor *transparent_color, gchar **data);
// GdkPixmap* gdk_pixmap_foreign_new (GdkNativeWindow anid);
// GdkPixmap* gdk_pixmap_lookup (GdkNativeWindow anid);
// GdkPixmap* gdk_pixmap_foreign_new_for_display (GdkDisplay *display, GdkNativeWindow anid);
// GdkPixmap* gdk_pixmap_lookup_for_display (GdkDisplay *display, GdkNativeWindow anid);
// GdkPixmap* gdk_pixmap_foreign_new_for_screen (GdkScreen *screen, GdkNativeWindow anid, gint width, gint height, gint depth);
func (v *GdkPixmap) Ref() {
	C.g_object_ref(C.gpointer(v.Pixmap))
}
Beispiel #3
0
func Ref(obj ObjectLike) {
	C.g_object_ref(C.gpointer(obj.ToNative()))
}
Beispiel #4
0
/*
Increases the reference count of @object.
*/
func (self *TraitObject) Ref() (return__ *Object) {
	var __cgo__return__ C.gpointer
	__cgo__return__ = C.g_object_ref((C.gpointer)(unsafe.Pointer(self.CPointer)))
	return__ = NewObjectFromCPointer(unsafe.Pointer(__cgo__return__))
	return
}
Beispiel #5
0
func g_object_ref(p GObject) {
	C.g_object_ref(Arg(p))
}
Beispiel #6
0
func (o *Object) Ref() *Object {
	r := new(Object)
	r.SetPtr(Pointer(C.g_object_ref(o.p)))
	return r
}