HookList

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

The #GHookList struct represents a list of hook functions.

Skipped during bindings generation

  • field dummy3: gpointer

  • field finalize_hook: HookFinalizeFunc

  • field dummy: Fields with arrays are not supported

Constructors

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

Types

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

Properties

Link copied to clipboard
val glibHookListPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val hooks: Hook?

the first #GHook element in the list

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

the size of the #GHookList elements, in bytes

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

1 if the #GHookList has been initialized

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

the next free #GHook id

Functions

Link copied to clipboard
fun clear()

Removes all the #GHook elements from a #GHookList.

Link copied to clipboard
fun init(hookSize: <Error class: unknown class>)

Initializes a #GHookList. This must be called before the #GHookList is used.

Link copied to clipboard
fun invoke(mayRecurse: Boolean)

Calls all of the #GHook functions in a #GHookList.

Link copied to clipboard
fun invokeCheck(mayRecurse: Boolean)

Calls all of the #GHook functions in a #GHookList. Any function which returns false is removed from the #GHookList.