Class AppLaunchContext
- Namespace
- Gdk
- Assembly
- Gdk-4.0.dll
public class AppLaunchContext : AppLaunchContext, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
AppLaunchContext
- Implements
- Inherited Members
Constructors
AppLaunchContext(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 AppLaunchContext(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
AppLaunchContext(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected AppLaunchContext(CreationData data)
Parameters
dataCreationData
AppLaunchContext(AppLaunchContextHandle)
protected AppLaunchContext(AppLaunchContextHandle handle)
Parameters
handleAppLaunchContextHandle
Fields
DisplayPropertyDefinition
public static readonly Property<Display?, AppLaunchContext> DisplayPropertyDefinition
Field Value
Properties
Display
public Display? Display { get; }
Property Value
Methods
GetDisplay()
public Display GetDisplay()
Returns
GetGType()
public static Type GetGType()
Returns
NewFromPointer(nint, bool)
Creates a new managed AppLaunchContext instance for a given pointer.
public static AppLaunchContext NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new AppLaunchContext and sets the properties specified by the construct arguments.
public static AppLaunchContext NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetDesktop(int)
public void SetDesktop(int desktop)
Parameters
desktopint
SetIcon(Icon?)
public void SetIcon(Icon? icon)
Parameters
iconIcon
SetIconName(string?)
public void SetIconName(string? iconName)
Parameters
iconNamestring
SetTimestamp(uint)
public void SetTimestamp(uint timestamp)
Parameters
timestampuint