方法

GIRepositoryRegisteredTypeInfois_boxed

since: 2.80

声明 [src]

gboolean
gi_registered_type_info_is_boxed (
  GIRegisteredTypeInfo* info
)

描述 [src]

获取注册类型是否为boxed类型。

boxed类型是基本类型G_TYPE_BOXED的一种子类型。它是注册了GType并且与复制和释放函数相关联的类型。

大部分boxed类型是struct类型;一些是union类型;也有可能boxed类型既不是struct也不是union,但目前libgirepository不支持这种情况。也可能有structunion没有注册GType,但由于这个原因不是boxed类型。

这个函数对于不是boxed类型的GType,例如类或接口,将返回false。它还将对于与类或接口关联的struct,如果从gi_struct_info_is_gtype_struct()返回true,也返回false。

since: 2.80

返回值

类型: gboolean

如果info是boxed类型为true。