Table of Contents

Class List

Namespace
GLib.Internal
Assembly
GLib-2.0.dll
public class List
Inheritance
List
Inherited Members

Methods

Alloc()

Calls native function g_list_alloc.

public static extern ListUnownedHandle Alloc()

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

Append(ListHandle, IntPtr)

Calls native function g_list_append.

public static extern ListUnownedHandle Append(ListHandle list, IntPtr data)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

Concat(ListHandle, ListHandle)

Calls native function g_list_concat.

public static extern ListUnownedHandle Concat(ListHandle list1, ListHandle list2)

Parameters

list1 ListHandle

Transfer ownership: None Nullable: False

list2 ListHandle

Transfer ownership: None Nullable: False

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

Copy(ListHandle)

Calls native function g_list_copy.

public static extern ListUnownedHandle Copy(ListHandle list)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

CopyDeep(ListHandle, CopyFunc, IntPtr)

Calls native function g_list_copy_deep. Version: 2.34

[Version("2.34")]
public static extern ListUnownedHandle CopyDeep(ListHandle list, CopyFunc func, IntPtr userData)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

func CopyFunc

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

Calls native function g_list_delete_link.

public static extern ListUnownedHandle DeleteLink(ListHandle list, ListHandle link)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

link ListHandle

Transfer ownership: None Nullable: False

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

Find(ListHandle, IntPtr)

Calls native function g_list_find.

public static extern ListUnownedHandle Find(ListHandle list, IntPtr data)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

FindCustom(ListHandle, IntPtr, CompareFunc)

Calls native function g_list_find_custom.

public static extern ListUnownedHandle FindCustom(ListHandle list, IntPtr data, CompareFunc func)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

func CompareFunc

Transfer ownership: None Nullable: False

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

First(ListHandle)

Calls native function g_list_first.

public static extern ListUnownedHandle First(ListHandle list)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

Foreach(ListHandle, Func, IntPtr)

Calls native function g_list_foreach.

public static extern void Foreach(ListHandle list, Func func, IntPtr userData)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

func Func

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

Free(ListHandle)

Calls native function g_list_free.

public static extern void Free(ListHandle list)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

Free1(ListHandle)

Calls native function g_list_free_1.

public static extern void Free1(ListHandle list)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

FreeFull(ListHandle, DestroyNotify)

Calls native function g_list_free_full. Version: 2.28

[Version("2.28")]
public static extern void FreeFull(ListHandle list, DestroyNotify freeFunc)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

freeFunc DestroyNotify

Transfer ownership: None Nullable: False

Index(ListHandle, IntPtr)

Calls native function g_list_index.

public static extern int Index(ListHandle list, IntPtr data)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

Returns

int

Transfer ownership: None Nullable: False

Insert(ListHandle, IntPtr, int)

Calls native function g_list_insert.

public static extern ListUnownedHandle Insert(ListHandle list, IntPtr data, int position)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

position int

Transfer ownership: None Nullable: False

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

InsertBefore(ListHandle, ListHandle, IntPtr)

Calls native function g_list_insert_before.

public static extern ListUnownedHandle InsertBefore(ListHandle list, ListHandle sibling, IntPtr data)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

sibling ListHandle

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

Calls native function g_list_insert_before_link. Version: 2.62

[Version("2.62")]
public static extern ListUnownedHandle InsertBeforeLink(ListHandle list, ListHandle sibling, ListHandle link)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

sibling ListHandle

Transfer ownership: None Nullable: True

link ListHandle

Transfer ownership: None Nullable: False

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

InsertSorted(ListHandle, IntPtr, CompareFunc)

Calls native function g_list_insert_sorted.

public static extern ListUnownedHandle InsertSorted(ListHandle list, IntPtr data, CompareFunc func)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

func CompareFunc

Transfer ownership: None Nullable: False

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

InsertSortedWithData(ListHandle, IntPtr, CompareDataFunc, IntPtr)

Calls native function g_list_insert_sorted_with_data. Version: 2.10

[Version("2.10")]
public static extern ListUnownedHandle InsertSortedWithData(ListHandle list, IntPtr data, CompareDataFunc func, IntPtr userData)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

func CompareDataFunc

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

Last(ListHandle)

Calls native function g_list_last.

public static extern ListUnownedHandle Last(ListHandle list)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

Length(ListHandle)

Calls native function g_list_length.

public static extern uint Length(ListHandle list)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

Nth(ListHandle, uint)

Calls native function g_list_nth.

public static extern ListUnownedHandle Nth(ListHandle list, uint n)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

n uint

Transfer ownership: None Nullable: False

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

NthData(ListHandle, uint)

Calls native function g_list_nth_data.

public static extern IntPtr NthData(ListHandle list, uint n)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

n uint

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

NthPrev(ListHandle, uint)

Calls native function g_list_nth_prev.

public static extern ListUnownedHandle NthPrev(ListHandle list, uint n)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

n uint

Transfer ownership: None Nullable: False

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

PopAllocator()

Calls native function g_list_pop_allocator.

public static extern void PopAllocator()

Position(ListHandle, ListHandle)

Calls native function g_list_position.

public static extern int Position(ListHandle list, ListHandle llink)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

llink ListHandle

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

Prepend(ListHandle, IntPtr)

Calls native function g_list_prepend.

public static extern ListUnownedHandle Prepend(ListHandle list, IntPtr data)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

PushAllocator(AllocatorHandle)

Calls native function g_list_push_allocator.

public static extern void PushAllocator(AllocatorHandle allocator)

Parameters

allocator AllocatorHandle

Transfer ownership: None Nullable: False

Remove(ListHandle, IntPtr)

Calls native function g_list_remove.

public static extern ListUnownedHandle Remove(ListHandle list, IntPtr data)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

RemoveAll(ListHandle, IntPtr)

Calls native function g_list_remove_all.

public static extern ListUnownedHandle RemoveAll(ListHandle list, IntPtr data)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

Calls native function g_list_remove_link.

public static extern ListUnownedHandle RemoveLink(ListHandle list, ListHandle llink)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

llink ListHandle

Transfer ownership: None Nullable: False

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

Reverse(ListHandle)

Calls native function g_list_reverse.

public static extern ListUnownedHandle Reverse(ListHandle list)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

Sort(ListHandle, CompareFunc)

Calls native function g_list_sort.

public static extern ListUnownedHandle Sort(ListHandle list, CompareFunc compareFunc)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

compareFunc CompareFunc

Transfer ownership: None Nullable: False

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

SortWithData(ListHandle, CompareDataFunc, IntPtr)

Calls native function g_list_sort_with_data.

public static extern ListUnownedHandle SortWithData(ListHandle list, CompareDataFunc compareFunc, IntPtr userData)

Parameters

list ListHandle

Transfer ownership: None Nullable: False

compareFunc CompareDataFunc

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False