## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Notebook

- Goto spec source

# Description

    package Gtk.Notebook is

A Gtk_Notebook is a container that displays all of its children at the same location on the screen. They are organized into pages, that can be selected through tabs (either by clicking on them or by a contextual menu).

This is the best way to organize complicated interfaces that have a lot of widgets, by putting the children into groups of coherent widgets.

You can hide some of the pages of the notebook by simply calling Hide on the widget that is contained in the page (or returned from Get_Nth_Page).

Binding from C File version 2.16.6

<testgtk>create_notebook.adb</testgtk>

### Screenshot

# Packages

### Page_List (new Glib.Glist.Generic_List)

    package Page_List is new Glib.Glist.Generic_List (Gtk_Notebook_Page);

# Classes

### Gtk_Notebook_Record

- Goto declaration in source
- Goto full declaration in source

    type Gtk_Notebook_Record is new Gtk.Container.Gtk_Container_Record
         with private;

#### Ancestors:

Gtk.Container.Gtk_Container_Record
Gtk.Widget.Gtk_Widget_Record
Glib.Object.GObject_Record

#### Immediate Children:

Gtkada.MDI.MDI_Notebook_Record

#### Primitive operations:

Append_Page

- To API doc
- To spec

Append_Page

- To API doc
- To spec

Append_Page_Menu

- To API doc
- To spec

Get_Children

- To API doc
- To spec

Get_Current_Page

- To API doc
- To spec

Get_Group

- To API doc
- To spec

Get_Group_Id

- To API doc
- To spec

Get_Menu_Label

- To API doc
- To spec

Get_Menu_Label_Text

- To API doc
- To spec

Get_N_Pages

- To API doc
- To spec

Get_Scrollable

- To API doc
- To spec

Get_Show_Border

- To API doc
- To spec

Get_Show_Tabs

- To API doc
- To spec

Get_Tab_Detachable

- To API doc
- To spec

Get_Tab_Label

- To API doc
- To spec

Get_Tab_Label_Text

- To API doc
- To spec

Get_Tab_Pos

- To API doc
- To spec

Get_Tab_Reorderable

- To API doc
- To spec

Glib.Object.Deallocate

- To API doc
- To spec

(Inherited)
Glib.Object.Get_Type

- To API doc
- To spec

(Inherited)
Glib.Object.Notify

- To API doc
- To spec

(Inherited)
Glib.Object.Ref

- To API doc
- To spec

(Inherited)
Glib.Object.Ref_Sink

- To API doc
- To spec

(Inherited)
Glib.Object.Unref

- To API doc
- To spec

(Inherited)
Gtk.Container.Add

- To API doc
- To spec

(Inherited)
Gtk.Container.Check_Resize

- To API doc
- To spec

(Inherited)
Gtk.Container.Child_Get_Property

- To API doc
- To spec

(Inherited)
Gtk.Container.Child_Set_Property

- To API doc
- To spec

(Inherited)
Gtk.Container.Child_Type

- To API doc
- To spec

(Inherited)
Gtk.Container.Forall

- To API doc
- To spec

(Inherited)
Gtk.Container.Foreach

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Border_Width

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Children

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Focus_Chain

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Focus_Child

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Focus_Hadjustment

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Focus_Vadjustment

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Resize_Mode

- To API doc
- To spec

(Inherited)
Gtk.Container.Propagate_Expose

- To API doc
- To spec

(Inherited)
Gtk.Container.Remove

- To API doc
- To spec

(Inherited)
Gtk.Container.Resize_Children

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Border_Width

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Focus_Chain

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Focus_Child

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Focus_Hadjustment

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Focus_Vadjustment

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Reallocate_Redraws

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Resize_Mode

- To API doc
- To spec

(Inherited)
Gtk.Container.Unset_Focus_Chain

- To API doc
- To spec

(Inherited)
Gtk.Widget.Activate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Add_Accelerator

- To API doc
- To spec

(Inherited)
Gtk.Widget.Add_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Add_Mnemonic_Label

- To API doc
- To spec

(Inherited)
Gtk.Widget.Can_Activate_Accel

- To API doc
- To spec

(Inherited)
Gtk.Widget.Child_Notify

- To API doc
- To spec

(Inherited)
Gtk.Widget.Class_Path

- To API doc
- To spec

(Inherited)
Gtk.Widget.Class_Path_Reversed

- To API doc
- To spec

(Inherited)
Gtk.Widget.Create_Pango_Context

- To API doc
- To spec

(Inherited)
Gtk.Widget.Create_Pango_Layout

- To API doc
- To spec

(Inherited)
Gtk.Widget.Destroy

- To API doc
- To spec

(Inherited)
Gtk.Widget.Draw

- To API doc
- To spec

(Inherited)
Gtk.Widget.Ensure_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Error_Bell

- To API doc
- To spec

(Inherited)
Gtk.Widget.Flag_Is_Set

- To API doc
- To spec

(Inherited)
Gtk.Widget.Flags

- To API doc
- To spec

(Inherited)
Gtk.Widget.Freeze_Child_Notify

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_Height

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_Width

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_X

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_Y

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Ancestor

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Child_Requisition

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Child_Visible

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Colormap

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Composite_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Direction

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Extension_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Has_Tooltip

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_No_Show_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Pango_Context

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Parent

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Parent_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Pointer

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Root_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Size_Request

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Snapshot

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_State

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Tooltip_Markup

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Tooltip_Text

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Tooltip_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Toplevel

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Visual

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Grab_Default

- To API doc
- To spec

(Inherited)
Gtk.Widget.Grab_Focus

- To API doc
- To spec

(Inherited)
Gtk.Widget.Has_Screen

- To API doc
- To spec

(Inherited)
Gtk.Widget.Hide

- To API doc
- To spec

(Inherited)
Gtk.Widget.Hide_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Input_Shape_Combine_Mask

- To API doc
- To spec

(Inherited)
Gtk.Widget.Intersect

- To API doc
- To spec

(Inherited)
Gtk.Widget.Is_Ancestor

- To API doc
- To spec

(Inherited)
Gtk.Widget.Is_Composited

- To API doc
- To spec

(Inherited)
Gtk.Widget.Is_Focus

- To API doc
- To spec

(Inherited)
Gtk.Widget.Keynav_Failed

- To API doc
- To spec

(Inherited)
Gtk.Widget.List_Mnemonic_Labels

- To API doc
- To spec

(Inherited)
Gtk.Widget.Map

- To API doc
- To spec

(Inherited)
Gtk.Widget.Mnemonic_Activate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Base

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Bg

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Cursor

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Fg

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Font

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Text

- To API doc
- To spec

(Inherited)
Gtk.Widget.Path

- To API doc
- To spec

(Inherited)
Gtk.Widget.Path_Reversed

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Clear

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Clear_Area

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Draw

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Draw_Area

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Resize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Resize_No_Redraw

- To API doc
- To spec

(Inherited)
Gtk.Widget.Realize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Region_Intersect

- To API doc
- To spec

(Inherited)
Gtk.Widget.Remove_Accelerator

- To API doc
- To spec

(Inherited)
Gtk.Widget.Remove_Mnemonic_Label

- To API doc
- To spec

(Inherited)
Gtk.Widget.Render_Icon

- To API doc
- To spec

(Inherited)
Gtk.Widget.Reparent

- To API doc
- To spec

(Inherited)
Gtk.Widget.Reset_Rc_Styles

- To API doc
- To spec

(Inherited)
Gtk.Widget.Reset_Shapes

- To API doc
- To spec

(Inherited)
Gtk.Widget.Restore_Default_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Send_Expose

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Accel_Path

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_App_Paintable

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Child_Visible

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Colormap

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Composite_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Direction

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Double_Buffered

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Extension_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Flags

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Has_Tooltip

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_No_Show_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Parent

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Parent_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Redraw_On_Allocate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Scroll_Adjustments

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Sensitive

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Size_Request

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_State

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Tooltip_Markup

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Tooltip_Text

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Tooltip_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_UPosition

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_USize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Shape_Combine_Mask

- To API doc
- To spec

(Inherited)
Gtk.Widget.Show

- To API doc
- To spec

(Inherited)
Gtk.Widget.Show_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Show_Now

- To API doc
- To spec

(Inherited)
Gtk.Widget.Size_Allocate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Size_Request

- To API doc
- To spec

(Inherited)
Gtk.Widget.Style_Get_Property

- To API doc
- To spec

(Inherited)
Gtk.Widget.Thaw_Child_Notify

- To API doc
- To spec

(Inherited)
Gtk.Widget.Trigger_Tooltip_Query

- To API doc
- To spec

(Inherited)
Gtk.Widget.Unmap

- To API doc
- To spec

(Inherited)
Gtk.Widget.Unrealize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Unset_Flags

- To API doc
- To spec

(Inherited)
Insert_Page

- To API doc
- To spec

Insert_Page_Menu

- To API doc
- To spec

Next_Page

- To API doc
- To spec

Popup_Disable

- To API doc
- To spec

Popup_Enable

- To API doc
- To spec

Prepend_Page

- To API doc
- To spec

Prepend_Page_Menu

- To API doc
- To spec

Prev_Page

- To API doc
- To spec

Query_Tab_Label_Packing

- To API doc
- To spec

Remove_Page

- To API doc
- To spec

Reorder_Child

- To API doc
- To spec

Set_Current_Page

- To API doc
- To spec

Set_Group

- To API doc
- To spec

Set_Group_Id

- To API doc
- To spec

Set_Homogeneous_Tabs

- To API doc
- To spec

Set_Menu_Label

- To API doc
- To spec

Set_Menu_Label_Text

- To API doc
- To spec

Set_Scrollable

- To API doc
- To spec

Set_Show_Border

- To API doc
- To spec

Set_Show_Tabs

- To API doc
- To spec

Set_Tab

- To API doc
- To spec

Set_Tab_Border

- To API doc
- To spec

Set_Tab_Detachable

- To API doc
- To spec

Set_Tab_Hborder

- To API doc
- To spec

Set_Tab_Label

- To API doc
- To spec

Set_Tab_Label_Packing

- To API doc
- To spec

Set_Tab_Label_Text

- To API doc
- To spec

Set_Tab_Pos

- To API doc
- To spec

Set_Tab_Reorderable

- To API doc
- To spec

Set_Tab_Vborder

- To API doc
- To spec

# Types

### Gtk_Notebook

- Goto declaration in source

    type Gtk_Notebook is access all Gtk_Notebook_Record'Class;

### Gtk_Notebook_Page

- Goto declaration in source

    subtype Gtk_Notebook_Page is Gtk.Gtk_Notebook_Page;

### Gtk_Notebook_Tab

- Goto declaration in source

    type Gtk_Notebook_Tab is
         (Notebook_Tab_First,
          Notebook_Tab_Last);

### Gtk_Notebook_Group

- Goto declaration in source

    subtype Gtk_Notebook_Group is Glib.C_Proxy;

### Gtk_Notebook_Window_Creation_Func

- Goto declaration in source

    type Gtk_Notebook_Window_Creation_Func is access
         function (Source : System.Address; --  Gtk_Notebook
                   Page   : System.Address; --  Gtk_Widget
                   X      : System.Address; --  Gint
                   Y      : System.Address; --  Gint
                   Data   : System.Address) return Gtk_Notebook;

# Constants & Global variables

### Page_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Page_Property         : constant Glib.Properties.Property_Int;

### Tab_Pos_Property

- Goto declaration in source

(Gtk.Enums.Property_Gtk_Position_Type)

    Tab_Pos_Property      : constant Gtk.Enums.Property_Gtk_Position_Type;

### Tab_Border_Property

- Goto declaration in source

(Glib.Properties.Property_Uint)

    Tab_Border_Property   : constant Glib.Properties.Property_Uint;

### Tab_Hborder_Property

- Goto declaration in source

(Glib.Properties.Property_Uint)

    Tab_Hborder_Property  : constant Glib.Properties.Property_Uint;

### Tab_Vborder_Property

- Goto declaration in source

(Glib.Properties.Property_Uint)

    Tab_Vborder_Property  : constant Glib.Properties.Property_Uint;

### Show_Tabs_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Show_Tabs_Property    : constant Glib.Properties.Property_Boolean;

### Show_Border_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Show_Border_Property  : constant Glib.Properties.Property_Boolean;

### Scrollable_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Scrollable_Property   : constant Glib.Properties.Property_Boolean;

### Enable_Popup_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Enable_Popup_Property : constant Glib.Properties.Property_Boolean;

### Homogeneous_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Homogeneous_Property  : constant Glib.Properties.Property_Boolean;

### Group_Property

- Goto declaration in source

(Glib.Properties.Property_C_Proxy)

    Group_Property        : constant Glib.Properties.Property_C_Proxy;

### Group_Id_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Group_Id_Property     : constant Glib.Properties.Property_Int;

### Menu_Label_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Menu_Label_Property : constant Glib.Properties.Property_String;

### Position_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Position_Property   : constant Glib.Properties.Property_Int;

### Tab_Expand_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Tab_Expand_Property : constant Glib.Properties.Property_Boolean;

### Tab_Fill_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Tab_Fill_Property   : constant Glib.Properties.Property_Boolean;

### Tab_Label_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Tab_Label_Property  : constant Glib.Properties.Property_String;

### Tab_Pack_Property

- Goto declaration in source

(Gtk.Enums.Property_Pack_Type)

    Tab_Pack_Property   : constant Gtk.Enums.Property_Pack_Type;

### Detachable_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Detachable_Property : constant Glib.Properties.Property_Boolean;

### Reorderable_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Reorderable_Property : constant Glib.Properties.Property_Boolean;

### Arrow_Spacing_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Arrow_Spacing_Property        : constant Glib.Properties.Property_Int;

### Has_Backward_Stepper_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Has_Backward_Stepper_Property : constant Glib.Properties.Property_Boolean;

### Has_Forward_Stepper_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Has_Forward_Stepper_Property  : constant Glib.Properties.Property_Boolean;

### Has_Secondary_Backward_Stepper_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Has_Secondary_Backward_Stepper_Property : constant
         Glib.Properties.Property_Boolean;

### Has_Secondary_Forward_Stepper_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Has_Secondary_Forward_Stepper_Property  : constant
         Glib.Properties.Property_Boolean;

### Tab_Curvature_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Tab_Curvature_Property        : constant Glib.Properties.Property_Int;

### Tab_Overlap_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Tab_Overlap_Property          : constant Glib.Properties.Property_Int;

### Signal_Switch_Page

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Switch_Page         : constant Glib.Signal_Name := "switch_page";

### Signal_Select_Page

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Select_Page         : constant Glib.Signal_Name := "select_page";

### Signal_Focus_Tab

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Focus_Tab           : constant Glib.Signal_Name := "focus_tab";

### Signal_Move_Focus_Out

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Move_Focus_Out      : constant Glib.Signal_Name := "move_focus_out";

### Signal_Change_Current_Page

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Change_Current_Page : constant Glib.Signal_Name :=
                                      "change_current_page";

# Subprograms & Entries

### Gtk_New

- Goto spec in source

    procedure Gtk_New (Widget: out Gtk_Notebook);

Create a new empty notebook.

### Initialize

- Goto spec in source

    procedure Initialize (Widget: access Gtk_Notebook_Record'Class);

Internal initialization function. See the section "Creating your own widgets" in the documentation.

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return Gtk.Gtk_Type;

Return the internal value associated with a Gtk_Notebook.

### Append_Page

- Goto spec in source

    procedure Append_Page (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Tab_Label: access Gtk.Widget.Gtk_Widget_Record'Class);

Insert a new page in Notebook. The page is put at the end of the list of pages. The user will select it through a button that contains the Tab_Label widget, which is generally a Gtk_Label, but could be a box with a pixmap in it for instance. No entry is associated with the page in the contextual menu.

### Append_Page

- Goto spec in source

    procedure Append_Page (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class);

Same as above, but no label is specified.

### Append_Page_Menu

- Goto spec in source

    procedure Append_Page_Menu (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Tab_Label: access Gtk.Widget.Gtk_Widget_Record'Class;Menu_Label: access Gtk.Widget.Gtk_Widget_Record'Class);

Insert a new page in Notebook. The page is put at the end of the list of pages. The user will select it through a button that contains the Tab_Label widget, which is generally a Gtk_Label, but could be a box with a pixmap in it for instance. A new entry is inserted into the contextual menu. This new entry is made with Menu_Label.

### Prepend_Page

- Goto spec in source

    procedure Prepend_Page (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Tab_Label: access Gtk.Widget.Gtk_Widget_Record'Class);

Insert a new page in Notebook. The page is put at the beginning of the list of pages. The user will select it through a button that contains the Tab_Label widget, which is generally a Gtk_Label, but could be a box with a pixmap in it for instance. No entry is associated with the page in the contextual menu.

### Prepend_Page_Menu

- Goto spec in source

    procedure Prepend_Page_Menu (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Tab_Label: access Gtk.Widget.Gtk_Widget_Record'Class;Menu_Label: access Gtk.Widget.Gtk_Widget_Record'Class);

Insert a new page in Notebook. The page is put at the beginning of the list of pages. The user will select it through a button that contains the Tab_Label widget, which is generally a Gtk_Label, but could be a box with a pixmap in it for instance. A new entry is inserted into the contextual menu. This new entry is made with Menu_Label.

### Insert_Page

- Goto spec in source

    procedure Insert_Page (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Tab_Label: access Gtk.Widget.Gtk_Widget_Record'Class;Position: Gint);

Insert a new page at a specific position in Notebook. The page is put at the beginning of the list of pages. The user will select it through a button that contains the Tab_Label widget, which is generally a Gtk_Label, but could be a box with a pixmap in it for instance. No entry is associated with the page in the contextual menu. The first position in the list of pages is 0.

### Insert_Page_Menu

- Goto spec in source

    procedure Insert_Page_Menu (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Tab_Label: access Gtk.Widget.Gtk_Widget_Record'Class;Menu_Label: access Gtk.Widget.Gtk_Widget_Record'Class;Position: Gint);

Insert a new page at a specific position in Notebook. The page is put at the beginning of the list of pages. The user will select it through a button that contains the Tab_Label widget, which is generally a Gtk_Label, but could be a box with a pixmap in it for instance. A new entry is inserted into the contextual menu. This new entry is made with Menu_Label. The first position in the list of pages is 0.

### Remove_Page

- Goto spec in source

    procedure Remove_Page (Notebook: access Gtk_Notebook_Record;Page_Num: Gint);

Remove a page from the notebook. The first position in the list of pages is 0.

### Set_Window_Creation_Hook

- Goto spec in source

    procedure Set_Window_Creation_Hook (Func: Gtk_Notebook_Window_Creation_Func;Data: System.Address;Destroy: Glib.G_Destroy_Notify_Address);

### Get_Current_Page

- Goto spec in source

    function Get_Current_Page (Notebook: access Gtk_Notebook_Record) return Gint;

Get the number of the current page. The first page has the number 0.

### Get_Nth_Page

- Goto spec in source

    function Get_Nth_Page (Widget: access Gtk_Notebook_Record'Class;Page_Num: Gint) return Gtk.Widget.Gtk_Widget;

Convert from a page number to the real page.

### Get_N_Pages

- Goto spec in source

    function Get_N_Pages (Notebook: access Gtk_Notebook_Record) return Gint;

Return the number of pages in the notebook

### Page_Num

- Goto spec in source

    function Page_Num (Widget: access Gtk_Notebook_Record'Class;Child: access Gtk.Widget.Gtk_Widget_Record'Class) return Gint;

Convert from a child to a page number. Note that Child is not the notebook page, but the widget you inserted with Insert_Page, Append_Page,...

### Set_Current_Page

- Goto spec in source

    procedure Set_Current_Page (Notebook: access Gtk_Notebook_Record;Page_Num: Gint := -1);

Modify the current page. The current page is the page that is currently visible on the screen. Nothing happens if there is no such page. Note also that the page has to be visible on the screen (ie you must have called Gtk.Widget.Show on it first). Use -1 to set the current page to the last one. Note: This call won't succeeded unless you have called Show on the widget displayed in the page.

### Set_Page

- Goto spec in source

    procedure Set_Page (Notebook: access Gtk_Notebook_Record;Page_Num: Gint := -1) renames Set_Current_Page;

This function is deprecated. Use Set_Current_Page instead.

### Next_Page

- Goto spec in source

    procedure Next_Page (Notebook: access Gtk_Notebook_Record);

Display the next page on the screen.

### Prev_Page

- Goto spec in source

    procedure Prev_Page (Notebook: access Gtk_Notebook_Record);

Display the previous page on the screen.

### Set_Show_Border

- Goto spec in source

    procedure Set_Show_Border (Notebook: access Gtk_Notebook_Record;Show_Border: Boolean := True);

Indicate whether the notebook should display borders. This border gives a 3D aspect to the notebook.

### Get_Show_Border

- Goto spec in source

    function Get_Show_Border (Notebook: access Gtk_Notebook_Record) return Boolean;

Return whether the notebook displays borders.

### Set_Show_Tabs

- Goto spec in source

    procedure Set_Show_Tabs (Notebook: access Gtk_Notebook_Record;Show_Tabs: Boolean := True);

Indicate whether the tabs should be displayed. If the tabs are not displayed, the only way for the user to select a new page is through the contextual menu, and thus you should make sure that the pages were created with the Insert_Page_Menu, ... subprograms.

### Get_Show_Tabs

- Goto spec in source

    function Get_Show_Tabs (Notebook: access Gtk_Notebook_Record) return Boolean;

Return whether the tabs are displayed.

### Set_Tab_Pos

- Goto spec in source

    procedure Set_Tab_Pos (Notebook: access Gtk_Notebook_Record;Pos: Gtk.Enums.Gtk_Position_Type);

Change the position of the tabs. The tabs can be displayed on any of the four sides of the notebook.

### Get_Tab_Pos

- Goto spec in source

    function Get_Tab_Pos (Widget: access Gtk_Notebook_Record) return Gtk.Enums.Gtk_Position_Type;

Return the current position of the tabs.

### Set_Scrollable

- Goto spec in source

    procedure Set_Scrollable (Notebook: access Gtk_Notebook_Record;Scrollable: Boolean := True);

Indicate whether Notebook display scrolling arrows when there are too many tabs. The default is not to display such scrolling arrows. Note also that a notebook with too many pages, even if the scrolling is activated, is sometimes hard to use for the user.

### Get_Scrollable

- Goto spec in source

    function Get_Scrollable (Notebook: access Gtk_Notebook_Record) return Boolean;

Return whether Notebook is scrollable. See Set_Scrollable for more details.

### Popup_Enable

- Goto spec in source

    procedure Popup_Enable (Notebook: access Gtk_Notebook_Record);

Enable the popup menu. When the user pressed the right mouse button, a menu is selected that allows him to select a new page.

### Popup_Disable

- Goto spec in source

    procedure Popup_Disable (Notebook: access Gtk_Notebook_Record);

Disable the popup menu. This menu won't be display any more when the user pressed the right mouse button.

### Get_Tab_Label

- Goto spec in source

    function Get_Tab_Label (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class) return Gtk.Widget.Gtk_Widget;

Return the widget displayed in the tab used to select Page. This widget is in fact the one given in argument to Insert_Page,etc. when the page was created.

### Set_Tab_Label

- Goto spec in source

    procedure Set_Tab_Label (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Tab_Label: access Gtk.Widget.Gtk_Widget_Record'Class);

Modify the widget displayed in the tab for the page that contains Child. Tab_Label is generally a Gtk_Label, although it can also be a Gtk_Box that contains a Gtk_Pixmap and a Gtk_Label if you want to show pixmaps. Note that you will need to call Show_All on Tab_Label: since it is not a Child of the notebook in the sense of Gtk_Container, the Show_All passed to the notebook will not be transmitted to the Tab_Label.

### Set_Tab_Label_Text

- Goto spec in source

    procedure Set_Tab_Label_Text (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Tab_Text: UTF8_String);

Modify the text displayed in the tab for the page that contains Child. This is a less general form of Set_Tab_Label above.

### Get_Tab_Label_Text

- Goto spec in source

    function Get_Tab_Label_Text (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class) return UTF8_String;

Return the text displayed in the tab for the page that contains Child.

### Set_Tab

- Goto spec in source

    procedure Set_Tab (Notebook: access Gtk_Notebook_Record;Page_Num: Gint;Tab_Label: access Gtk.Widget.Gtk_Widget_Record'Class);

Set Notebook tab widget for a given page number. This function is mainly intended for use by Gate.

### Get_Menu_Label

- Goto spec in source

    function Get_Menu_Label (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class) return Gtk.Widget.Gtk_Widget;

Return the widget displayed in the contextual menu for the Child. This is the widget given in argument to Insert_Page_Menu, Append_Page_Menu and Prepend_Page_Menu.

### Set_Menu_Label

- Goto spec in source

    procedure Set_Menu_Label (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Menu_Label: access Gtk.Widget.Gtk_Widget_Record'Class);

Modify the widget displayed in the contextual menu for the page that contains Child.

### Set_Menu_Label_Text

- Goto spec in source

    procedure Set_Menu_Label_Text (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Menu_Text: UTF8_String);

Modify the text displayed in the contextual menu for the page that contains Child. This is a less general form of Set_Menu_Label above.

### Get_Menu_Label_Text

- Goto spec in source

    function Get_Menu_Label_Text (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class) return UTF8_String;

Return the text displayed in the contextual menu for the page that contains Child.

### Query_Tab_Label_Packing

- Goto spec in source

    procedure Query_Tab_Label_Packing (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Expand: out Boolean;Fill: out Boolean;Pack_Type: out Gtk.Enums.Gtk_Pack_Type);

### Set_Tab_Label_Packing

- Goto spec in source

    procedure Set_Tab_Label_Packing (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Expand: Boolean;Fill: Boolean;Pack_Type: Gtk.Enums.Gtk_Pack_Type);

### Reorder_Child

- Goto spec in source

    procedure Reorder_Child (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Position: Gint);

Change the position of the page that contains Child.

### Get_Tab_Reorderable

- Goto spec in source

    function Get_Tab_Reorderable (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Position: Gint) return Boolean;

Get whether the tab can be reordered via drag and drop or not.

### Set_Tab_Reorderable

- Goto spec in source

    procedure Set_Tab_Reorderable (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Reorderable: Boolean := True);

Set whether the notebook tab can be reordered.

### Get_Tab_Detachable

- Goto spec in source

    function Get_Tab_Detachable (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Position: Gint) return Boolean;

Return whether the tab contents can be detached from Notebook.

### Set_Tab_Detachable

- Goto spec in source

    procedure Set_Tab_Detachable (Notebook: access Gtk_Notebook_Record;Child: access Gtk.Widget.Gtk_Widget_Record'Class;Detachable: Boolean := True);

Set whether the tab can be detached from Notebook to another notebook or widget. Note that 2 notebooks must share a common group identificator (see Set_Group_Id) to allow automatic tabs interchange between them. If you want a widget to interact with a notebook through DnD (i.e.: accept dragged tabs from it) it must be set as a drop destination and accept the target "GTK_NOTEBOOK_TAB". The notebook will fill the selection with a Gtk_Widget pointing to the child widget that corresponds to the dropped tab. If you want a notebook to accept drags from other widgets, you will have to set your own DnD code to do it.

### Get_Group

- Goto spec in source

    function Get_Group (Notebook: access Gtk_Notebook_Record) return Gtk_Notebook_Group;

### Set_Group

- Goto spec in source

    procedure Set_Group (Notebook: access Gtk_Notebook_Record;Group: Gtk_Notebook_Group);

### Get_Notebook_Page

- Goto spec in source

    function Get_Notebook_Page (Value: Glib.Values.GValue) return Gtk_Notebook_Page;

Convert a Value into a notebook page.

### Convert

- Goto spec in source

    function Convert is new Unchecked_Conversion (Gtk_Notebook_Page, System.Address);

### Convert

- Goto spec in source

    function Convert is new Unchecked_Conversion (System.Address, Gtk_Notebook_Page);

### Get_Children

- Goto spec in source

    function Get_Children (Widget: access Gtk_Notebook_Record) return Page_List.Glist;

### Set_Homogeneous_Tabs

- Goto spec in source

    procedure Set_Homogeneous_Tabs (Notebook: access Gtk_Notebook_Record;Homogeneous: Boolean := True);

### Set_Tab_Border

- Goto spec in source

    procedure Set_Tab_Border (Notebook: access Gtk_Notebook_Record;Border_Width: Gint);

### Set_Tab_Hborder

- Goto spec in source

    procedure Set_Tab_Hborder (Notebook: access Gtk_Notebook_Record;Border_Width: Gint);

### Set_Tab_Vborder

- Goto spec in source

    procedure Set_Tab_Vborder (Notebook: access Gtk_Notebook_Record;Border_Width: Gint);

### Set_Group_Id

- Goto spec in source

    procedure Set_Group_Id (Notebook: access Gtk_Notebook_Record;Group_Id: Gint);

### Get_Group_Id

- Goto spec in source

    function Get_Group_Id (Notebook: access Gtk_Notebook_Record) return Gint;