AgsNotebook

AgsNotebook — select channel

Synopsis

#include <ags/X/editor/ags_notebook.h>

#define             AGS_NOTEBOOK_TAB                    (x)
struct              AgsNotebook;
struct              AgsNotebookClass;
struct              AgsNotebookTab;
enum                AgsNotebookTabFlags;
void                ags_notebook_add_child              (AgsNotebook *notebook,
                                                         GtkWidget *child);
gint                ags_notebook_add_tab                (AgsNotebook *notebook);
void                ags_notebook_insert_tab             (AgsNotebook *notebook,
                                                         gint position);
AgsNotebook *       ags_notebook_new                    ();
gint                ags_notebook_next_active_tab        (AgsNotebook *notebook,
                                                         gint position);
void                ags_notebook_remove_child           (AgsNotebook *notebook,
                                                         GtkWidget *child);
void                ags_notebook_remove_tab             (AgsNotebook *notebook,
                                                         gint nth);
gint                ags_notebook_tab_index              (AgsNotebook *notebook,
                                                         GObject *notation);

Description

The AgsNotebook lets select/deselect channels to edit.

Details

AGS_NOTEBOOK_TAB()

#define AGS_NOTEBOOK_TAB(x) ((AgsNotebookTab *)(x))

struct AgsNotebook

struct AgsNotebook {
  GtkVBox vbox;

  guint flags;

  GtkHBox *hbox;

  GList *tabs;
  GtkWidget *child;
};

struct AgsNotebookClass

struct AgsNotebookClass {
  GtkVBoxClass vbox;
};

struct AgsNotebookTab

struct AgsNotebookTab {
  guint flags;

  GtkToggleButton *toggle;
  GObject *notation;
};

enum AgsNotebookTabFlags

typedef enum {
  AGS_NOTEBOOK_TAB_VISIBLE           = 1,
  AGS_NOTEBOOK_TAB_MODE_NORMAL       = 1 << 1,
  AGS_NOTEBOOK_TAB_MODE_OVERLAY      = 1 << 2,
} AgsNotebookTabFlags;

ags_notebook_add_child ()

void                ags_notebook_add_child              (AgsNotebook *notebook,
                                                         GtkWidget *child);

ags_notebook_add_tab ()

gint                ags_notebook_add_tab                (AgsNotebook *notebook);

ags_notebook_insert_tab ()

void                ags_notebook_insert_tab             (AgsNotebook *notebook,
                                                         gint position);

ags_notebook_new ()

AgsNotebook *       ags_notebook_new                    ();

Create a new AgsNotebook.

Since 0.4


ags_notebook_next_active_tab ()

gint                ags_notebook_next_active_tab        (AgsNotebook *notebook,
                                                         gint position);

ags_notebook_remove_child ()

void                ags_notebook_remove_child           (AgsNotebook *notebook,
                                                         GtkWidget *child);

ags_notebook_remove_tab ()

void                ags_notebook_remove_tab             (AgsNotebook *notebook,
                                                         gint nth);

ags_notebook_tab_index ()

gint                ags_notebook_tab_index              (AgsNotebook *notebook,
                                                         GObject *notation);