type G_Main_Context is new Glib.C_Proxy;
type G_Source is new Glib.C_Proxy;
type G_Source_Id is new Guint;
type G_Source_Func_User_Data is access function (User_Data : System.Address) return Gboolean;
type Source_Dispatch_Func is access function (Source : G_Source; Callback : G_Source_Func_User_Data; Data : System.Address) return Gboolean;
type Source_Finalize_Func is access procedure (Source : G_Source);
type G_Priority is new Gint;
No_Source_Id : constant G_Source_Id;
Null_Source_Type : constant G_Source_Type;
Priority_High : constant G_Priority := -100;
Priority_Default : constant G_Priority := 0;
Priority_High_Idle : constant G_Priority := 100;
Priority_Default_Idle : constant G_Priority := 200;
Priority_Low : constant G_Priority := 300;
procedure Main_Context_Ref
( | Context | : G_Main_Context); |
procedure Main_Context_Unref
( | Context | : G_Main_Context); |
function Main_Context_Default return G_Main_Context;
procedure Wakeup
( | Context | : G_Main_Context); |
function Acquire
( | Context | : G_Main_Context) return Boolean; |
procedure Release
( | Context | : G_Main_Context); |
function Is_Owner
( | Context | : G_Main_Context) return Boolean; |
function Depth return Integer;
function Default_Dispatch
( | Source | : G_Source; |
Cb | : G_Source_Func_User_Data; | |
Data | : System.Address) return Gboolean; |
function G_Source_Type_New
( | Prepare | : Source_Prepare_Func; |
Check | : Source_Check_Func; | |
Dispatch | : Source_Dispatch_Func := Default_Dispatch'Access; | |
Finalize | : Source_Finalize_Func := null) return G_Source_Type; |
function Source_New
( | Source_Type | : G_Source_Type; |
User_Data | : System.Address) return G_Source; |
function Get_User_Data
( | Source | : G_Source) return System.Address; |
procedure Source_Ref
( | Source | : G_Source); |
procedure Source_Unref
( | Source | : G_Source); |
procedure Source_Destroy
( | Source | : G_Source); |
function Attach
( | Source | : G_Source; |
Context | : G_Main_Context := null) return G_Source_Id; |
function Remove
( | Id | : G_Source_Id) return Boolean; |
procedure Remove
( | Id | : G_Source_Id); |
procedure Set_Priority
( | Source | : G_Source; |
Priority | : G_Priority); |
function Get_Priority
( | Source | : G_Source) return G_Priority; |
procedure Set_Can_Recurse
( | Source | : G_Source; |
Can_Recurse | : Boolean); |
function Get_Can_Recurse
( | Source | : G_Source) return Boolean; |
function Get_Id
( | Source | : G_Source) return G_Source_Id; |
function Find_Source_By_Id
( | Id | : G_Source_Id; |
Context | : G_Main_Context := null) return G_Source; |
function Get_Context
( | Source | : G_Source) return G_Main_Context; |
function Idle_Source_New return G_Source;
function Idle_Add
( | Func | : G_Source_Func) return G_Source_Id; |
function Timeout_Add
( | Interval | : Guint; |
Func | : G_Source_Func) return G_Source_Id; |
Binding from C File version glib 2.10.2
<testgtk>create_sources.adb</testgtk>