예제 #1
0
파일: GCancellable.go 프로젝트: gotk3/gio
// native returns a pointer to the underlying GCancellable.
func (v *Cancellable) native() *C.GCancellable {
	if v == nil || v.GObject == nil {
		return nil
	}
	p := unsafe.Pointer(v.GObject)
	return C.toGCancellable(p)
}
예제 #2
0
파일: GCancellable.go 프로젝트: gotk3/gio
func (v *Cancellable) toCancellable() *C.GCancellable {
	if v == nil {
		return nil
	}
	return C.toGCancellable(unsafe.Pointer(v.GObject))
}