Glib.Type_Conversion_Hooks

Entities

Access Types

Subprograms

Description

<doc_ignore>

Conversion_Creator_Hook_Type

type Conversion_Creator_Hook_Type is
  access function (Expected_Object : GObject_Record'Class) return GObject;
Parameters
Expected_Object
Return Value

Conversion_Function

function Conversion_Function
  (Obj : System.Address; Stub : GObject_Record'Class) return GObject

This function has to convert a C object to an Ada object. It will first try all the registered functions (in Glib.Type_Conversion_Hooks). If no match is found, then it will try recursively all parents of the C object. If no match is found at all, it will create an object of type Expected_Type, no matter what the real C type is.

Parameters
Obj
Stub
Return Value

Get_GType_Func

type Get_GType_Func is access function return Glib.GType;

Type used during the type conversion process

Return Value