Hoogle Search
Within LTS Haskell 24.39 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
getSortListModelPending :: (MonadIO m, IsSortListModel o) => o -> m Word32gi-gtk4 GI.Gtk.Objects.SortListModel Get the value of the “pending” property. When overloading is enabled, this is equivalent to
get sortListModel #pending
getSortListModelSectionSorter :: (MonadIO m, IsSortListModel o) => o -> m (Maybe Sorter)gi-gtk4 GI.Gtk.Objects.SortListModel Get the value of the “section-sorter” property. When overloading is enabled, this is equivalent to
get sortListModel #sectionSorter
getSortListModelSorter :: (MonadIO m, IsSortListModel o) => o -> m (Maybe Sorter)gi-gtk4 GI.Gtk.Objects.SortListModel Get the value of the “sorter” property. When overloading is enabled, this is equivalent to
get sortListModel #sorter
setSortListModelIncremental :: (MonadIO m, IsSortListModel o) => o -> Bool -> m ()gi-gtk4 GI.Gtk.Objects.SortListModel Set the value of the “incremental” property. When overloading is enabled, this is equivalent to
set sortListModel [ #incremental := value ]
setSortListModelModel :: (MonadIO m, IsSortListModel o, IsListModel a) => o -> a -> m ()gi-gtk4 GI.Gtk.Objects.SortListModel Set the value of the “model” property. When overloading is enabled, this is equivalent to
set sortListModel [ #model := value ]
setSortListModelSectionSorter :: (MonadIO m, IsSortListModel o, IsSorter a) => o -> a -> m ()gi-gtk4 GI.Gtk.Objects.SortListModel Set the value of the “section-sorter” property. When overloading is enabled, this is equivalent to
set sortListModel [ #sectionSorter := value ]
setSortListModelSorter :: (MonadIO m, IsSortListModel o, IsSorter a) => o -> a -> m ()gi-gtk4 GI.Gtk.Objects.SortListModel Set the value of the “sorter” property. When overloading is enabled, this is equivalent to
set sortListModel [ #sorter := value ]
sortListModelGetIncremental :: (HasCallStack, MonadIO m, IsSortListModel a) => a -> m Boolgi-gtk4 GI.Gtk.Objects.SortListModel Returns whether incremental sorting is enabled. See sortListModelSetIncremental.
sortListModelGetModel :: (HasCallStack, MonadIO m, IsSortListModel a) => a -> m (Maybe ListModel)gi-gtk4 GI.Gtk.Objects.SortListModel Gets the model currently sorted or Nothing if none.
sortListModelGetPending :: (HasCallStack, MonadIO m, IsSortListModel a) => a -> m Word32gi-gtk4 GI.Gtk.Objects.SortListModel Estimates progress of an ongoing sorting operation. The estimate is the number of items that would still need to be sorted to finish the sorting operation if this was a linear algorithm. So this number is not related to how many items are already correctly sorted. If you want to estimate the progress, you can use code like this:
c code
pending = gtk_sort_list_model_get_pending (self); model = gtk_sort_list_model_get_model (self); progress = 1.0 - pending / (double) MAX (1, g_list_model_get_n_items (model));
If no sort operation is ongoing - in particular when SortListModel:incremental is False - this function returns 0.