Table of Contents

Class Notebook

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class Notebook : Widget, IObject, INotifyPropertyChanged, IDisposable, Accessible, Buildable, ConstraintTarget, IHandle, GTypeProvider
Inheritance
Notebook
Implements
Inherited Members

Constructors

Notebook()

public Notebook()

Notebook(params ConstructArgument[])

protected Notebook(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Notebook(IntPtr, bool)

protected Notebook(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

ChangeCurrentPageSignal

Signal Descriptor for OnChangeCurrentPage.

public static readonly ReturningSignal<Notebook, Notebook.ChangeCurrentPageSignalArgs, bool> ChangeCurrentPageSignal

Field Value

ReturningSignal<Notebook, Notebook.ChangeCurrentPageSignalArgs, bool>

CreateWindowSignal

Signal Descriptor for OnCreateWindow.

public static readonly ReturningSignal<Notebook, Notebook.CreateWindowSignalArgs, Notebook?> CreateWindowSignal

Field Value

ReturningSignal<Notebook, Notebook.CreateWindowSignalArgs, Notebook>

EnablePopupPropertyDefinition

public static readonly Property<bool, Notebook> EnablePopupPropertyDefinition

Field Value

Property<bool, Notebook>

FocusTabSignal

Signal Descriptor for OnFocusTab.

public static readonly ReturningSignal<Notebook, Notebook.FocusTabSignalArgs, bool> FocusTabSignal

Field Value

ReturningSignal<Notebook, Notebook.FocusTabSignalArgs, bool>

GroupNamePropertyDefinition

public static readonly Property<string?, Notebook> GroupNamePropertyDefinition

Field Value

Property<string, Notebook>

MoveFocusOutSignal

Signal Descriptor for OnMoveFocusOut.

public static readonly Signal<Notebook, Notebook.MoveFocusOutSignalArgs> MoveFocusOutSignal

Field Value

Signal<Notebook, Notebook.MoveFocusOutSignalArgs>

PageAddedSignal

Signal Descriptor for OnPageAdded.

public static readonly Signal<Notebook, Notebook.PageAddedSignalArgs> PageAddedSignal

Field Value

Signal<Notebook, Notebook.PageAddedSignalArgs>

PagePropertyDefinition

public static readonly Property<int, Notebook> PagePropertyDefinition

Field Value

Property<int, Notebook>

PageRemovedSignal

Signal Descriptor for OnPageRemoved.

public static readonly Signal<Notebook, Notebook.PageRemovedSignalArgs> PageRemovedSignal

Field Value

Signal<Notebook, Notebook.PageRemovedSignalArgs>

PageReorderedSignal

Signal Descriptor for OnPageReordered.

public static readonly Signal<Notebook, Notebook.PageReorderedSignalArgs> PageReorderedSignal

Field Value

Signal<Notebook, Notebook.PageReorderedSignalArgs>

PagesPropertyDefinition

public static readonly Property<ListModel, Notebook> PagesPropertyDefinition

Field Value

Property<ListModel, Notebook>

ReorderTabSignal

Signal Descriptor for OnReorderTab.

public static readonly ReturningSignal<Notebook, Notebook.ReorderTabSignalArgs, bool> ReorderTabSignal

Field Value

ReturningSignal<Notebook, Notebook.ReorderTabSignalArgs, bool>

ScrollablePropertyDefinition

public static readonly Property<bool, Notebook> ScrollablePropertyDefinition

Field Value

Property<bool, Notebook>

SelectPageSignal

Signal Descriptor for OnSelectPage.

public static readonly ReturningSignal<Notebook, Notebook.SelectPageSignalArgs, bool> SelectPageSignal

Field Value

ReturningSignal<Notebook, Notebook.SelectPageSignalArgs, bool>

ShowBorderPropertyDefinition

public static readonly Property<bool, Notebook> ShowBorderPropertyDefinition

Field Value

Property<bool, Notebook>

ShowTabsPropertyDefinition

public static readonly Property<bool, Notebook> ShowTabsPropertyDefinition

Field Value

Property<bool, Notebook>

SwitchPageSignal

Signal Descriptor for OnSwitchPage.

public static readonly Signal<Notebook, Notebook.SwitchPageSignalArgs> SwitchPageSignal

Field Value

Signal<Notebook, Notebook.SwitchPageSignalArgs>

TabPosPropertyDefinition

public static readonly Property<PositionType, Notebook> TabPosPropertyDefinition

Field Value

Property<PositionType, Notebook>

Properties

AccessibleRole

public AccessibleRole AccessibleRole { get; set; }

Property Value

AccessibleRole

EnablePopup

public bool EnablePopup { get; set; }

Property Value

bool

GroupName

public string? GroupName { get; set; }

Property Value

string

Page

public int Page { get; set; }

Property Value

int

Pages

public ListModel Pages { get; }

Property Value

ListModel

Scrollable

public bool Scrollable { get; set; }

Property Value

bool

ShowBorder

public bool ShowBorder { get; set; }

Property Value

bool

ShowTabs

public bool ShowTabs { get; set; }

Property Value

bool

TabPos

public PositionType TabPos { get; set; }

Property Value

PositionType

Methods

Announce(string, AccessibleAnnouncementPriority)

[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)

Parameters

message string
priority AccessibleAnnouncementPriority

AppendPage(Widget, Widget?)

public int AppendPage(Widget child, Widget? tabLabel)

Parameters

child Widget
tabLabel Widget

Returns

int

AppendPageMenu(Widget, Widget?, Widget?)

public int AppendPageMenu(Widget child, Widget? tabLabel, Widget? menuLabel)

Parameters

child Widget
tabLabel Widget
menuLabel Widget

Returns

int

DetachTab(Widget)

public void DetachTab(Widget child)

Parameters

child Widget

GetAccessibleParent()

[Version("4.10")]
public Accessible? GetAccessibleParent()

Returns

Accessible

GetAccessibleRole()

public AccessibleRole GetAccessibleRole()

Returns

AccessibleRole

GetActionWidget(PackType)

public Widget? GetActionWidget(PackType packType)

Parameters

packType PackType

Returns

Widget

GetAtContext()

[Version("4.10")]
public ATContext GetAtContext()

Returns

ATContext

GetBounds(out int, out int, out int, out int)

[Version("4.10")]
public bool GetBounds(out int x, out int y, out int width, out int height)

Parameters

x int
y int
width int
height int

Returns

bool

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetCurrentPage()

public int GetCurrentPage()

Returns

int

GetFirstAccessibleChild()

[Version("4.10")]
public Accessible? GetFirstAccessibleChild()

Returns

Accessible

GetGType()

public static Type GetGType()

Returns

Type

GetGroupName()

public string? GetGroupName()

Returns

string

GetMenuLabel(Widget)

public Widget? GetMenuLabel(Widget child)

Parameters

child Widget

Returns

Widget

GetMenuLabelText(Widget)

public string? GetMenuLabelText(Widget child)

Parameters

child Widget

Returns

string

GetNPages()

public int GetNPages()

Returns

int

GetNextAccessibleSibling()

[Version("4.10")]
public Accessible? GetNextAccessibleSibling()

Returns

Accessible

GetNthPage(int)

public Widget? GetNthPage(int pageNum)

Parameters

pageNum int

Returns

Widget

GetPage(Widget)

public NotebookPage GetPage(Widget child)

Parameters

child Widget

Returns

NotebookPage

GetPages()

public ListModel GetPages()

Returns

ListModel

GetPlatformState(AccessiblePlatformState)

[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)

Parameters

state AccessiblePlatformState

Returns

bool

GetScrollable()

public bool GetScrollable()

Returns

bool

GetShowBorder()

public bool GetShowBorder()

Returns

bool

GetShowTabs()

public bool GetShowTabs()

Returns

bool

GetTabDetachable(Widget)

public bool GetTabDetachable(Widget child)

Parameters

child Widget

Returns

bool

GetTabLabel(Widget)

public Widget? GetTabLabel(Widget child)

Parameters

child Widget

Returns

Widget

GetTabLabelText(Widget)

public string? GetTabLabelText(Widget child)

Parameters

child Widget

Returns

string

GetTabPos()

public PositionType GetTabPos()

Returns

PositionType

GetTabReorderable(Widget)

public bool GetTabReorderable(Widget child)

Parameters

child Widget

Returns

bool

InsertPage(Widget, Widget?, int)

public int InsertPage(Widget child, Widget? tabLabel, int position)

Parameters

child Widget
tabLabel Widget
position int

Returns

int

InsertPageMenu(Widget, Widget?, Widget?, int)

public int InsertPageMenu(Widget child, Widget? tabLabel, Widget? menuLabel, int position)

Parameters

child Widget
tabLabel Widget
menuLabel Widget
position int

Returns

int

New()

public static Notebook New()

Returns

Notebook

NextPage()

public void NextPage()

PageNum(Widget)

public int PageNum(Widget child)

Parameters

child Widget

Returns

int

PopupDisable()

public void PopupDisable()

PopupEnable()

public void PopupEnable()

PrependPage(Widget, Widget?)

public int PrependPage(Widget child, Widget? tabLabel)

Parameters

child Widget
tabLabel Widget

Returns

int

PrependPageMenu(Widget, Widget?, Widget?)

public int PrependPageMenu(Widget child, Widget? tabLabel, Widget? menuLabel)

Parameters

child Widget
tabLabel Widget
menuLabel Widget

Returns

int

PrevPage()

public void PrevPage()

RemovePage(int)

public void RemovePage(int pageNum)

Parameters

pageNum int

ReorderChild(Widget, int)

public void ReorderChild(Widget child, int position)

Parameters

child Widget
position int

ResetProperty(AccessibleProperty)

public void ResetProperty(AccessibleProperty property)

Parameters

property AccessibleProperty

ResetRelation(AccessibleRelation)

public void ResetRelation(AccessibleRelation relation)

Parameters

relation AccessibleRelation

ResetState(AccessibleState)

public void ResetState(AccessibleState state)

Parameters

state AccessibleState

SetAccessibleParent(Accessible?, Accessible?)

[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)

Parameters

parent Accessible
nextSibling Accessible

SetActionWidget(Widget, PackType)

public void SetActionWidget(Widget widget, PackType packType)

Parameters

widget Widget
packType PackType

SetCurrentPage(int)

public void SetCurrentPage(int pageNum)

Parameters

pageNum int

SetGroupName(string?)

public void SetGroupName(string? groupName)

Parameters

groupName string

SetMenuLabel(Widget, Widget?)

public void SetMenuLabel(Widget child, Widget? menuLabel)

Parameters

child Widget
menuLabel Widget

SetMenuLabelText(Widget, string)

public void SetMenuLabelText(Widget child, string menuText)

Parameters

child Widget
menuText string

SetScrollable(bool)

public void SetScrollable(bool scrollable)

Parameters

scrollable bool

SetShowBorder(bool)

public void SetShowBorder(bool showBorder)

Parameters

showBorder bool

SetShowTabs(bool)

public void SetShowTabs(bool showTabs)

Parameters

showTabs bool

SetTabDetachable(Widget, bool)

public void SetTabDetachable(Widget child, bool detachable)

Parameters

child Widget
detachable bool

SetTabLabel(Widget, Widget?)

public void SetTabLabel(Widget child, Widget? tabLabel)

Parameters

child Widget
tabLabel Widget

SetTabLabelText(Widget, string)

public void SetTabLabelText(Widget child, string tabText)

Parameters

child Widget
tabText string

SetTabPos(PositionType)

public void SetTabPos(PositionType pos)

Parameters

pos PositionType

SetTabReorderable(Widget, bool)

public void SetTabReorderable(Widget child, bool reorderable)

Parameters

child Widget
reorderable bool

UpdateNextAccessibleSibling(Accessible?)

[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)

Parameters

newSibling Accessible

Events

OnChangeCurrentPage

public event ReturningSignalHandler<Notebook, Notebook.ChangeCurrentPageSignalArgs, bool> OnChangeCurrentPage

Event Type

ReturningSignalHandler<Notebook, Notebook.ChangeCurrentPageSignalArgs, bool>

OnCreateWindow

public event ReturningSignalHandler<Notebook, Notebook.CreateWindowSignalArgs, Notebook?> OnCreateWindow

Event Type

ReturningSignalHandler<Notebook, Notebook.CreateWindowSignalArgs, Notebook>

OnFocusTab

public event ReturningSignalHandler<Notebook, Notebook.FocusTabSignalArgs, bool> OnFocusTab

Event Type

ReturningSignalHandler<Notebook, Notebook.FocusTabSignalArgs, bool>

OnMoveFocusOut

public event SignalHandler<Notebook, Notebook.MoveFocusOutSignalArgs> OnMoveFocusOut

Event Type

SignalHandler<Notebook, Notebook.MoveFocusOutSignalArgs>

OnPageAdded

public event SignalHandler<Notebook, Notebook.PageAddedSignalArgs> OnPageAdded

Event Type

SignalHandler<Notebook, Notebook.PageAddedSignalArgs>

OnPageRemoved

public event SignalHandler<Notebook, Notebook.PageRemovedSignalArgs> OnPageRemoved

Event Type

SignalHandler<Notebook, Notebook.PageRemovedSignalArgs>

OnPageReordered

public event SignalHandler<Notebook, Notebook.PageReorderedSignalArgs> OnPageReordered

Event Type

SignalHandler<Notebook, Notebook.PageReorderedSignalArgs>

OnReorderTab

public event ReturningSignalHandler<Notebook, Notebook.ReorderTabSignalArgs, bool> OnReorderTab

Event Type

ReturningSignalHandler<Notebook, Notebook.ReorderTabSignalArgs, bool>

OnSelectPage

public event ReturningSignalHandler<Notebook, Notebook.SelectPageSignalArgs, bool> OnSelectPage

Event Type

ReturningSignalHandler<Notebook, Notebook.SelectPageSignalArgs, bool>

OnSwitchPage

public event SignalHandler<Notebook, Notebook.SwitchPageSignalArgs> OnSwitchPage

Event Type

SignalHandler<Notebook, Notebook.SwitchPageSignalArgs>