Table of Contents

Class RecentManager

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

Methods

AddFull(IntPtr, NonNullableUtf8StringHandle, RecentDataHandle)

Calls native method gtk_recent_manager_add_full.

public static extern bool AddFull(IntPtr manager, NonNullableUtf8StringHandle uri, RecentDataHandle recentData)

Parameters

manager IntPtr

Transfer ownership: None Nullable: False

uri NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

recentData RecentDataHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

AddItem(IntPtr, NonNullableUtf8StringHandle)

Calls native method gtk_recent_manager_add_item.

public static extern bool AddItem(IntPtr manager, NonNullableUtf8StringHandle uri)

Parameters

manager IntPtr

Transfer ownership: None Nullable: False

uri NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetDefault()

Calls native function gtk_recent_manager_get_default.

public static extern IntPtr GetDefault()

Returns

IntPtr

Transfer ownership: None Nullable: False

GetGType()

Calls native function gtk_recent_manager_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetItems(IntPtr)

Calls native method gtk_recent_manager_get_items.

public static extern ListOwnedHandle GetItems(IntPtr manager)

Parameters

manager IntPtr

Transfer ownership: None Nullable: False

Returns

ListOwnedHandle

Transfer ownership: Full Nullable: False

HasItem(IntPtr, NonNullableUtf8StringHandle)

Calls native method gtk_recent_manager_has_item.

public static extern bool HasItem(IntPtr manager, NonNullableUtf8StringHandle uri)

Parameters

manager IntPtr

Transfer ownership: None Nullable: False

uri NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

LookupItem(IntPtr, NonNullableUtf8StringHandle, out ErrorOwnedHandle)

Calls native method gtk_recent_manager_lookup_item.

public static extern RecentInfoOwnedHandle LookupItem(IntPtr manager, NonNullableUtf8StringHandle uri, out ErrorOwnedHandle error)

Parameters

manager IntPtr

Transfer ownership: None Nullable: False

uri NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

RecentInfoOwnedHandle

Transfer ownership: Full Nullable: True

MoveItem(IntPtr, NonNullableUtf8StringHandle, NullableUtf8StringHandle, out ErrorOwnedHandle)

Calls native method gtk_recent_manager_move_item.

public static extern bool MoveItem(IntPtr manager, NonNullableUtf8StringHandle uri, NullableUtf8StringHandle newUri, out ErrorOwnedHandle error)

Parameters

manager IntPtr

Transfer ownership: None Nullable: False

uri NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

newUri NullableUtf8StringHandle

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

New()

Calls native constructor gtk_recent_manager_new.

public static extern IntPtr New()

Returns

IntPtr

Transfer ownership: Full Nullable: False

PurgeItems(IntPtr, out ErrorOwnedHandle)

Calls native method gtk_recent_manager_purge_items.

public static extern int PurgeItems(IntPtr manager, out ErrorOwnedHandle error)

Parameters

manager IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

int

Transfer ownership: None Nullable: False

RemoveItem(IntPtr, NonNullableUtf8StringHandle, out ErrorOwnedHandle)

Calls native method gtk_recent_manager_remove_item.

public static extern bool RemoveItem(IntPtr manager, NonNullableUtf8StringHandle uri, out ErrorOwnedHandle error)

Parameters

manager IntPtr

Transfer ownership: None Nullable: False

uri NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False