set_modify_func


Description:

[ Version ( since = "2.4" ) ]
public void set_modify_func (Type[] types, owned TreeModelFilterModifyFunc func)

With the types.length 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.

Note that set_modify_func can only be called once for a given filter model.

Parameters:

this

A TreeModelFilter.

types

The Types of the columns.

func

A TreeModelFilterModifyFunc

data

User data to pass to the modify function, or null.

destroy

Destroy notifier of data, or null.

n_columns

The number of columns in the filter model.