Index

Package: Set_Search_Equal_Func_User_Data (generic)

Description

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

Types

User_Data_Type

type User_Data_Type (<>) is private;

Gtk_Tree_View_Search_Equal_Func

type Gtk_Tree_View_Search_Equal_Func is access function
        (Model       : Gtk.Tree_Model.Gtk_Tree_Model;
         Column      : Gint;
         Key         : UTF8_String;
         Iter        : Gtk.Tree_Model.Gtk_Tree_Iter;
         Search_Data : User_Data_Type) return Boolean;
A function used for checking whether a row in Model matches a search key string entered by the user. Note the return value is reversed from what you would normally expect, though it has some similarity to strcmp returning 0 for equal strings. "model": the Gtk.Tree_Model.Gtk_Tree_Model being searched "column": the search column set by Gtk.Tree_View.Set_Search_Column "key": the key string to compare with "iter": a Gtk.Tree_Model.Gtk_Tree_Iter pointing the row of Model that should be compared with Key. "search_data": user data from Gtk.Tree_View.Set_Search_Equal_Func

Subprograms & Entries

Destroy

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

Set_Search_Equal_Func

procedure Set_Search_Equal_Func 
(Tree_View: not null access Gtk.Tree_View.Gtk_Tree_View_Record'Class;
Search_Equal_Func: Gtk_Tree_View_Search_Equal_Func;
Search_User_Data: User_Data_Type;
Search_Destroy: Glib.G_Destroy_Notify_Address);
Sets the compare function for the interactive search capabilities; note that somewhat like strcmp returning 0 for equality Gtk_Tree_View_Search_Equal_Func returns False on matches. "search_equal_func": the compare function to use during the search "search_user_data": user data to pass to Search_Equal_Func, or null "search_destroy": Destroy notifier for Search_User_Data, or null