Index

Package: Add_Custom_User_Data (generic)

Description

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

Types

User_Data_Type

type User_Data_Type (<>) is private;

Gtk_File_Filter_Func

type Gtk_File_Filter_Func is access function
        (Filter_Info : Gtk.File_Filter.Gtk_File_Filter_Info;
         Data        : User_Data_Type) return Boolean;
The type of function that is used with custom filters, see Gtk.File_Filter.Add_Custom. "filter_info": a Gtk.File_Filter.Gtk_File_Filter_Info that is filled according to the Needed flags passed to Gtk.File_Filter.Add_Custom "data": user data passed to Gtk.File_Filter.Add_Custom

Subprograms & Entries

Destroy

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

Add_Custom

Adds rule to a filter that allows files based on a custom callback function. The bitfield Needed which is passed in provides information about what sorts of information that the filter function needs; this allows GTK+ to avoid retrieving expensive information when it isn't needed by the filter. Since: gtk+ 2.4 "needed": bitfield of flags indicating the information that the custom filter function needs. "func": callback function; if the function returns True, then the file will be displayed. "data": data to pass to Func "notify": function to call to free Data when it is no longer needed.