Table of Contents

Class EventController

Namespace
Gtk.Internal
Assembly
Gtk-4.0.dll
public class EventController
Inheritance
EventController
Inherited Members

Methods

GetCurrentEvent(IntPtr)

Calls native method gtk_event_controller_get_current_event.

public static extern IntPtr GetCurrentEvent(IntPtr controller)

Parameters

controller IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetCurrentEventDevice(IntPtr)

Calls native method gtk_event_controller_get_current_event_device.

public static extern IntPtr GetCurrentEventDevice(IntPtr controller)

Parameters

controller IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetCurrentEventState(IntPtr)

Calls native method gtk_event_controller_get_current_event_state.

public static extern ModifierType GetCurrentEventState(IntPtr controller)

Parameters

controller IntPtr

Transfer ownership: None Nullable: False

Returns

ModifierType

Transfer ownership: None Nullable: False

GetCurrentEventTime(IntPtr)

Calls native method gtk_event_controller_get_current_event_time.

public static extern uint GetCurrentEventTime(IntPtr controller)

Parameters

controller IntPtr

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

GetGType()

Calls native function gtk_event_controller_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetName(IntPtr)

Calls native method gtk_event_controller_get_name.

public static extern NullableUtf8StringUnownedHandle GetName(IntPtr controller)

Parameters

controller IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetPropagationLimit(IntPtr)

Calls native method gtk_event_controller_get_propagation_limit.

public static extern PropagationLimit GetPropagationLimit(IntPtr controller)

Parameters

controller IntPtr

Transfer ownership: None Nullable: False

Returns

PropagationLimit

Transfer ownership: None Nullable: False

GetPropagationPhase(IntPtr)

Calls native method gtk_event_controller_get_propagation_phase.

public static extern PropagationPhase GetPropagationPhase(IntPtr controller)

Parameters

controller IntPtr

Transfer ownership: None Nullable: False

Returns

PropagationPhase

Transfer ownership: None Nullable: False

GetWidget(IntPtr)

Calls native method gtk_event_controller_get_widget.

public static extern IntPtr GetWidget(IntPtr controller)

Parameters

controller IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

Reset(IntPtr)

Calls native method gtk_event_controller_reset.

public static extern void Reset(IntPtr controller)

Parameters

controller IntPtr

Transfer ownership: None Nullable: False

SetName(IntPtr, NullableUtf8StringHandle)

Calls native method gtk_event_controller_set_name.

public static extern void SetName(IntPtr controller, NullableUtf8StringHandle name)

Parameters

controller IntPtr

Transfer ownership: None Nullable: False

name NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetPropagationLimit(IntPtr, PropagationLimit)

Calls native method gtk_event_controller_set_propagation_limit.

public static extern void SetPropagationLimit(IntPtr controller, PropagationLimit limit)

Parameters

controller IntPtr

Transfer ownership: None Nullable: False

limit PropagationLimit

Transfer ownership: None Nullable: False

SetPropagationPhase(IntPtr, PropagationPhase)

Calls native method gtk_event_controller_set_propagation_phase.

public static extern void SetPropagationPhase(IntPtr controller, PropagationPhase phase)

Parameters

controller IntPtr

Transfer ownership: None Nullable: False

phase PropagationPhase

Transfer ownership: None Nullable: False

SetStaticName(IntPtr, NullableUtf8StringHandle)

Calls native method gtk_event_controller_set_static_name. Version: 4.8

[Version("4.8")]
public static extern void SetStaticName(IntPtr controller, NullableUtf8StringHandle name)

Parameters

controller IntPtr

Transfer ownership: None Nullable: False

name NullableUtf8StringHandle

Transfer ownership: None Nullable: True