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.
notebookSetCurrentPage :: (HasCallStack, MonadIO m, IsNotebook a) => a -> Int32 -> m ()gi-gtk3 GI.Gtk.Objects.Notebook Switches to the page number pageNum. Note that due to historical reasons, GtkNotebook refuses to switch to a page unless the child widget is visible. Therefore, it is recommended to show child widgets before adding them to a notebook.
notebookSetGroupName :: (HasCallStack, MonadIO m, IsNotebook a) => a -> Maybe Text -> m ()gi-gtk3 GI.Gtk.Objects.Notebook Sets a group name for notebook. Notebooks with the same name will be able to exchange tabs via drag and drop. A notebook with a Nothing group name will not be able to exchange tabs with any other notebook. Since: 2.24
-
gi-gtk3 GI.Gtk.Objects.Notebook Changes the menu label for the page containing child.
-
gi-gtk3 GI.Gtk.Objects.Notebook Creates a new label and sets it as the menu label of child.
notebookSetScrollable :: (HasCallStack, MonadIO m, IsNotebook a) => a -> Bool -> m ()gi-gtk3 GI.Gtk.Objects.Notebook Sets whether the tab label area will have arrows for scrolling if there are too many tabs to fit in the area.
notebookSetShowBorder :: (HasCallStack, MonadIO m, IsNotebook a) => a -> Bool -> m ()gi-gtk3 GI.Gtk.Objects.Notebook Sets whether a bevel will be drawn around the notebook pages. This only has a visual effect when the tabs are not shown. See notebookSetShowTabs.
notebookSetShowTabs :: (HasCallStack, MonadIO m, IsNotebook a) => a -> Bool -> m ()gi-gtk3 GI.Gtk.Objects.Notebook Sets whether to show the tabs for the notebook or not.
-
gi-gtk3 GI.Gtk.Objects.Notebook Sets whether the tab can be detached from notebook to another notebook or widget. Note that 2 notebooks must share a common group identificator (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 and accept the target “GTK_NOTEBOOK_TAB”. The notebook will fill the selection with a GtkWidget__ pointing to the child widget that corresponds to the dropped tab. Note that you should use notebookDetachTab instead of containerRemove 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, GdkDragContext *context, gint x, gint y, GtkSelectionData *data, guint info, guint time, gpointer user_data) { GtkWidget *notebook; GtkWidget **child; notebook = gtk_drag_get_source_widget (context); 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. Since: 2.10 -
gi-gtk3 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-gtk3 GI.Gtk.Objects.Notebook Creates a new label and sets it as the tab label for the page containing child.