HookList

class HookList(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null) : ProxyInstance

The #GHookList struct represents a list of hook functions.

Skipped during bindings generation

  • field finalize_hook: HookFinalizeFunc

  • field dummy: Array parameter of type gpointer is not supported

Constructors

Link copied to clipboard
constructor()

Allocate a new HookList.

constructor(scope: <Error class: unknown class>)

Allocate a new HookList using the provided AutofreeScope.

constructor(seqId: <Error class: unknown class>, hookSize: <Error class: unknown class>, isSetup: <Error class: unknown class>, hooks: Hook?, dummy3: <Error class: unknown class>)

Allocate a new HookList.

constructor(seqId: <Error class: unknown class>, hookSize: <Error class: unknown class>, isSetup: <Error class: unknown class>, hooks: Hook?, dummy3: <Error class: unknown class>, scope: <Error class: unknown class>)

Allocate a new HookList using the provided AutofreeScope.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

Properties

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

unused

Link copied to clipboard
val glibHookListPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val handle: <Error class: unknown class>?
Link copied to clipboard
var 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
open operator override fun equals(other: Any?): Boolean

Compare two proxy instances for equality. This will compare both the type of the instances, and their memory addresses.

Link copied to clipboard
open override fun hashCode(): Int
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.

Link copied to clipboard
fun marshal(mayRecurse: Boolean, marshaller: HookMarshaller)

Calls a function on each valid #GHook.

Link copied to clipboard
fun marshalCheck(mayRecurse: Boolean, marshaller: HookCheckMarshaller)

Calls a function on each valid #GHook and destroys it if the function returns false.

Link copied to clipboard
open override fun toString(): String