Class RecentManager
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class RecentManager : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
RecentManager
- Implements
- Inherited Members
Constructors
RecentManager(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public RecentManager(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
RecentManager(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected RecentManager(CreationData data)
Parameters
dataCreationData
RecentManager(RecentManagerHandle)
protected RecentManager(RecentManagerHandle handle)
Parameters
handleRecentManagerHandle
Fields
ChangedSignal
Signal Descriptor for OnChanged.
public static readonly Signal<RecentManager> ChangedSignal
Field Value
FilenamePropertyDefinition
public static readonly Property<string?, RecentManager> FilenamePropertyDefinition
Field Value
SizePropertyDefinition
public static readonly Property<int, RecentManager> SizePropertyDefinition
Field Value
Properties
Filename
public string? Filename { get; }
Property Value
Size
public int Size { get; }
Property Value
Methods
AddFull(string, RecentData)
public bool AddFull(string uri, RecentData recentData)
Parameters
uristringrecentDataRecentData
Returns
AddItem(string)
public bool AddItem(string uri)
Parameters
uristring
Returns
GetDefault()
public static RecentManager GetDefault()
Returns
GetGType()
public static Type GetGType()
Returns
GetItems()
public List GetItems()
Returns
HasItem(string)
public bool HasItem(string uri)
Parameters
uristring
Returns
LookupItem(string)
public RecentInfo? LookupItem(string uri)
Parameters
uristring
Returns
MoveItem(string, string?)
public bool MoveItem(string uri, string? newUri)
Parameters
Returns
New()
public static RecentManager New()
Returns
NewFromPointer(nint, bool)
Creates a new managed RecentManager instance for a given pointer.
public static RecentManager NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new RecentManager and sets the properties specified by the construct arguments.
public static RecentManager NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
PurgeItems()
public int PurgeItems()
Returns
RemoveItem(string)
public bool RemoveItem(string uri)
Parameters
uristring
Returns
Events
OnChanged
public event SignalHandler<RecentManager> OnChanged