Index

Package: Arguments

Description

package Gtk.Arguments is

This package is obsolete and replaced by Glib.Values.

Future versions of GtkAda will no longer provide this package.

This package provides a convenient interface to C, providing easy conversion from a C's (void*) pointer to any Ada type used in GtkAda. Although this package has been designed to be easily reusable by being as general as possible, these functions are mainly used when writing callbacks and/or marshallers (see Gtk.Marshallers and Gtk.Handlers).

Therefore, the main type in this package is Gtk_Args, which is the equivalent of the C's (GtkArg*) array, i.e an array of unions. This package provides functions to extract the values from this type.

Binding from C File version 2.8.17

Types

Gtk_Args

subtype Gtk_Args is Glib.Values.GValues;
This type represents a table of arguments. Each argument of the table can be of any type. You can access them through one of the To_* functions found below. The index of the first element is always 1.

Subprograms & Entries

Make_Args

function Make_Args 
(Nb: Guint;
Args: Glib.Values.C_GValues) return Gtk_Args renames Glib.Values.Make_Values;
Build a Gtk_Args structure from the given C array. Nb should be the number of elements in the Args array.

To_Gint

function To_Gint    
(Args: Gtk_Args;
Num: Positive) return Gint;

To_Guint

function To_Guint   
(Args: Gtk_Args;
Num: Positive) return Guint;

To_Boolean

function To_Boolean 
(Args: Gtk_Args;
Num: Positive) return Boolean;

To_Event

function To_Event   
(Args: Gtk_Args;
Num: Positive) return Gdk.Event.Gdk_Event;

To_String

function To_String  
(Args: Gtk_Args;
Num: Positive) return UTF8_String;

To_Notebook_Page

function To_Notebook_Page 
(Args: Gtk_Args;
Num: Positive) return Gtk_Notebook_Page;

To_Address

function To_Address 
(Args: Gtk_Args;
Num: Positive) return System.Address;

To_C_Proxy

function To_C_Proxy 
(Args: Gtk_Args;
Num: Positive) return Glib.C_Proxy;

To_Object

function To_Object 
(Args: Gtk_Args;
Num: Positive) return Glib.Object.GObject;
This function can return null, if the C object was not created.

To_Requisition

function To_Requisition 
(Args: Gtk_Args;
Num: Positive) return Gtk.Widget.Gtk_Requisition_Access;
This function can return null, if the C object was not created.

To_Allocation

function To_Allocation 
(Args: Gtk_Args;
Num: Positive) return Gtk.Widget.Gtk_Allocation_Access;

Unchecked_To_Boolean

function Unchecked_To_Boolean 
(Args: Glib.Values.C_GValues;
Num: Guint) return Boolean;

Unchecked_To_Address

function Unchecked_To_Address 
(Args: Glib.Values.C_GValues;
Num: Guint) return System.Address;

Unchecked_To_Object

function Unchecked_To_Object 
(Args: Glib.Values.C_GValues;
Num: Guint) return Glib.Object.GObject;

Unchecked_To_Interface

function Unchecked_To_Interface 
(Args: Glib.Values.C_GValues;
Num: Guint) return Glib.Types.GType_Interface;

Unchecked_To_Gint

function Unchecked_To_Gint 
(Args: Glib.Values.C_GValues;
Num: Guint) return Gint;

Unchecked_To_Gint_Access

function Unchecked_To_Gint_Access 
(Args: Glib.Values.C_GValues;
Num: Guint) return access Gint;

Unchecked_To_Gdouble

function Unchecked_To_Gdouble 
(Args: Glib.Values.C_GValues;
Num: Guint) return Gdouble;

Unchecked_To_Gdouble_Access

function Unchecked_To_Gdouble_Access 
(Args: Glib.Values.C_GValues;
Num: Guint) return access Gdouble;

Unchecked_To_Guint

function Unchecked_To_Guint 
(Args: Glib.Values.C_GValues;
Num: Guint) return Guint;

Unchecked_To_Context_Id

function Unchecked_To_Context_Id 
(Args: Glib.Values.C_GValues;
Num: Guint) return Gtk.Status_Bar.Context_Id;

Unchecked_To_UTF8_String

function Unchecked_To_UTF8_String 
(Args: Glib.Values.C_GValues;
Num: Guint) return UTF8_String;

Unchecked_To_Gdk_RGBA

function Unchecked_To_Gdk_RGBA 
(Args: Glib.Values.C_GValues;
Num: Guint) return Gdk.RGBA.Gdk_RGBA;

Unchecked_To_Gdk_Key_Type

function Unchecked_To_Gdk_Key_Type 
(Args: Glib.Values.C_GValues;
Num: Guint) return Gdk.Types.Gdk_Key_Type;

Unchecked_To_Gdk_Event_Button

function Unchecked_To_Gdk_Event_Button is new Glib.Values.Unsafe_Proxy_Nth 
(Gdk.Event.Gdk_Event_Button);

Unchecked_To_Gdk_Event_Owner_Change

function Unchecked_To_Gdk_Event_Owner_Change is new Glib.Values.Unsafe_Proxy_Nth 
(Gdk.Event.Gdk_Event_Owner_Change);

Unchecked_To_Gdk_Event_Scroll

function Unchecked_To_Gdk_Event_Scroll is new Glib.Values.Unsafe_Proxy_Nth 
(Gdk.Event.Gdk_Event_Scroll);

Unchecked_To_Gdk_Event

function Unchecked_To_Gdk_Event is new Glib.Values.Unsafe_Proxy_Nth 
(Gdk.Event.Gdk_Event);

Unchecked_To_Gdk_Event_Any

function Unchecked_To_Gdk_Event_Any is new Glib.Values.Unsafe_Proxy_Nth 
(Gdk.Event.Gdk_Event_Any);

Unchecked_To_Gdk_Event_Configure

function Unchecked_To_Gdk_Event_Configure is new Glib.Values.Unsafe_Proxy_Nth 
(Gdk.Event.Gdk_Event_Configure);

Unchecked_To_Gdk_Event_Crossing

function Unchecked_To_Gdk_Event_Crossing is new Glib.Values.Unsafe_Proxy_Nth 
(Gdk.Event.Gdk_Event_Crossing);

Unchecked_To_Gdk_Event_Expose

function Unchecked_To_Gdk_Event_Expose is new Glib.Values.Unsafe_Proxy_Nth 
(Gdk.Event.Gdk_Event_Expose);

Unchecked_To_Gdk_Event_Focus

function Unchecked_To_Gdk_Event_Focus is new Glib.Values.Unsafe_Proxy_Nth 
(Gdk.Event.Gdk_Event_Focus);

Unchecked_To_Gdk_Event_Grab_Broken

function Unchecked_To_Gdk_Event_Grab_Broken is new Glib.Values.Unsafe_Proxy_Nth 
(Gdk.Event.Gdk_Event_Grab_Broken);

Unchecked_To_Gdk_Event_Key

function Unchecked_To_Gdk_Event_Key is new Glib.Values.Unsafe_Proxy_Nth 
(Gdk.Event.Gdk_Event_Key);

Unchecked_To_Gdk_Event_Motion

function Unchecked_To_Gdk_Event_Motion is new Glib.Values.Unsafe_Proxy_Nth 
(Gdk.Event.Gdk_Event_Motion);

Unchecked_To_Gdk_Event_Property

function Unchecked_To_Gdk_Event_Property is new Glib.Values.Unsafe_Proxy_Nth 
(Gdk.Event.Gdk_Event_Property);

Unchecked_To_Gdk_Event_Proximity

function Unchecked_To_Gdk_Event_Proximity is new Glib.Values.Unsafe_Proxy_Nth 
(Gdk.Event.Gdk_Event_Proximity);

Unchecked_To_Gdk_Event_Selection

function Unchecked_To_Gdk_Event_Selection is new Glib.Values.Unsafe_Proxy_Nth 
(Gdk.Event.Gdk_Event_Selection);

Unchecked_To_Gdk_Event_Visibility

function Unchecked_To_Gdk_Event_Visibility is new Glib.Values.Unsafe_Proxy_Nth 
(Gdk.Event.Gdk_Event_Visibility);

Unchecked_To_Gdk_Event_Window_State

function Unchecked_To_Gdk_Event_Window_State is new Glib.Values.Unsafe_Proxy_Nth 
(Gdk.Event.Gdk_Event_Window_State);

Unchecked_To_Gtk_Movement_Step

function Unchecked_To_Gtk_Movement_Step is new Glib.Values.Unsafe_Enum_Nth 
(Gtk.Enums.Gtk_Movement_Step);

Unchecked_To_Gtk_Drag_Result

function Unchecked_To_Gtk_Drag_Result is new Glib.Values.Unsafe_Enum_Nth 
(Gtk.Enums.Gtk_Drag_Result);

Unchecked_To_Gtk_State_Flags

function Unchecked_To_Gtk_State_Flags is new Glib.Values.Unsafe_Enum_Nth 
(Gtk.Enums.Gtk_State_Flags);

Unchecked_To_Gtk_State_Type

function Unchecked_To_Gtk_State_Type is new Glib.Values.Unsafe_Enum_Nth 
(Gtk.Enums.Gtk_State_Type);

Unchecked_To_Gtk_Scroll_Type

function Unchecked_To_Gtk_Scroll_Type is new Glib.Values.Unsafe_Enum_Nth 
(Gtk.Enums.Gtk_Scroll_Type);

Unchecked_To_Gtk_Text_Direction

function Unchecked_To_Gtk_Text_Direction is new Glib.Values.Unsafe_Enum_Nth 
(Gtk.Enums.Gtk_Text_Direction);

Unchecked_To_Gtk_Direction_Type

function Unchecked_To_Gtk_Direction_Type is new Glib.Values.Unsafe_Enum_Nth 
(Gtk.Enums.Gtk_Direction_Type);

Unchecked_To_Gtk_Widget_Help_Type

function Unchecked_To_Gtk_Widget_Help_Type is new Glib.Values.Unsafe_Enum_Nth 
(Gtk.Widget.Gtk_Widget_Help_Type);

Unchecked_To_Gtk_Delete_Type

function Unchecked_To_Gtk_Delete_Type is new Glib.Values.Unsafe_Enum_Nth 
(Gtk.Enums.Gtk_Delete_Type);

Unchecked_To_Gtk_Menu_Direction_Type

function Unchecked_To_Gtk_Menu_Direction_Type is new Glib.Values.Unsafe_Enum_Nth 
(Gtk.Enums.Gtk_Menu_Direction_Type);

Unchecked_To_Gtk_Orientation

function Unchecked_To_Gtk_Orientation is new Glib.Values.Unsafe_Enum_Nth 
(Gtk.Enums.Gtk_Orientation);

Unchecked_To_Gtk_Notebook_Tab

function Unchecked_To_Gtk_Notebook_Tab is new Glib.Values.Unsafe_Enum_Nth 
(Gtk.Notebook.Gtk_Notebook_Tab);

Unchecked_To_Gtk_Toolbar_Style

function Unchecked_To_Gtk_Toolbar_Style is new Glib.Values.Unsafe_Enum_Nth 
(Gtk.Enums.Gtk_Toolbar_Style);

Unchecked_To_Gtk_Scroll_Step

function Unchecked_To_Gtk_Scroll_Step is new Glib.Values.Unsafe_Enum_Nth 
(Gtk.Enums.Gtk_Scroll_Step);

Unchecked_To_Gtk_Response_Type

function Unchecked_To_Gtk_Response_Type is new Glib.Values.Unsafe_Enum_Nth 
(Gtk.Dialog.Gtk_Response_Type);

Unchecked_To_Gtk_Print_Operation_Result

function Unchecked_To_Gtk_Print_Operation_Result is new Glib.Values.Unsafe_Enum_Nth 
(Gtk.Print_Operation.Gtk_Print_Operation_Result);

Unchecked_To_Gdk_Modifier_Type

function Unchecked_To_Gdk_Modifier_Type is new Glib.Values.Unsafe_Enum_Nth 
(Gdk.Types.Gdk_Modifier_Type);

Unchecked_To_Gtk_Entry_Icon_Position

function Unchecked_To_Gtk_Entry_Icon_Position is new Glib.Values.Unsafe_Enum_Nth 
(Gtk.GEntry.Gtk_Entry_Icon_Position);

Unchecked_To_Gtk_Text_Iter

function Unchecked_To_Gtk_Text_Iter is new Glib.Values.Unsafe_Proxy_Nth 
(Gtk.Text_Iter.Gtk_Text_Iter);

Unchecked_To_Gtk_Tree_Iter

function Unchecked_To_Gtk_Tree_Iter is new Glib.Values.Unsafe_Proxy_Nth 
(Gtk.Tree_Model.Gtk_Tree_Iter);

Unchecked_To_Gtk_Tree_Model

function Unchecked_To_Gtk_Tree_Model is new Glib.Values.Unsafe_Proxy_Nth 
(Gtk.Tree_Model.Gtk_Tree_Model);

Unchecked_To_Param_Spec

function Unchecked_To_Param_Spec is new Glib.Values.Unsafe_Proxy_Nth 
(Glib.Param_Spec);

Unchecked_To_Cairo_Context

function Unchecked_To_Cairo_Context 
(Args: Glib.Values.C_GValues;
Num: Guint) return Cairo.Cairo_Context;

Unchecked_To_Cairo_Rectangle_Int_Access

function Unchecked_To_Cairo_Rectangle_Int_Access 
(Args: Glib.Values.C_GValues;
Num: Guint) return access Cairo.Region.Cairo_Rectangle_Int;

Unchecked_To_Cairo_Rectangle_Int

function Unchecked_To_Cairo_Rectangle_Int 
(Args: Glib.Values.C_GValues;
Num: Guint) return Cairo.Region.Cairo_Rectangle_Int;