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.

  1. getSortListModelPending :: (MonadIO m, IsSortListModel o) => o -> m Word32

    gi-gtk4 GI.Gtk.Objects.SortListModel

    Get the value of the “pending” property. When overloading is enabled, this is equivalent to

    get sortListModel #pending
    

  2. 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
    

  3. 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
    

  4. 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 ]
    

  5. 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 ]
    

  6. 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 ]
    

  7. 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 ]
    

  8. sortListModelGetIncremental :: (HasCallStack, MonadIO m, IsSortListModel a) => a -> m Bool

    gi-gtk4 GI.Gtk.Objects.SortListModel

    Returns whether incremental sorting is enabled. See sortListModelSetIncremental.

  9. 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.

  10. sortListModelGetPending :: (HasCallStack, MonadIO m, IsSortListModel a) => a -> m Word32

    gi-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.

Page 140 of many | Previous | Next