
Gnome::Gtk3::TargetTable
Description
Convenience class to create and handle TargetTable structures.
Synopsis
Declaration
unit class Gnome::Gtk3::TargetTable;
Methods
new
:list
Create a new TargetTable object using data from Gnome::Gtk3::TargetList.
multi method new ( N-GObject :list! )
:array
Create a new TargetTable object using data from Array[Gnome::Gtk3::TargetEntry].
multi method new ( Array :array! )
get-array
Get an array of N-GtkTargetEntry or Gnome::Gtk3::TargetEntry.
method get-array ( --> Array[N-GtkTargetEntry] )
get-target-table
Get the target table as an array of unsigned bytes.
method get-array ( --> Array[N-GtkTargetEntry] )
free
This function frees a target table as returned by new-from-list()
method free ( GtkTargetEntry $targets, Int() $n_targets )
GtkTargetEntry $targets; (array length=n-targets): a Gnome::Gtk3::TargetEntry array
Int() $n_targets; the number of entries in the array
_gtk_target_table_new_from_list
This function creates an Gnome::Gtk3::TargetEntry array that contains the same targets as the passed list
. The returned table is newly allocated and should be freed using free()
when no longer needed.
Returns: (array length=n-targets) : the new table.
method _gtk_target_table_new_from_list ( GtkTargetList $list --> GtkTargetEntry )
GtkTargetList $list; a Gnome::Gtk3::TargetList
Int $n_targets; return location for the number ot targets in the table