コード例 #1
0
ファイル: type.go プロジェクト: seokheonbae/glib
// If t type is a derivable type, check whether type is a descendant of
// it type. If t type is an glib interface, check whether type conforms
// to it.
func (t Type) IsA(it Type) bool {
	return C.g_type_is_a(t.g(), it.g()) != 0
}
コード例 #2
0
ファイル: glib.go プロジェクト: vvanpo/gotk3
// IsA is a wrapper around g_type_is_a().
func (v *Object) IsA(typ Type) bool {
	return gobool(C.g_type_is_a(C.GType(v.TypeFromInstance()), C.GType(typ)))
}
コード例 #3
0
ファイル: gobj.go プロジェクト: hwch/go-gtk
func (this Type) IsA(other Type) bool {
	return C.g_type_is_a(C.GType(this), C.GType(other)) != 0
}