GtrNotebook

## GtrNotebook GtrNotebook |

## Synopsis

    struct              GtrNotebook;
    struct              GtrNotebookClass;
    GtkWidget *         gtr_notebook_new                    (void);
    void                gtr_notebook_add_page               (GtrNotebook *notebook,
                                                             GtrTab *tab);
    void                gtr_notebook_remove_page            (GtrNotebook *notebook,
                                                             gint page_num);
    void                gtr_notebook_remove_all_pages       (GtrNotebook *notebook);
    GtrTab *            gtr_notebook_get_page               (GtrNotebook *notebook);

## Description

## Details

### struct GtrNotebook

    struct GtrNotebook {
      GtkNotebook parent_instance;
    };

### struct GtrNotebookClass

    struct GtrNotebookClass {
      GtkNotebookClass parent_class;

      void (*tab_close_request) (GtrNotebook * notebook, GtrTab * tab);
    };

### gtr_notebook_new ()

    GtkWidget *         gtr_notebook_new                    (void);

Creates a new GtrNotebook.

Returns : | a new GtrNotebook object

### gtr_notebook_add_page ()

    void                gtr_notebook_add_page               (GtrNotebook *notebook,
                                                             GtrTab *tab);

Adds a new GtrTab to `notebook`.

`notebook` : | a GtrNotebook
`tab` : | a GtrTab

### gtr_notebook_remove_page ()

    void                gtr_notebook_remove_page            (GtrNotebook *notebook,
                                                             gint page_num);

Removes a page from the notebook given its index in the notebook.

`notebook` : | a GtrNotebook
`page_num` : | the index of a notebook page, starting from 0.

### gtr_notebook_remove_all_pages ()

    void                gtr_notebook_remove_all_pages       (GtrNotebook *notebook);

Removes all tabs from from `notebook`

`notebook` : | a GtrNotebook

### gtr_notebook_get_page ()

    GtrTab *            gtr_notebook_get_page               (GtrNotebook *notebook);

Gets the selected page in the GtrNotebook.

`notebook` : | a GtrNotebook
Returns : | the selected page in the `notebook`. [transfer none]