gui/widgets/foldable_notebook.h file

A foldable GtkNotebook.

Contents

Classes

struct _FoldableNotebookWidget
A GtkNotebook that shows or hides itself when the same page tab is clicked.

Typedefs

using FoldableNotebookWidget = struct _FoldableNotebookWidget
A GtkNotebook that shows or hides itself when the same page tab is clicked.

Functions

auto foldable_notebook_widget_new() -> FoldableNotebookWidget*
Creates a FoldableNotebookWidget.
void foldable_notebook_widget_setup(FoldableNotebookWidget* self, GtkPaned* paned, DzlDockRevealer* dock_revealer, GtkPositionType pos_in_paned)
Sets up an existing FoldableNotebookWidget.

Typedef documentation

typedef struct _FoldableNotebookWidget FoldableNotebookWidget

A GtkNotebook that shows or hides itself when the same page tab is clicked.

It assumes that each page is wrapped in a GtkBox. The reason is that Gtk automatically hides the tab widget too if you hide the main child of a page, so we hide the box's child instead.