Gtk.Target_List

Entities

Simple Types

Array Types

Tagged Types

Constants

Variables

Subprograms

Generic Instantiations

Description

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

Accel_Locked : constant Gtk_Accel_Flags := 2;

Accel_Mask

Accel_Mask : constant Gtk_Accel_Flags := 7;

Accel_Visible

Accel_Visible : constant Gtk_Accel_Flags := 1;

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.

Parameters
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_Data.Gtk_Selection_Data to the target list. All targets are added with the same Info. Since: gtk+ 2.6

Parameters
List
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_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.

Parameters
List
Targets

Add_Text_Targets

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

Parameters
List
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_Data.Gtk_Selection_Data to the target list. All targets are added with the same Info. Since: gtk+ 2.6

Parameters
List
Info

an ID that will be passed back to the application

Any_Target_Entry

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.

Find

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.

Parameters
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 @return True if the target was found, otherwise False

Found

From_Object

function From_Object (Object : System.Address) return Gtk_Target_List
Parameters
Object
Return Value

From_Object_Free

function From_Object_Free (B : access Gtk_Target_List'Class) return Gtk_Target_List
Parameters
B
Return Value

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_Accel_Flags

type Gtk_Accel_Flags is mod 2 ** Integer'Size;

Accelerator flags used with Gtk.Accel_Group.Connect.

Gtk_Accel_Flags_Properties

package Gtk_Accel_Flags_Properties is
   new Generic_Internal_Discrete_Property (Gtk_Accel_Flags);

Gtk_New

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.

Parameters
List
Targets

Gtk_Target_List

type Gtk_Target_List is new Glib.C_Boxed with null record;

No_Target_Entry

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

Null_Gtk_Target_List : constant Gtk_Target_List;

Property_Gtk_Accel_Flags

type Property_Gtk_Accel_Flags is new Gtk_Accel_Flags_Properties.Property;

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.

Parameters
List
Return Value

the passed in Gtk.Target_List.Gtk_Target_List.

Remove

procedure Remove (List : Gtk_Target_List; Target : Gdk.Types.Gdk_Atom)

Removes a target from a target list.

Parameters
List
Target

the interned atom representing the target

Target_Entry_Array

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

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.

Parameters
List