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.
toColumnViewSorter :: (MonadIO m, IsColumnViewSorter o) => o -> m ColumnViewSortergi-gtk4 GI.Gtk.Objects.ColumnViewSorter Cast to ColumnViewSorter, for types for which this is known to be safe. For general casts, use castTo.
module GI.Gtk.Objects.
CustomSorter GtkCustomSorter is a GtkSorter implementation that sorts via a callback function.
-
gi-gtk4 GI.Gtk.Objects.CustomSorter Memory-managed wrapper type.
CustomSorter :: ManagedPtr CustomSorter -> CustomSortergi-gtk4 GI.Gtk.Objects.CustomSorter No documentation available.
class (GObject o, IsDescendantOf CustomSorter o) =>
IsCustomSorter ogi-gtk4 GI.Gtk.Objects.CustomSorter Type class for types which can be safely cast to CustomSorter, for instance with toCustomSorter.
customSorterNew :: (HasCallStack, MonadIO m) => Maybe CompareDataFunc -> m CustomSortergi-gtk4 GI.Gtk.Objects.CustomSorter Creates a new GtkSorter that works by calling sortFunc to compare items. If sortFunc is Nothing, all items are considered equal.
-
gi-gtk4 GI.Gtk.Objects.CustomSorter Sets (or unsets) the function used for sorting items. If sortFunc is Nothing, all items are considered equal. If the sort func changes its sorting behavior, sorterChanged needs to be called. If a previous function was set, its userDestroy will be called now.
toCustomSorter :: (MonadIO m, IsCustomSorter o) => o -> m CustomSortergi-gtk4 GI.Gtk.Objects.CustomSorter Cast to CustomSorter, for types for which this is known to be safe. For general casts, use castTo.
flowBoxInvalidateSort :: (HasCallStack, MonadIO m, IsFlowBox a) => a -> m ()gi-gtk4 GI.Gtk.Objects.FlowBox Updates the sorting for all children. Call this when the result of the sort function on box is changed due to an external factor.
flowBoxSetSortFunc :: (HasCallStack, MonadIO m, IsFlowBox a) => a -> Maybe FlowBoxSortFunc -> m ()gi-gtk4 GI.Gtk.Objects.FlowBox By setting a sort function on the box, one can dynamically reorder the children of the box, based on the contents of the children. The sortFunc will be called for each child after the call, and will continue to be called each time a child changes (via flowBoxChildChanged) and when flowBoxInvalidateSort is called. Note that using a sort function is incompatible with using a model (see flowBoxBindModel).