示例#1
0
文件: GAction.go 项目: gotk3/gio
// native returns a pointer to the underlying GAction.
func (v *Action) native() *C.GAction {
	if v == nil || v.GObject == nil {
		return nil
	}
	p := unsafe.Pointer(v.GObject)
	return C.toGAction(p)
}
示例#2
0
文件: GAction.go 项目: gotk3/gio
func (v *Action) toAction() *C.GAction {
	if v == nil {
		return nil
	}
	return C.toGAction(unsafe.Pointer(v.GObject))
}