Table of Contents

Class ListBox

Namespace
Gtk.Internal
Assembly
Gtk-4.0.dll
public class ListBox
Inheritance
ListBox
Inherited Members

Methods

Append(IntPtr, IntPtr)

Calls native method gtk_list_box_append.

public static extern void Append(IntPtr box, IntPtr child)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

child IntPtr

Transfer ownership: None Nullable: False

BindModel(IntPtr, IntPtr, ListBoxCreateWidgetFunc, IntPtr, DestroyNotify)

Calls native method gtk_list_box_bind_model.

public static extern void BindModel(IntPtr box, IntPtr model, ListBoxCreateWidgetFunc createWidgetFunc, IntPtr userData, DestroyNotify userDataFreeFunc)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

model IntPtr

Transfer ownership: None Nullable: True

createWidgetFunc ListBoxCreateWidgetFunc

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

userDataFreeFunc DestroyNotify

Transfer ownership: None Nullable: False

DragHighlightRow(IntPtr, IntPtr)

Calls native method gtk_list_box_drag_highlight_row.

public static extern void DragHighlightRow(IntPtr box, IntPtr row)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

row IntPtr

Transfer ownership: None Nullable: False

DragUnhighlightRow(IntPtr)

Calls native method gtk_list_box_drag_unhighlight_row.

public static extern void DragUnhighlightRow(IntPtr box)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

GetActivateOnSingleClick(IntPtr)

Calls native method gtk_list_box_get_activate_on_single_click.

public static extern bool GetActivateOnSingleClick(IntPtr box)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetAdjustment(IntPtr)

Calls native method gtk_list_box_get_adjustment.

public static extern IntPtr GetAdjustment(IntPtr box)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetGType()

Calls native function gtk_list_box_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetRowAtIndex(IntPtr, int)

Calls native method gtk_list_box_get_row_at_index.

public static extern IntPtr GetRowAtIndex(IntPtr box, int index)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

index int

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetRowAtY(IntPtr, int)

Calls native method gtk_list_box_get_row_at_y.

public static extern IntPtr GetRowAtY(IntPtr box, int y)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

y int

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetSelectedRow(IntPtr)

Calls native method gtk_list_box_get_selected_row.

public static extern IntPtr GetSelectedRow(IntPtr box)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetSelectionMode(IntPtr)

Calls native method gtk_list_box_get_selection_mode.

public static extern SelectionMode GetSelectionMode(IntPtr box)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

Returns

SelectionMode

Transfer ownership: None Nullable: False

GetShowSeparators(IntPtr)

Calls native method gtk_list_box_get_show_separators.

public static extern bool GetShowSeparators(IntPtr box)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Insert(IntPtr, IntPtr, int)

Calls native method gtk_list_box_insert.

public static extern void Insert(IntPtr box, IntPtr child, int position)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

child IntPtr

Transfer ownership: None Nullable: False

position int

Transfer ownership: None Nullable: False

InvalidateFilter(IntPtr)

Calls native method gtk_list_box_invalidate_filter.

public static extern void InvalidateFilter(IntPtr box)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

InvalidateHeaders(IntPtr)

Calls native method gtk_list_box_invalidate_headers.

public static extern void InvalidateHeaders(IntPtr box)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

InvalidateSort(IntPtr)

Calls native method gtk_list_box_invalidate_sort.

public static extern void InvalidateSort(IntPtr box)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

New()

Calls native constructor gtk_list_box_new.

public static extern IntPtr New()

Returns

IntPtr

Transfer ownership: None Nullable: False

Prepend(IntPtr, IntPtr)

Calls native method gtk_list_box_prepend.

public static extern void Prepend(IntPtr box, IntPtr child)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

child IntPtr

Transfer ownership: None Nullable: False

Remove(IntPtr, IntPtr)

Calls native method gtk_list_box_remove.

public static extern void Remove(IntPtr box, IntPtr child)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

child IntPtr

Transfer ownership: None Nullable: False

RemoveAll(IntPtr)

Calls native method gtk_list_box_remove_all. Version: 4.12

[Version("4.12")]
public static extern void RemoveAll(IntPtr box)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

SelectAll(IntPtr)

Calls native method gtk_list_box_select_all.

public static extern void SelectAll(IntPtr box)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

SelectRow(IntPtr, IntPtr)

Calls native method gtk_list_box_select_row.

public static extern void SelectRow(IntPtr box, IntPtr row)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

row IntPtr

Transfer ownership: None Nullable: True

SelectedForeach(IntPtr, ListBoxForeachFunc, IntPtr)

Calls native method gtk_list_box_selected_foreach.

public static extern void SelectedForeach(IntPtr box, ListBoxForeachFunc func, IntPtr data)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

func ListBoxForeachFunc

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

SetActivateOnSingleClick(IntPtr, bool)

Calls native method gtk_list_box_set_activate_on_single_click.

public static extern void SetActivateOnSingleClick(IntPtr box, bool single)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

single bool

Transfer ownership: None Nullable: False

SetAdjustment(IntPtr, IntPtr)

Calls native method gtk_list_box_set_adjustment.

public static extern void SetAdjustment(IntPtr box, IntPtr adjustment)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

adjustment IntPtr

Transfer ownership: None Nullable: True

SetFilterFunc(IntPtr, ListBoxFilterFunc, IntPtr, DestroyNotify)

Calls native method gtk_list_box_set_filter_func.

public static extern void SetFilterFunc(IntPtr box, ListBoxFilterFunc filterFunc, IntPtr userData, DestroyNotify destroy)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

filterFunc ListBoxFilterFunc

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

destroy DestroyNotify

Transfer ownership: None Nullable: False

SetHeaderFunc(IntPtr, ListBoxUpdateHeaderFunc, IntPtr, DestroyNotify)

Calls native method gtk_list_box_set_header_func.

public static extern void SetHeaderFunc(IntPtr box, ListBoxUpdateHeaderFunc updateHeader, IntPtr userData, DestroyNotify destroy)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

updateHeader ListBoxUpdateHeaderFunc

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

destroy DestroyNotify

Transfer ownership: None Nullable: False

SetPlaceholder(IntPtr, IntPtr)

Calls native method gtk_list_box_set_placeholder.

public static extern void SetPlaceholder(IntPtr box, IntPtr placeholder)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

placeholder IntPtr

Transfer ownership: None Nullable: True

SetSelectionMode(IntPtr, SelectionMode)

Calls native method gtk_list_box_set_selection_mode.

public static extern void SetSelectionMode(IntPtr box, SelectionMode mode)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

mode SelectionMode

Transfer ownership: None Nullable: False

SetShowSeparators(IntPtr, bool)

Calls native method gtk_list_box_set_show_separators.

public static extern void SetShowSeparators(IntPtr box, bool showSeparators)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

showSeparators bool

Transfer ownership: None Nullable: False

SetSortFunc(IntPtr, ListBoxSortFunc, IntPtr, DestroyNotify)

Calls native method gtk_list_box_set_sort_func.

public static extern void SetSortFunc(IntPtr box, ListBoxSortFunc sortFunc, IntPtr userData, DestroyNotify destroy)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

sortFunc ListBoxSortFunc

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

destroy DestroyNotify

Transfer ownership: None Nullable: False

UnselectAll(IntPtr)

Calls native method gtk_list_box_unselect_all.

public static extern void UnselectAll(IntPtr box)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

UnselectRow(IntPtr, IntPtr)

Calls native method gtk_list_box_unselect_row.

public static extern void UnselectRow(IntPtr box, IntPtr row)

Parameters

box IntPtr

Transfer ownership: None Nullable: False

row IntPtr

Transfer ownership: None Nullable: False