Hook

class Hook(pointer: <Error class: unknown class><<Error class: unknown class>>) : Record

The #GHook struct represents a single hook function in a #GHookList.

Skipped during bindings generation

  • parameter func: HookCompareFunc

  • field data: gpointer

  • field func: gpointer

  • field destroy: DestroyNotify

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion : RecordCompanion<Hook, <Error class: unknown class>>

Properties

Link copied to clipboard
var flags: <Error class: unknown class>

flags which are set for this hook. See #GHookFlagMask for predefined flags

Link copied to clipboard
val glibHookPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
var hookId: <Error class: unknown class>

the id of this hook, which is unique within its list

Link copied to clipboard
val next: Hook?

pointer to the next hook in the list

Link copied to clipboard
val prev: Hook?

pointer to the previous hook in the list

Link copied to clipboard
var refCount: <Error class: unknown class>

the reference count of this hook

Functions

Link copied to clipboard
fun compareIds(sibling: Hook): Int

Compares the ids of two #GHook elements, returning a negative value if the second id is greater than the first.