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(GtkPositionType pos_in_paned, bool with_text) -> 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, bool 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.
auto foldable_notebook_widget_get_notebook(FoldableNotebookWidget* self) -> GtkNotebook*
Gets the internal notebook.
void foldable_notebook_widget_toggle_visibility(FoldableNotebookWidget* self)
Combines the above.
void foldable_notebook_widget_setup(FoldableNotebookWidget* self, GtkPaned* paned, GtkPositionType pos_in_paned, bool with_text)
Sets up an existing FoldableNotebookWidget.