Lines Matching defs:ObjectClass
28 typedef struct ObjectClass ObjectClass;
87 * Every type has an #ObjectClass associated with it. #ObjectClass derivatives
89 * given type. The #ObjectClass typically holds a table of function pointers
135 * void my_device_class_init(ObjectClass *klass, void *class_data)
198 * Methods cannot be overloaded. That is, the #ObjectClass and method name
223 * ObjectClass parent_class;
233 * static void my_class_init(ObjectClass *oc, void *data)
263 * static void derived_class_init(ObjectClass *oc, void *data)
350 * ObjectClass:
352 * The base for all classes. The only thing that #ObjectClass contains is an
355 struct ObjectClass
370 * a #ObjectClass. Since C guarantees that the first member of a structure
384 ObjectClass *class;
409 * @class_size: The size of the class object (derivative of #ObjectClass)
444 void (*class_init)(ObjectClass *klass, void *data);
445 void (*class_base_init)(ObjectClass *klass, void *data);
446 void (*class_finalize)(ObjectClass *klass, void *data);
464 * @class: A derivative of #ObjectClass.
466 * Converts a class to an #ObjectClass. Since all objects are #Objects,
470 ((ObjectClass *)(class))
535 ObjectClass parent_class;
537 ObjectClass *concrete_class;
638 * Returns: The #ObjectClass of the type associated with @obj.
640 ObjectClass *object_get_class(Object *obj);
674 * @klass: The #ObjectClass to attempt to cast.
683 ObjectClass *object_class_dynamic_cast_assert(ObjectClass *klass,
690 * @klass: The #ObjectClass to attempt to cast.
702 ObjectClass *object_class_dynamic_cast(ObjectClass *klass,
711 ObjectClass *object_class_get_parent(ObjectClass *klass);
719 const char *object_class_get_name(ObjectClass *klass);
727 bool object_class_is_abstract(ObjectClass *klass);
735 ObjectClass *object_class_by_name(const char *typename);
737 void object_class_foreach(void (*fn)(ObjectClass *klass, void *opaque),