Hook

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

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

Skipped during bindings generation

  • parameter func: HookCompareFunc

  • field destroy: DestroyNotify

Constructors

Link copied to clipboard
constructor()

Allocate a new Hook.

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

Allocate a new Hook using the provided AutofreeScope.

constructor(data: <Error class: unknown class>, next: Hook?, prev: Hook?, refCount: <Error class: unknown class>, hookId: <Error class: unknown class>, flags: <Error class: unknown class>, func: <Error class: unknown class>)

Allocate a new Hook.

constructor(data: <Error class: unknown class>, next: Hook?, prev: Hook?, refCount: <Error class: unknown class>, hookId: <Error class: unknown class>, flags: <Error class: unknown class>, func: <Error class: unknown class>, scope: <Error class: unknown class>)

Allocate a new Hook using the provided AutofreeScope.

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

Types

Link copied to clipboard
object Companion

Properties

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

data which is passed to func when this hook is invoked

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
var func: <Error class: unknown class>

the function to call when this hook is invoked. The possible signatures for this function are #GHookFunc and #GHookCheckFunc

Link copied to clipboard
val glibHookPointer: <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 hookId: <Error class: unknown class>

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

Link copied to clipboard
var next: Hook?

pointer to the next hook in the list

Link copied to clipboard
var 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): <Error class: unknown class>

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

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
open override fun toString(): String