函数

GObjectsignal_type_cclosure_new

声明 [src]

GClosure*
g_signal_type_cclosure_new (
  GType itype,
  guint struct_offset
)

说明 [src]

创建一个新闭包,该闭包调用在接口或由 itype 标识的类类型结构中的偏移 struct_offset 处发现的函数。

参数

itype

类型: GType

接口或类类型的 GType 标识符。

struct_offset

类型: guint

要由新闭包调用的 itype 类结构的成员函数的偏移量。

返回值

类型: GClosure

对新 GCClosure 的浮动引用。

数据由被调用的函数所有。