gobject.zc

来自「实现树形结构」· ZC 代码 · 共 49 行

ZC
49
字号
import "glib/glib/gtypes"import "glib/glib/gslist"import "glib/gobject/gtype"import "glib/gobject/gparam"public [name="c"]struct GData; endstruct GObject : local GTypeInstance	private ref_count: guint	private qdata: GDataendstruct GObjectClass : local GTypeClass	private construct_properties: GSList	public constructor: {GType, guint, GObjectConstructParam} GObject	public set_property: {GObject, guint, GValue, GParamSpec} void	public get_property: {GObject, guint, GValue, GParamSpec} void	public dispose: {GObject} void	public finalize: {GObject} void	public dispatch_properties_changed: {GObject, guint, GParamSpec} void	public notify: {GObject, GParamSpec} void	private pdummy: [8] gpointerendstruct GObjectConstructParam	pspec: GParamSpec	value: GValueendtypedef GObjectGetPropertyFunc = {GObject, guint, GValue, GParamSpec} voidtypedef GObjectSetPropertyFunc = {GObject, guint, GValue, GParamSpec} voidtypedef GObjectFinalizeFunc = {GObject} voidtypedef GWeakNotify = {gpointer, GObject} void//import func g_object_new (GType,[]gchar, ...): gpointerimport func g_object_ref (gpointer): gpointerimport func g_object_unref (gpointer): voidimport func g_value_set_object                (GValue,gpointer): voidimport func g_value_get_object                (GValue): gpointer// Stub function because vararg not portableimport func g_object_new_0 (GType): gpointerend

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?