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.
getFlattenListModelNItems :: (MonadIO m, IsFlattenListModel o) => o -> m Word32gi-gtk4 GI.Gtk.Objects.FlattenListModel Get the value of the “n-items” property. When overloading is enabled, this is equivalent to
get flattenListModel #nItems
setFlattenListModelModel :: (MonadIO m, IsFlattenListModel o, IsListModel a) => o -> a -> m ()gi-gtk4 GI.Gtk.Objects.FlattenListModel Set the value of the “model” property. When overloading is enabled, this is equivalent to
set flattenListModel [ #model := value ]
toFlattenListModel :: (MonadIO m, IsFlattenListModel o) => o -> m FlattenListModelgi-gtk4 GI.Gtk.Objects.FlattenListModel Cast to FlattenListModel, for types for which this is known to be safe. For general casts, use castTo.
flowBoxSetHadjustment :: (HasCallStack, MonadIO m, IsFlowBox a, IsAdjustment b) => a -> b -> m ()gi-gtk4 GI.Gtk.Objects.FlowBox Hooks up an adjustment to focus handling in box. The adjustment is also used for autoscrolling during rubberband selection. See scrolledWindowGetHadjustment for a typical way of obtaining the adjustment, and flowBoxSetVadjustment for setting the vertical adjustment. The adjustments have to be in pixel units and in the same coordinate system as the allocation for immediate children of the box.
flowBoxSetVadjustment :: (HasCallStack, MonadIO m, IsFlowBox a, IsAdjustment b) => a -> b -> m ()gi-gtk4 GI.Gtk.Objects.FlowBox Hooks up an adjustment to focus handling in box. The adjustment is also used for autoscrolling during rubberband selection. See scrolledWindowGetVadjustment for a typical way of obtaining the adjustment, and flowBoxSetHadjustment for setting the horizontal adjustment. The adjustments have to be in pixel units and in the same coordinate system as the allocation for immediate children of the box.
-
gi-gtk4 GI.Gtk.Objects.LayoutManager Retrieves the request mode of manager.
listBoxGetAdjustment :: (HasCallStack, MonadIO m, IsListBox a) => a -> m (Maybe Adjustment)gi-gtk4 GI.Gtk.Objects.ListBox Gets the adjustment (if any) that the widget uses to for vertical scrolling.
-
gi-gtk4 GI.Gtk.Objects.ListBox Sets the adjustment (if any) that the widget uses to for vertical scrolling. For instance, this is used to get the page size for PageUp/Down key handling. In the normal case when the box is packed inside a GtkScrolledWindow the adjustment from that will be picked up automatically, so there is no need to manually do that.
module GI.Gtk.Objects.
MapListModel A GtkMapListModel maps the items in a list model to different items. GtkMapListModel uses a [callbackgtk.MapListModelMapFunc]. Example: Create a list of GtkEventControllers
c code
static gpointer map_to_controllers (gpointer widget, gpointer data) { gpointer result = gtk_widget_observe_controllers (widget); g_object_unref (widget); return result; } widgets = gtk_widget_observe_children (widget); controllers = gtk_map_list_model_new (widgets, map_to_controllers, NULL, NULL); model = gtk_flatten_list_model_new (GTK_TYPE_EVENT_CONTROLLER, controllers);GtkMapListModel will attempt to discard the mapped objects as soon as they are no longer needed and recreate them if necessary. GtkMapListModel passes through sections from the underlying model.class (GObject o, IsDescendantOf MapListModel o) =>
IsMapListModel ogi-gtk4 GI.Gtk.Objects.MapListModel Type class for types which can be safely cast to MapListModel, for instance with toMapListModel.