gui/widgets/foldable_notebook.h file

Contents

A foldable GtkNotebook.

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(void) -> FoldableNotebookWidget*
Creates a FoldableNotebookWidget.
auto foldable_notebook_widget_get_widget_at_page(FoldableNotebookWidget* self, int page) -> GtkWidget*
Get the widget at the given page.
auto foldable_notebook_widget_get_current_widget(FoldableNotebookWidget* self) -> GtkWidget*
Get the widget currently visible.
void foldable_notebook_widget_set_visibility(FoldableNotebookWidget* self, int new_visibility)
Sets the folded space visible or not.
auto foldable_notebook_widget_is_content_visible(FoldableNotebookWidget* self) -> int
Returns if the content of the foldable notebook is visible.
void foldable_notebook_widget_toggle_visibility(FoldableNotebookWidget* self)
Combines the above.
void foldable_notebook_widget_setup(FoldableNotebookWidget* self, GtkPaned* paned, GtkPositionType pos_in_paned)
Sets up an existing FoldableNotebookWidget.