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.

  1. module GI.Gtk.Objects.ColumnViewSorter

    GtkColumnViewSorter is a sorter implementation that is geared towards the needs of GtkColumnView. The sorter returned by columnViewGetSorter is a GtkColumnViewSorter. In column views, sorting can be configured by associating sorters with columns, and users can invert sort order by clicking on column headers. The API of GtkColumnViewSorter is designed to allow saving and restoring this configuration. If you are only interested in the primary sort column (i.e. the column where a sort indicator is shown in the header), then you can just look at ColumnViewSorter:primarySortColumn and ColumnViewSorter:primarySortOrder. If you want to store the full sort configuration, including secondary sort columns that are used for tie breaking, then you can use columnViewSorterGetNthSortColumn. To get notified about changes, use Sorter::changed. To restore a saved sort configuration on a GtkColumnView, use code like:

    sorter = gtk_column_view_get_sorter (view);
    for (i = gtk_column_view_sorter_get_n_sort_columns (sorter) - 1; i >= 0; i--)
    {
    column = gtk_column_view_sorter_get_nth_sort_column (sorter, i, &order);
    gtk_column_view_sort_by_column (view, column, order);
    }
    
    Since: 4.10

  2. newtype ColumnViewSorter

    gi-gtk4 GI.Gtk.Objects.ColumnViewSorter

    Memory-managed wrapper type.

  3. ColumnViewSorter :: ManagedPtr ColumnViewSorter -> ColumnViewSorter

    gi-gtk4 GI.Gtk.Objects.ColumnViewSorter

    No documentation available.

  4. class (GObject o, IsDescendantOf ColumnViewSorter o) => IsColumnViewSorter o

    gi-gtk4 GI.Gtk.Objects.ColumnViewSorter

    Type class for types which can be safely cast to ColumnViewSorter, for instance with toColumnViewSorter.

  5. columnViewSorterGetNSortColumns :: (HasCallStack, MonadIO m, IsColumnViewSorter a) => a -> m Word32

    gi-gtk4 GI.Gtk.Objects.ColumnViewSorter

    Returns the number of columns by which the sorter sorts. If the sorter of the primary sort column does not determine a total order, then the secondary sorters are consulted to break the ties. Use the Sorter::changed signal to get notified when the number of sort columns changes. Since: 4.10

  6. columnViewSorterGetNthSortColumn :: (HasCallStack, MonadIO m, IsColumnViewSorter a) => a -> Word32 -> m (Maybe ColumnViewColumn, SortType)

    gi-gtk4 GI.Gtk.Objects.ColumnViewSorter

    Gets the position'th sort column and its associated sort order. Use the Sorter::changed signal to get notified when sort columns change. Since: 4.10

  7. columnViewSorterGetPrimarySortColumn :: (HasCallStack, MonadIO m, IsColumnViewSorter a) => a -> m (Maybe ColumnViewColumn)

    gi-gtk4 GI.Gtk.Objects.ColumnViewSorter

    Returns the primary sort column. The primary sort column is the one that displays the triangle in a column view header. Since: 4.10

  8. columnViewSorterGetPrimarySortOrder :: (HasCallStack, MonadIO m, IsColumnViewSorter a) => a -> m SortType

    gi-gtk4 GI.Gtk.Objects.ColumnViewSorter

    Returns the primary sort order. The primary sort order determines whether the triangle displayed in the column view header of the primary sort column points upwards or downwards. If there is no primary sort column, then this function returns GTK_SORT_ASCENDING. Since: 4.10

  9. getColumnViewSorterPrimarySortColumn :: (MonadIO m, IsColumnViewSorter o) => o -> m (Maybe ColumnViewColumn)

    gi-gtk4 GI.Gtk.Objects.ColumnViewSorter

    Get the value of the “primary-sort-column” property. When overloading is enabled, this is equivalent to

    get columnViewSorter #primarySortColumn
    

  10. getColumnViewSorterPrimarySortOrder :: (MonadIO m, IsColumnViewSorter o) => o -> m SortType

    gi-gtk4 GI.Gtk.Objects.ColumnViewSorter

    Get the value of the “primary-sort-order” property. When overloading is enabled, this is equivalent to

    get columnViewSorter #primarySortOrder
    

Page 189 of many | Previous | Next