Class CustomFilter
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class CustomFilter : Filter, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
CustomFilter
- Implements
- Inherited Members
Constructors
CustomFilter(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 CustomFilter(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
CustomFilter(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected CustomFilter(CreationData data)
Parameters
dataCreationData
CustomFilter(CustomFilterHandle)
protected CustomFilter(CustomFilterHandle handle)
Parameters
handleCustomFilterHandle
Methods
GetGType()
public static Type GetGType()
Returns
New(CustomFilterFunc?)
public static CustomFilter New(CustomFilterFunc? matchFunc)
Parameters
matchFuncCustomFilterFuncA callback. If it raises an exception the application will terminate. To receive this unhandled exception see SetHandler(Action<Exception>?).
Returns
NewFromPointer(nint, bool)
Creates a new managed CustomFilter instance for a given pointer.
public static CustomFilter NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new CustomFilter and sets the properties specified by the construct arguments.
public static CustomFilter NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetFilterFunc(CustomFilterFunc?)
public void SetFilterFunc(CustomFilterFunc? matchFunc)
Parameters
matchFuncCustomFilterFuncA callback. If it raises an exception the application will terminate. To receive this unhandled exception see SetHandler(Action<Exception>?).