splice


Description:

public void splice (uint position, uint removed, uint added)

This is a support function for `GListModel` handling, by mirroring the `GlistModel:GtkBitset:items-changed` signal.

First, it "cuts" the values from position to 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.

Parameters:

this

a `GtkBitset`

position

position at which to slice

removed

number of values to remove

added

number of values to add