Schnittstelle SectionModel.OnSectionsChanged

Umschließende Klasse:
SectionModel
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface SectionModel.OnSectionsChanged
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    onSectionsChanged(int position, int n_items)
    Emitted when the start-of-section state of some of the items in @model changes.
  • Methodendetails

    • onSectionsChanged

      void onSectionsChanged(int position, int n_items)
      Emitted when the start-of-section state of some of the items in @model changes.

      Note that this signal does not specify the new section state of the
      items, they need to be queried manually. It is also not necessary for
      a model to change the section state of any of the items in the section
      model, though it would be rather useless to emit such a signal.

      The [signal@Gio.ListModel::items-changed] implies the effect of the
      [signal@Gtk.SectionModel::sections-changed] signal for all the items
      it covers.
      Parameter:
      position - The first item that may have changed
      n_items - number of items with changes