Index

Package: Target_List

Description

package Gtk.Target_List is
A Gtk.Target_List.Gtk_Target_List structure is a reference counted list of Gtk_Target_Pair. It is used to represent the same information as a table of Gtk.Target_Entry.Gtk_Target_Entry, but in an efficient form. This structure should be treated as opaque.

Packages

Gtk_Accel_Flags_Properties (new Glib.Generic_Properties.Generic_Internal_Discrete_Property)

package Gtk_Accel_Flags_Properties is
      new Generic_Internal_Discrete_Property (Gtk_Accel_Flags);

Classes

Gtk_Target_List

type Gtk_Target_List is new Glib.C_Boxed with null record;

Ancestors:

Primitive operations:

Add_Image_Targets
Add_Text_Targets
Add_Uri_Targets
From_Object_Free

Types

Gtk_Accel_Flags

type Gtk_Accel_Flags is mod 2 ** Integer'Size;

Property_Gtk_Accel_Flags

type Property_Gtk_Accel_Flags is new Gtk_Accel_Flags_Properties.Property;

Target_Entry_Array

type Target_Entry_Array is array (Natural range <>) of Gtk_Target_Entry;

Constants & Global variables

Null_Gtk_Target_List (Gtk_Target_List)

Null_Gtk_Target_List : constant Gtk_Target_List;

Accel_Visible (Gtk_Accel_Flags)

Accel_Visible : constant Gtk_Accel_Flags := 1;

Accel_Locked (Gtk_Accel_Flags)

Accel_Locked : constant Gtk_Accel_Flags := 2;

Accel_Mask (Gtk_Accel_Flags)

Accel_Mask : constant Gtk_Accel_Flags := 7;

Any_Target_Entry (Target_Entry_Array)

Any_Target_Entry : Target_Entry_Array (1 .. 0);
To be used for drop sites that accept any kind of data.

Subprograms & Entries

From_Object

function From_Object 
(Object: System.Address) return Gtk_Target_List;

From_Object_Free

function From_Object_Free 
(B: access Gtk_Target_List'Class) return Gtk_Target_List;

Get_Type

function Get_Type return Glib.GType;

Add

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. "target": the interned atom representing the target "flags": the flags for this target "info": an ID that will be passed back to the application

Add_Image_Targets

procedure Add_Image_Targets 
(List: Gtk_Target_List;
Info: Guint;
Writable: Boolean);
Appends the image targets supported by Gtk_Selection to the target list. All targets are added with the same Info. Since: gtk+ 2.6 "info": an ID that will be passed back to the application "writable": whether to add only targets for which GTK+ knows how to convert a pixbuf into the format

Add_Text_Targets

procedure Add_Text_Targets 
(List: Gtk_Target_List;
Info: Guint);
Appends the text targets supported by Gtk_Selection to the target list. All targets are added with the same Info. Since: gtk+ 2.6 "info": an ID that will be passed back to the application

Add_Uri_Targets

procedure Add_Uri_Targets 
(List: Gtk_Target_List;
Info: Guint);
Appends the URI targets supported by Gtk_Selection to the target list. All targets are added with the same Info. Since: gtk+ 2.6 "info": an ID that will be passed back to the application

Find

procedure Find 
(List: Gtk_Target_List;
Target: Gdk.Types.Gdk_Atom;
Info: in out Guint;
Found: out Boolean);
Looks up a given target in a Gtk.Target_List.Gtk_Target_List. "target": an interned atom representing the target to search for "info": a pointer to the location to store application info for target, or null

Ref

function Ref 
(List: Gtk_Target_List) return Gtk_Target_List;
Increases the reference count of a Gtk.Target_List.Gtk_Target_List by one.

Remove

procedure Remove 
(List: Gtk_Target_List;
Target: Gdk.Types.Gdk_Atom);
Removes a target from a target list. "target": the interned atom representing the target

Unref

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.

Gtk_New

procedure Gtk_New 
(List: out Gtk_Target_List;
Targets: Target_Entry_Array);

Add_Table

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.