Companion

object Companion : RecordCompanion<Hook, <Error class: unknown class>>

Functions

Link copied to clipboard
fun destroy(hookList: HookList, hookId: <Error class: unknown class>): Boolean

Destroys a #GHook, given its ID.

Link copied to clipboard
fun destroyLink(hookList: HookList, hook: Hook)

Removes one #GHook from a #GHookList, marking it inactive and calling g_hook_unref() on it.

Link copied to clipboard
fun free(hookList: HookList, hook: Hook)

Calls the #GHookList @finalize_hook function if it exists, and frees the memory allocated for the #GHook.

Link copied to clipboard
fun insertBefore(hookList: HookList, sibling: Hook? = null, hook: Hook)

Inserts a #GHook into a #GHookList, before a given #GHook.

Link copied to clipboard
fun prepend(hookList: HookList, hook: Hook)

Prepends a #GHook on the start of a #GHookList.

Link copied to clipboard
fun unref(hookList: HookList, hook: Hook)

Decrements the reference count of a #GHook. If the reference count falls to 0, the #GHook is removed from the #GHookList and g_hook_free() is called to free it.

Link copied to clipboard
open override fun wrapRecordPointer(pointer: <Error class: unknown class><out <Error class: unknown class>>): Hook

Wrap a CPointer pointing to a record of this type into its wrapper class.