Package: gtk

Function gtk:bitset-splice

Lambda List

gtk:bitset-splice (bitset position removed added)

Arguments

bitset -- a gtk:bitset instance
position -- an unsigned integer with the position at which to slice
removed -- an unsigned integer with the number of values to remove
added -- an unsigned integer with the number of values to add

Details

This is a support function for g:list-model handling, by mirroring the "items-changed" signal. First, it "cuts" the values from position to be removed from the bitset. That is, it removes all those values and shifts all larger values to the left by removed places. Then, it "pastes" new room into the bitset by shifting all values larger than position by added spaces to the right. This frees up space that can then be filled.
 

See also

2023-9-27