mirror of
https://github.com/ToshioCP/Gtk4-tutorial.git
synced 2025-01-12 20:03:28 +01:00
38 lines
1.5 KiB
C
38 lines
1.5 KiB
C
typedef struct _GObjectClass GObjectClass;
|
|
typedef struct _GObjectClass GInitiallyUnownedClass;
|
|
|
|
struct _GObjectClass {
|
|
GTypeClass g_type_class;
|
|
/*< private >*/
|
|
GSList *construct_properties;
|
|
/*< public >*/
|
|
/* seldom overidden */
|
|
GObject* (*constructor) (GType type,
|
|
guint n_construct_properties,
|
|
GObjectConstructParam *construct_properties);
|
|
/* overridable methods */
|
|
void (*set_property) (GObject *object,
|
|
guint property_id,
|
|
const GValue *value,
|
|
GParamSpec *pspec);
|
|
void (*get_property) (GObject *object,
|
|
guint property_id,
|
|
GValue *value,
|
|
GParamSpec *pspec);
|
|
void (*dispose) (GObject *object);
|
|
void (*finalize) (GObject *object);
|
|
/* seldom overidden */
|
|
void (*dispatch_properties_changed) (GObject *object,
|
|
guint n_pspecs,
|
|
GParamSpec **pspecs);
|
|
/* signals */
|
|
void (*notify) (GObject *object,
|
|
GParamSpec *pspec);
|
|
|
|
/* called when done constructing */
|
|
void (*constructed) (GObject *object);
|
|
/*< private >*/
|
|
gsize flags;
|
|
/* padding */
|
|
gpointer pdummy[6];
|
|
};
|