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.

  1. clipboardGetForDisplay :: (HasCallStack, MonadIO m, IsDisplay a) => a -> Atom -> m Clipboard

    gi-gtk3 GI.Gtk.Objects.Clipboard

    Returns the clipboard object for the given selection. Cut/copy/paste menu items and keyboard shortcuts should use the default clipboard, returned by passing GDK_SELECTION_CLIPBOARD for selection. (GDK_NONE is supported as a synonym for GDK_SELECTION_CLIPBOARD for backwards compatibility reasons.) The currently-selected object or text should be provided on the clipboard identified by GDK_SELECTION_PRIMARY. Cut/copy/paste menu items conceptually copy the contents of the GDK_SELECTION_PRIMARY clipboard to the default clipboard, i.e. they copy the selection to what the user sees as the clipboard. (Passing GDK_NONE is the same as using gdk_atom_intern ("CLIPBOARD", FALSE). See the FreeDesktop Clipboard Specification for a detailed discussion of the “CLIPBOARD” vs. “PRIMARY” selections under the X window system. On Win32 the GDK_SELECTION_PRIMARY clipboard is essentially ignored.) It’s possible to have arbitrary named clipboards; if you do invent new clipboards, you should prefix the selection name with an underscore (because the ICCCM requires that nonstandard atoms are underscore-prefixed), and namespace it as well. For example, if your application called “Foo” has a special-purpose clipboard, you might call it “_FOO_SPECIAL_CLIPBOARD”. Since: 2.2

  2. clipboardWaitForContents :: (HasCallStack, MonadIO m, IsClipboard a) => a -> Atom -> m (Maybe SelectionData)

    gi-gtk3 GI.Gtk.Objects.Clipboard

    Requests the contents of the clipboard using the given target. This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.

  3. clipboardWaitForImage :: (HasCallStack, MonadIO m, IsClipboard a) => a -> m (Maybe Pixbuf)

    gi-gtk3 GI.Gtk.Objects.Clipboard

    Requests the contents of the clipboard as image and converts the result to a Pixbuf. This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait. Since: 2.6

  4. clipboardWaitForTargets :: (HasCallStack, MonadIO m, IsClipboard a) => a -> m (Bool, [Atom])

    gi-gtk3 GI.Gtk.Objects.Clipboard

    Returns a list of targets that are present on the clipboard, or Nothing if there aren’t any targets available. The returned list must be freed with free. This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait. Since: 2.4

  5. clipboardWaitForText :: (HasCallStack, MonadIO m, IsClipboard a) => a -> m (Maybe Text)

    gi-gtk3 GI.Gtk.Objects.Clipboard

    Requests the contents of the clipboard as text and converts the result to UTF-8 if necessary. This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.

  6. clipboardWaitForUris :: (HasCallStack, MonadIO m, IsClipboard a) => a -> m (Maybe [Text])

    gi-gtk3 GI.Gtk.Objects.Clipboard

    Requests the contents of the clipboard as URIs. This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait. Since: 2.14

  7. type ComboBoxFormatEntryTextCallback = Text -> IO Text

    gi-gtk3 GI.Gtk.Objects.ComboBox

    For combo boxes that are created with an entry (See GtkComboBox:has-entry). A signal which allows you to change how the text displayed in a combo box's entry is displayed. 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 GtkComboBoxentryTextColumn model column. Here's an example signal handler which fetches data from the model and displays it in the entry.

    C code

    static gchar*
    format_entry_text_callback (GtkComboBox *combo,
    const gchar *path,
    gpointer     user_data)
    {
    GtkTreeIter iter;
    GtkTreeModel model;
    gdouble      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);
    }
    
    Since: 3.4

  8. afterComboBoxFormatEntryText :: (IsComboBox a, MonadIO m) => a -> ((?self :: a) => ComboBoxFormatEntryTextCallback) -> m SignalHandlerId

    gi-gtk3 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.

  9. comboBoxPopupForDevice :: (HasCallStack, MonadIO m, IsComboBox a, IsDevice b) => a -> b -> m ()

    gi-gtk3 GI.Gtk.Objects.ComboBox

    Pops up the menu or dropdown list of comboBox, the popup window will be grabbed so only device and its associated pointer/keyboard are the only GdkDevices able to send events to it. Since: 3.0

  10. onComboBoxFormatEntryText :: (IsComboBox a, MonadIO m) => a -> ((?self :: a) => ComboBoxFormatEntryTextCallback) -> m SignalHandlerId

    gi-gtk3 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
    

Page 1426 of many | Previous | Next