func DumpFunctionInfo(info *C.GIFunctionInfo) { DumpCallableInfo(asCallableInfo(info)) flags := C.g_function_info_get_flags(info) if flags&C.GI_FUNCTION_IS_METHOD > 0 { p("is method\n") } if flags&C.GI_FUNCTION_IS_CONSTRUCTOR > 0 { p("is constructor\n") } if flags&C.GI_FUNCTION_IS_GETTER > 0 { p("is getter\n") property := C.g_function_info_get_property(info) DumpPropertyInfo(property) } if flags&C.GI_FUNCTION_IS_SETTER > 0 { p("is setter\n") property := C.g_function_info_get_property(info) DumpPropertyInfo(property) } if flags&C.GI_FUNCTION_WRAPS_VFUNC > 0 { p("wraps vfunc\n") _ = C.g_function_info_get_vfunc(info) } if flags&C.GI_FUNCTION_THROWS > 0 { p("throws error\n") } symbol := fromGStr(C.g_function_info_get_symbol(info)) p("symbol %s\n", symbol) }
// g_function_info_get_flags func (fi *FunctionInfo) Flags() FunctionInfoFlags { return FunctionInfoFlags(C.g_function_info_get_flags((*C.GIFunctionInfo)(fi.c))) }
func (info *GiInfo) GetFunctionFlags() *FunctionFlags { return NewFunctionFlags(C.g_function_info_get_flags((*C.GIFunctionInfo)(info.ptr))) }