Hoogle Search
Within LTS Haskell 24.66 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
type
ComboBoxFormatEntryTextCallback = Text -> IO Textgi-gtk4 GI.Gtk.Objects.ComboBox Emitted to allow changing how the text in a combo box's entry is displayed. See ComboBox:hasEntry. Connect a signal handler which returns an allocated string representing path. That string will then be used to set the text in the combo box's entry. The default signal handler uses the text from the ComboBox:entryTextColumn model column. Here's an example signal handler which fetches data from the model and displays it in the entry.
c code
static char * format_entry_text_callback (GtkComboBox *combo, const char *path, gpointer user_data) { GtkTreeIter iter; GtkTreeModel model; double value; model = gtk_combo_box_get_model (combo); gtk_tree_model_get_iter_from_string (model, &iter, path); gtk_tree_model_get (model, &iter, THE_DOUBLE_VALUE_COLUMN, &value, -1); return g_strdup_printf ("%g", value); }-
gi-gtk4 GI.Gtk.Objects.ComboBox Connect a signal handler for the formatEntryText signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after comboBox #formatEntryText callback
By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension. comboBoxPopupForDevice :: (HasCallStack, MonadIO m, IsComboBox a, IsDevice b) => a -> b -> m ()gi-gtk4 GI.Gtk.Objects.ComboBox Deprecated: (Since version 4.10)Use DropDown
-
gi-gtk4 GI.Gtk.Objects.ComboBox Connect a signal handler for the formatEntryText signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on comboBox #formatEntryText callback
constantExpressionNewForValue :: (HasCallStack, MonadIO m) => GValue -> m ConstantExpressiongi-gtk4 GI.Gtk.Objects.ConstantExpression Creates an expression that always evaluates to the given value.
dialogGetResponseForWidget :: (HasCallStack, MonadIO m, IsDialog a, IsWidget b) => a -> b -> m Int32gi-gtk4 GI.Gtk.Objects.Dialog Deprecated: (Since version 4.10)Use Window instead
-
gi-gtk4 GI.Gtk.Objects.Dialog Deprecated: (Since version 4.10)Use Window instead
dragIconCreateWidgetForValue :: (HasCallStack, MonadIO m) => GValue -> m (Maybe Widget)gi-gtk4 GI.Gtk.Objects.DragIcon Creates a widget that can be used as a drag icon for the given value. Supported types include strings, GdkRGBA and GtkTextBuffer. If GTK does not know how to create a widget for a given value, it will return Nothing. This method is used to set the default drag icon on drag-and-drop operations started by GtkDragSource, so you don't need to set a drag icon using this function there.
dragIconGetForDrag :: (HasCallStack, MonadIO m, IsDrag a) => a -> m Widgetgi-gtk4 GI.Gtk.Objects.DragIcon Gets the GtkDragIcon in use with drag. If no drag icon exists yet, a new one will be created and shown.
constructDropTargetFormats :: (IsDropTarget o, MonadIO m) => ContentFormats -> m (GValueConstruct o)gi-gtk4 GI.Gtk.Objects.DropTarget Construct a GValueConstruct with valid value for the “formats” property. This is rarely needed directly, but it is used by new.