Package ch.bailu.gtk.gobject
Interface Gobject.OnTypeClassCacheFunc
- Enclosing class:
- Gobject
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onTypeClassCacheFunc
(CallbackHandler __self, Pointer cache_data, TypeClass g_class) A callback function which is called when the reference count of a class
drops to zero.
-
Method Details
-
onTypeClassCacheFunc
boolean onTypeClassCacheFunc(CallbackHandler __self, @Nullable Pointer cache_data, @Nonnull TypeClass g_class) A callback function which is called when the reference count of a class
drops to zero.
It may use g_type_class_ref() to prevent the class from being freed. You
should not call g_type_class_unref() from a #GTypeClassCacheFunc function
to prevent infinite recursion, use g_type_class_unref_uncached() instead.
The functions have to check the class id passed in to figure
whether they actually want to cache the class of this type, since all
classes are routed through the same #GTypeClassCacheFunc chain.- Parameters:
cache_data
- data that was given to the g_type_add_class_cache_func() callg_class
- The #GTypeClass structure which is unreferenced- Returns:
- %TRUE to stop further #GTypeClassCacheFuncs from being called, %FALSE to continue
-