Index

Package: Set_Column_Drag_Function_User_Data (generic)

Description

generic
      type User_Data_Type (<>) is private;
      with procedure Destroy (Data : in out User_Data_Type) is null;
   package Set_Column_Drag_Function_User_Data is

Types

User_Data_Type

type User_Data_Type (<>) is private;

Gtk_Tree_View_Column_Drop_Func

type Gtk_Tree_View_Column_Drop_Func is access function
        (Tree_View   : not null access Gtk.Tree_View.Gtk_Tree_View_Record'Class;
         Column      : not null access Gtk.Tree_View_Column.Gtk_Tree_View_Column_Record'Class;
         Prev_Column : not null access Gtk.Tree_View_Column.Gtk_Tree_View_Column_Record'Class;
         Next_Column : not null access Gtk.Tree_View_Column.Gtk_Tree_View_Column_Record'Class;
         Data        : User_Data_Type) return Boolean;
Function type for determining whether Column can be dropped in a particular spot (as determined by Prev_Column and Next_Column). In left to right locales, Prev_Column is on the left of the potential drop spot, and Next_Column is on the right. In right to left mode, this is reversed. This function should return True if the spot is a valid drop spot. Please note that returning True does not actually indicate that the column drop was made, but is meant only to indicate a possible drop spot to the user. "tree_view": A Gtk.Tree_View.Gtk_Tree_View "column": The Gtk.Tree_View_Column.Gtk_Tree_View_Column being dragged "prev_column": A Gtk.Tree_View_Column.Gtk_Tree_View_Column on one side of Column "next_column": A Gtk.Tree_View_Column.Gtk_Tree_View_Column on the other side of Column "data": user data

Subprograms & Entries

Destroy

procedure Destroy 
(Data: in out User_Data_Type) is null;

Set_Column_Drag_Function

procedure Set_Column_Drag_Function 
(Tree_View: not null access Gtk.Tree_View.Gtk_Tree_View_Record'Class;
Func: Gtk_Tree_View_Column_Drop_Func;
User_Data: User_Data_Type);
Sets a user function for determining where a column may be dropped when dragged. This function is called on every column pair in turn at the beginning of a column drag to determine where a drop can take place. The arguments passed to Func are: the Tree_View, the Gtk.Tree_View_Column.Gtk_Tree_View_Column being dragged, the two Gtk.Tree_View_Column.Gtk_Tree_View_Column s determining the drop spot, and User_Data. If either of the Gtk.Tree_View_Column.Gtk_Tree_View_Column arguments for the drop spot are null, then they indicate an edge. If Func is set to be null, then Tree_View reverts to the default behavior of allowing all columns to be dropped everywhere. "func": A function to determine which columns are reorderable, or null. "user_data": User data to be passed to Func, or null