Package: gtk

Function gtk:map-list-model-set-map-func

Lambda List

gtk:map-list-model-set-map-func (model func)

Arguments

model -- a gtk:map-list-model object
func -- a gtk:map-list-model-map-func callback function to map items or nil

Details

Sets the function used to map items. The function will be called whenever an item needs to be mapped and must return the item to use for the given input item.

Note that the gtk:map-list-model object may call this function multiple times on the same item, because it may delete items it does not need anymore.

GTK makes no effort to ensure that func conforms to the item type of model. It assumes that the caller knows what they are doing and the map function returns items of the appropriate type.
 

See also

2024-12-15