Class EventController
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class EventController : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
EventController
- Implements
- Derived
- Inherited Members
Constructors
EventController(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 EventController(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
EventController(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected EventController(CreationData data)
Parameters
dataCreationData
EventController(EventControllerHandle)
protected EventController(EventControllerHandle handle)
Parameters
handleEventControllerHandle
Fields
NamePropertyDefinition
public static readonly Property<string?, EventController> NamePropertyDefinition
Field Value
PropagationLimitPropertyDefinition
public static readonly Property<PropagationLimit, EventController> PropagationLimitPropertyDefinition
Field Value
PropagationPhasePropertyDefinition
public static readonly Property<PropagationPhase, EventController> PropagationPhasePropertyDefinition
Field Value
WidgetPropertyDefinition
public static readonly Property<Widget?, EventController> WidgetPropertyDefinition
Field Value
Properties
Name
public string? Name { get; set; }
Property Value
PropagationLimit
public PropagationLimit PropagationLimit { get; set; }
Property Value
PropagationPhase
public PropagationPhase PropagationPhase { get; set; }
Property Value
Widget
public Widget? Widget { get; }
Property Value
Methods
GetCurrentEvent()
public Event? GetCurrentEvent()
Returns
GetCurrentEventDevice()
public Device? GetCurrentEventDevice()
Returns
GetCurrentEventState()
public ModifierType GetCurrentEventState()
Returns
GetCurrentEventTime()
public uint GetCurrentEventTime()
Returns
GetGType()
public static Type GetGType()
Returns
GetName()
public string? GetName()
Returns
GetPropagationLimit()
public PropagationLimit GetPropagationLimit()
Returns
GetPropagationPhase()
public PropagationPhase GetPropagationPhase()
Returns
GetWidget()
public Widget? GetWidget()
Returns
NewFromPointer(nint, bool)
Creates a new managed EventController instance for a given pointer.
public static EventController NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new EventController and sets the properties specified by the construct arguments.
public static EventController NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Reset()
public void Reset()
SetName(string?)
public void SetName(string? name)
Parameters
namestring
SetPropagationLimit(PropagationLimit)
public void SetPropagationLimit(PropagationLimit limit)
Parameters
limitPropagationLimit
SetPropagationPhase(PropagationPhase)
public void SetPropagationPhase(PropagationPhase phase)
Parameters
phasePropagationPhase
SetStaticName(string?)
[Version("4.8")]
public void SetStaticName(string? name)
Parameters
namestring