Index

Package: Set_Modify_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_Modify_Func_User_Data is

Types

User_Data_Type

type User_Data_Type (<>) is private;

Gtk_Tree_Model_Filter_Modify_Func

type Gtk_Tree_Model_Filter_Modify_Func is access procedure
        (Model  : Gtk.Tree_Model.Gtk_Tree_Model;
         Iter   : Gtk.Tree_Model.Gtk_Tree_Iter;
         Value  : in out Glib.Values.GValue;
         Column : Gint;
         Data   : User_Data_Type);
A function which calculates display values from raw values in the model. It must fill Value with the display value for the column Column in the row indicated by Iter. Since this function is called for each data access, it's not a particularly efficient operation. "model": the Gtk.Tree_Model_Filter.Gtk_Tree_Model_Filter "iter": a Gtk.Tree_Model.Gtk_Tree_Iter pointing to the row whose display values are determined "value": A Glib.Values.GValue which is already initialized for with the correct type for the column Column. "column": the column whose display value is determined "data": user data given to Gtk.Tree_Model_Filter.Set_Modify_Func

Subprograms & Entries

Destroy

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

Set_Modify_Func

procedure Set_Modify_Func 
(Self: not null access Gtk.Tree_Model_Filter.Gtk_Tree_Model_Filter_Record'Class;
Types: Glib.GType_Array;
Func: Gtk_Tree_Model_Filter_Modify_Func;
Data: User_Data_Type);
With the N_Columns and Types parameters, you give an array of column types for this model (which will be exposed to the parent model/view). The Func, Data and Destroy parameters are for specifying the modify function. The modify function will get called for *each* data access, the goal of the modify function is to return the data which should be displayed at the location specified using the parameters of the modify function. Since: gtk+ 2.4 "types": The GType<!-- -->s of the columns. "func": A Gtk_Tree_Model_Filter_Modify_Func "data": User data to pass to the modify function, or null.