Class EventControllerKey
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class EventControllerKey : EventController, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
EventControllerKey
- Implements
- Inherited Members
Constructors
EventControllerKey(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 EventControllerKey(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
EventControllerKey(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected EventControllerKey(CreationData data)
Parameters
dataCreationData
EventControllerKey(EventControllerKeyHandle)
protected EventControllerKey(EventControllerKeyHandle handle)
Parameters
handleEventControllerKeyHandle
Fields
ImUpdateSignal
Signal Descriptor for OnImUpdate.
public static readonly Signal<EventControllerKey> ImUpdateSignal
Field Value
KeyPressedSignal
Signal Descriptor for OnKeyPressed.
public static readonly ReturningSignal<EventControllerKey, EventControllerKey.KeyPressedSignalArgs, bool> KeyPressedSignal
Field Value
KeyReleasedSignal
Signal Descriptor for OnKeyReleased.
public static readonly Signal<EventControllerKey, EventControllerKey.KeyReleasedSignalArgs> KeyReleasedSignal
Field Value
ModifiersSignal
Signal Descriptor for OnModifiers.
public static readonly ReturningSignal<EventControllerKey, EventControllerKey.ModifiersSignalArgs, bool> ModifiersSignal
Field Value
Methods
Forward(Widget)
public bool Forward(Widget widget)
Parameters
widgetWidget
Returns
GetGType()
public static Type GetGType()
Returns
GetGroup()
public uint GetGroup()
Returns
GetImContext()
public IMContext? GetImContext()
Returns
New()
public static EventControllerKey New()
Returns
NewFromPointer(nint, bool)
Creates a new managed EventControllerKey instance for a given pointer.
public static EventControllerKey NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new EventControllerKey and sets the properties specified by the construct arguments.
public static EventControllerKey NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetImContext(IMContext?)
public void SetImContext(IMContext? imContext)
Parameters
imContextIMContext
Events
OnImUpdate
public event SignalHandler<EventControllerKey> OnImUpdate
Event Type
OnKeyPressed
public event ReturningSignalHandler<EventControllerKey, EventControllerKey.KeyPressedSignalArgs, bool> OnKeyPressed
Event Type
OnKeyReleased
public event SignalHandler<EventControllerKey, EventControllerKey.KeyReleasedSignalArgs> OnKeyReleased
Event Type
OnModifiers
public event ReturningSignalHandler<EventControllerKey, EventControllerKey.ModifiersSignalArgs, bool> OnModifiers