## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Bindings

- Goto spec source

# Description

    package Gtkada.Bindings is

with Gdk.Color; with Gdk.Types;

# Packages

### ICS (renames Strings)

    package ICS renames Interfaces.C.Strings;

### Gint_Arrays (new Gtkada.C.Unbounded_Arrays)

    package Gint_Arrays is new Gtkada.C.Unbounded_Arrays
         (Glib.Gint, 0, Natural, Glib.Gint_Array);

package Points_Arrays is new Gtkada.C.Unbounded_Arrays (Gdk.Types.Gdk_Point, (0, 0), Positive, Gdk.Types.Gdk_Points_Array); package Atom_Arrays is new Gtkada.C.Unbounded_Arrays (Gdk.Types.Gdk_Atom, Gdk.Types.Gdk_None, Natural, Gdk.Types.Gdk_Atom_Array);

### Pspec_Arrays (new Gtkada.C.Unbounded_Arrays)

    package Pspec_Arrays is new Gtkada.C.Unbounded_Arrays
         (Glib.Param_Spec, null, Natural, Glib.Param_Spec_Array);

package Points_Arrays is new Gtkada.C.Unbounded_Arrays (Gdk.Types.Gdk_Point, (0, 0), Positive, Gdk.Types.Gdk_Points_Array); package Atom_Arrays is new Gtkada.C.Unbounded_Arrays (Gdk.Types.Gdk_Atom, Gdk.Types.Gdk_None, Natural, Gdk.Types.Gdk_Atom_Array);

### GType_Arrays (new Gtkada.C.Unbounded_Arrays)

    package GType_Arrays is new Gtkada.C.Unbounded_Arrays
         (Glib.GType, Glib.GType_None, Glib.Guint, Glib.GType_Array);

package Signal_Id_Arrays is new Gtkada.C.Unbounded_Arrays (Glib.Signal_Id, Glib.Null_Signal_Id, Glib.Guint, Glib.Object.Signal_Id_Array);

# Types

### chars_ptr_array_access

- Goto declaration in source

    type chars_ptr_array_access
         is access ICS.chars_ptr_array (Interfaces.C.size_t);

# Subprograms & Entries

### String_Or_Null

- Goto spec in source

    function String_Or_Null (S: String) return ICS.chars_ptr;

Return Null_Ptr if S is the empty string, or a newly allocated string otherwise. This is intended mostly for the binding itself.

### g_strfreev

- Goto spec in source
- Goto body in source

    procedure g_strfreev (Str_Array: in out chars_ptr_array_access);

Thin binding to C function of the same name. Frees a null-terminated array of strings, and the array itself. If called on a null value, simply return.

### To_String_List

- Goto spec in source

    function To_String_List (C: ICS.chars_ptr_array) return GNAT.Strings.String_List;

Converts C into a String_List. Returned value must be freed by caller, as well as C. C is NULL terminated.

### To_String_List

- Goto spec in source

    function To_String_List (C: ICS.chars_ptr_array;N: Glib.Gint) return GNAT.Strings.String_List;

Converts C into a String_List. N is the number of elements in C. Returned value must be freed by caller, as well as C.

### From_String_List

- Goto spec in source

    function From_String_List (C: GNAT.Strings.String_List) return ICS.chars_ptr_array;

Converts C into a chars_ptr_array. Returned value must be freed by caller, as well as C.

### To_Chars_Ptr

- Goto spec in source

    function To_Chars_Ptr (C: chars_ptr_array_access) return ICS.chars_ptr_array;

Return a bounded array that contains the same strings as C (so you shouldn't free C). 'Last applies to the result, whereas it doesn't to C.

### To_Gint_Array_Zero_Terminated

- Goto spec in source

    function To_Gint_Array_Zero_Terminated (Arr: Gint_Arrays.Unbounded_Array_Access) return Glib.Gint_Array;

type Unbounded_Gint_Array is array (Natural) of Glib.Gint; pragma Convention (C, Unbounded_Gint_Array); type Unbounded_Gint_Array_Access is access Unbounded_Gint_Array; procedure G_Free (Arr : in out Unbounded_Gint_Array_Access); function To_Gint_Array (Arr : Unbounded_Gint_Array_Access; N : Glib.Gint) return Glib.Gint_Array;