Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. notebookSetShowTabs :: (HasCallStack, MonadIO m, IsNotebook a) => a -> Bool -> m ()

    gi-gtk4 GI.Gtk.Objects.Notebook

    Sets whether to show the tabs for the notebook or not.

  2. notebookSetTabDetachable :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) => a -> b -> Bool -> m ()

    gi-gtk4 GI.Gtk.Objects.Notebook

    Sets whether the tab can be detached from notebook to another notebook or widget. Note that two notebooks must share a common group identifier (see notebookSetGroupName) to allow automatic tabs interchange between them. If you want a widget to interact with a notebook through DnD (i.e.: accept dragged tabs from it) it must be set as a drop destination by adding to it a DropTarget controller that accepts the GType GTK_TYPE_NOTEBOOK_PAGE. The :value of said drop target will be preloaded with a NotebookPage object that corresponds to the dropped tab, so you can process the value via ::accept or ::drop signals. Note that you should use notebookDetachTab instead of notebookRemovePage if you want to remove the tab from the source notebook as part of accepting a drop. Otherwise, the source notebook will think that the dragged tab was removed from underneath the ongoing drag operation, and will initiate a drag cancel animation.

    c code

    static void
    on_drag_data_received (GtkWidget        *widget,
    GdkDrop          *drop,
    GtkSelectionData *data,
    guint             time,
    gpointer          user_data)
    {
    GtkDrag *drag;
    GtkWidget *notebook;
    GtkWidget **child;
    
    drag = gtk_drop_get_drag (drop);
    notebook = g_object_get_data (drag, "gtk-notebook-drag-origin");
    child = (void*) gtk_selection_data_get_data (data);
    
    // process_widget (*child);
    
    gtk_notebook_detach_tab (GTK_NOTEBOOK (notebook), *child);
    }
    
    If you want a notebook to accept drags from other widgets, you will have to set your own DnD code to do it.

  3. notebookSetTabLabel :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b, IsWidget c) => a -> b -> Maybe c -> m ()

    gi-gtk4 GI.Gtk.Objects.Notebook

    Changes the tab label for child. If Nothing is specified for tabLabel, then the page will have the label “page N”.

  4. notebookSetTabLabelText :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) => a -> b -> Text -> m ()

    gi-gtk4 GI.Gtk.Objects.Notebook

    Creates a new label and sets it as the tab label for the page containing child.

  5. notebookSetTabPos :: (HasCallStack, MonadIO m, IsNotebook a) => a -> PositionType -> m ()

    gi-gtk4 GI.Gtk.Objects.Notebook

    Sets the edge at which the tabs are drawn.

  6. notebookSetTabReorderable :: (HasCallStack, MonadIO m, IsNotebook a, IsWidget b) => a -> b -> Bool -> m ()

    gi-gtk4 GI.Gtk.Objects.Notebook

    Sets whether the notebook tab can be reordered via drag and drop or not.

  7. notebookPageGetChild :: (HasCallStack, MonadIO m, IsNotebookPage a) => a -> m Widget

    gi-gtk4 GI.Gtk.Objects.NotebookPage

    Returns the notebook child to which page belongs.

  8. note_event_event_type :: NoteEvent -> Text

    gitlab-haskell GitLab.SystemHooks.Types

    No documentation available.

  9. note_event_issue :: NoteEvent -> Maybe IssueEventObjectAttributes

    gitlab-haskell GitLab.SystemHooks.Types

    No documentation available.

  10. note_event_object_attributes :: NoteEvent -> NoteObjectAttributes

    gitlab-haskell GitLab.SystemHooks.Types

    No documentation available.

Page 40 of many | Previous | Next