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.
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.
-
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. -
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”.
-
gi-gtk4 GI.Gtk.Objects.Notebook Creates a new label and sets it as the tab label for the page containing child.
notebookSetTabPos :: (HasCallStack, MonadIO m, IsNotebook a) => a -> PositionType -> m ()gi-gtk4 GI.Gtk.Objects.Notebook Sets the edge at which the tabs are drawn.
-
gi-gtk4 GI.Gtk.Objects.Notebook Sets whether the notebook tab can be reordered via drag and drop or not.
notebookPageGetChild :: (HasCallStack, MonadIO m, IsNotebookPage a) => a -> m Widgetgi-gtk4 GI.Gtk.Objects.NotebookPage Returns the notebook child to which page belongs.
note_event_event_type :: NoteEvent -> Textgitlab-haskell GitLab.SystemHooks.Types No documentation available.
note_event_issue :: NoteEvent -> Maybe IssueEventObjectAttributesgitlab-haskell GitLab.SystemHooks.Types No documentation available.
note_event_object_attributes :: NoteEvent -> NoteObjectAttributesgitlab-haskell GitLab.SystemHooks.Types No documentation available.