Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
FoldableNotebookWidget Struct Reference

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

#include <gui/widgets/foldable_notebook.h>

Data Fields

GtkBox parent_instance
 
GtkNotebook * notebook
 
GtkGestureClick * mp
 
GtkPaned * paned
 Paned associated with this notebook to set it to max/min when hiding.
 
GtkPositionType pos_in_paned
 Notebook position in the paned.
 
int prev_pos
 Previous paned position before setting it to max/min.
 
bool with_text
 Whether to add text to the tab labels (otherwise just icons).
 
GtkWidget * tab_during_press
 Current tab during a press action.
 
gulong switch_page_handler_id
 

Detailed Description

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.

Definition at line 42 of file foldable_notebook.h.

Field Documentation

◆ mp

GtkGestureClick* FoldableNotebookWidget::mp

Definition at line 48 of file foldable_notebook.h.

◆ notebook

GtkNotebook* FoldableNotebookWidget::notebook

Definition at line 46 of file foldable_notebook.h.

◆ paned

GtkPaned* FoldableNotebookWidget::paned

Paned associated with this notebook to set it to max/min when hiding.

Definition at line 52 of file foldable_notebook.h.

◆ parent_instance

GtkBox FoldableNotebookWidget::parent_instance

Definition at line 44 of file foldable_notebook.h.

◆ pos_in_paned

GtkPositionType FoldableNotebookWidget::pos_in_paned

Notebook position in the paned.

Definition at line 55 of file foldable_notebook.h.

◆ prev_pos

int FoldableNotebookWidget::prev_pos

Previous paned position before setting it to max/min.

Revealer position before hiding.

Definition at line 62 of file foldable_notebook.h.

◆ switch_page_handler_id

gulong FoldableNotebookWidget::switch_page_handler_id

Definition at line 76 of file foldable_notebook.h.

◆ tab_during_press

GtkWidget* FoldableNotebookWidget::tab_during_press

Current tab during a press action.

Used to check if the same tab is active on release in order to hide the tab.

Definition at line 74 of file foldable_notebook.h.

◆ with_text

bool FoldableNotebookWidget::with_text

Whether to add text to the tab labels (otherwise just icons).

Definition at line 66 of file foldable_notebook.h.


The documentation for this struct was generated from the following file: