A Gtk.Target_List.Gtk_Target_List-struct is a reference counted list of Gtk_Target_Pair and should be treated as opaque.
Accel_Locked : constant Gtk_Accel_Flags := 2;
Accel_Mask : constant Gtk_Accel_Flags := 7;
Accel_Visible : constant Gtk_Accel_Flags := 1;
procedure Add
(List : Gtk_Target_List;
Target : Gdk.Types.Gdk_Atom;
Flags : Guint;
Info : Guint)
Appends another target to a Gtk.Target_List.Gtk_Target_List.
the interned atom representing the target
the flags for this target
an ID that will be passed back to the application
procedure Add_Image_Targets
(List : Gtk_Target_List;
Info : Guint;
Writable : Boolean)
Appends the image targets supported by Gtk.Selection_Data.Gtk_Selection_Data to the target list. All targets are added with the same Info. Since: gtk+ 2.6
an ID that will be passed back to the application
whether to add only targets for which GTK+ knows how to convert a pixbuf into the format
procedure Add_Table
(List : Gtk_Target_List;
Targets : Target_Entry_Array)
Prepends a table of Gtk.Target_Entry.Gtk_Target_Entry to a target list.
procedure Add_Text_Targets (List : Gtk_Target_List; Info : Guint)
Appends the text targets supported by Gtk.Selection_Data.Gtk_Selection_Data to the target list. All targets are added with the same Info. Since: gtk+ 2.6
an ID that will be passed back to the application
procedure Add_Uri_Targets (List : Gtk_Target_List; Info : Guint)
Appends the URI targets supported by Gtk.Selection_Data.Gtk_Selection_Data to the target list. All targets are added with the same Info. Since: gtk+ 2.6
an ID that will be passed back to the application
Any_Target_Entry : constant Target_Entry_Array := No_Target_Entry;
Old name for this constant, which leads to confusion. You should use No_Target_Entry instead.
procedure Find
(List : Gtk_Target_List;
Target : Gdk.Types.Gdk_Atom;
Info : out Guint;
Found : out Boolean)
Looks up a given target in a Gtk.Target_List.Gtk_Target_List.
an interned atom representing the target to search for
a pointer to the location to store application info for target, or null @return True if the target was found, otherwise False
function From_Object (Object : System.Address) return Gtk_Target_List
function From_Object_Free (B : access Gtk_Target_List'Class) return Gtk_Target_List
function Get_Type return Glib.GType
type Gtk_Accel_Flags is mod 2 ** Integer'Size;
Accelerator flags used with Gtk.Accel_Group.Connect.
package Gtk_Accel_Flags_Properties is
new Generic_Internal_Discrete_Property (Gtk_Accel_Flags);
procedure Gtk_New
(List : out Gtk_Target_List;
Targets : Target_Entry_Array)
Creates a new Gtk.Target_List.Gtk_Target_List from an array of Gtk.Target_Entry.Gtk_Target_Entry.
type Gtk_Target_List is new Glib.C_Boxed with null record;
No_Target_Entry : Target_Entry_Array (1 .. 0);
To be used for drop sites that accept no data. You will in general need to call Gtk.Dnd.Add_Text_Targets or some such
Null_Gtk_Target_List : constant Gtk_Target_List;
type Property_Gtk_Accel_Flags is new Gtk_Accel_Flags_Properties.Property;
function Ref (List : Gtk_Target_List) return Gtk_Target_List
Increases the reference count of a Gtk.Target_List.Gtk_Target_List by one.
the passed in Gtk.Target_List.Gtk_Target_List.
procedure Remove (List : Gtk_Target_List; Target : Gdk.Types.Gdk_Atom)
Removes a target from a target list.
the interned atom representing the target
type Target_Entry_Array is array (Natural range <>) of Gtk_Target_Entry;
procedure Unref (List : Gtk_Target_List)
Decreases the reference count of a Gtk.Target_List.Gtk_Target_List by one. If the resulting reference count is zero, frees the list.