ListModel.connectItemsChanged

Connect to ItemsChanged signal.

This signal is emitted whenever items were added to or removed from list. At position, removed items were removed and added items were added in their place.

Note: If removed != added, the positions of all later items in the model change.

interface ListModel
ulong
connectItemsChanged
(
T
)
(,
Flag!"After" after = No.After
)

Parameters

callback T

signal callback delegate or function to connect

void callback(uint position, uint removed, uint added, gio.list_model.ListModel listModel)

position the position at which list changed (optional)

removed the number of items removed (optional)

added the number of items added (optional)

listModel the instance the signal is connected to (optional)

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: ulong

Signal ID