Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
listBoxInvalidateSort :: (HasCallStack, MonadIO m, IsListBox a) => a -> m ()gi-gtk4 GI.Gtk.Objects.ListBox Update the sorting for all rows. Call this when result of the sort function on the box is changed due to an external factor.
listBoxSetSortFunc :: (HasCallStack, MonadIO m, IsListBox a) => a -> Maybe ListBoxSortFunc -> m ()gi-gtk4 GI.Gtk.Objects.ListBox Sets a sort function. By setting a sort function on the box one can dynamically reorder the rows of the list, based on the contents of the rows. The sortFunc will be called for each row after the call, and will continue to be called each time a row changes (via listBoxRowChanged) and when listBoxInvalidateSort is called. Note that using a sort function is incompatible with using a model (see listBoxBindModel).
module GI.Gtk.Objects.
MultiSorter GtkMultiSorter combines multiple sorters by trying them in turn. If the first sorter compares two items as equal, the second is tried next, and so on.
class (GObject o, IsDescendantOf MultiSorter o) =>
IsMultiSorter ogi-gtk4 GI.Gtk.Objects.MultiSorter Type class for types which can be safely cast to MultiSorter, for instance with toMultiSorter.
-
gi-gtk4 GI.Gtk.Objects.MultiSorter Memory-managed wrapper type.
MultiSorter :: ManagedPtr MultiSorter -> MultiSortergi-gtk4 GI.Gtk.Objects.MultiSorter No documentation available.
getMultiSorterItemType :: (MonadIO m, IsMultiSorter o) => o -> m GTypegi-gtk4 GI.Gtk.Objects.MultiSorter Get the value of the “item-type” property. When overloading is enabled, this is equivalent to
get multiSorter #itemType
getMultiSorterNItems :: (MonadIO m, IsMultiSorter o) => o -> m Word32gi-gtk4 GI.Gtk.Objects.MultiSorter Get the value of the “n-items” property. When overloading is enabled, this is equivalent to
get multiSorter #nItems
multiSorterAppend :: (HasCallStack, MonadIO m, IsMultiSorter a, IsSorter b) => a -> b -> m ()gi-gtk4 GI.Gtk.Objects.MultiSorter Add sorter to self to use for sorting at the end. self will consult all existing sorters before it will sort with the given sorter.
multiSorterNew :: (HasCallStack, MonadIO m) => m MultiSortergi-gtk4 GI.Gtk.Objects.MultiSorter Creates a new multi sorter. This sorter compares items by trying each of the sorters in turn, until one returns non-zero. In particular, if no sorter has been added to it, it will always compare items as equal.