Table of Contents

Class Event

Namespace
Gdk.Internal
Assembly
Gdk-4.0.dll
public class Event
Inheritance
Event
Inherited Members

Methods

GetAngle(IntPtr, IntPtr, out double)

Calls native method gdk_events_get_angle.

public static extern bool GetAngle(IntPtr event1, IntPtr event2, out double angle)

Parameters

event1 IntPtr

Transfer ownership: None Nullable: False

event2 IntPtr

Transfer ownership: None Nullable: False

angle double

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetAxes(IntPtr, out double[], out uint)

Calls native method gdk_event_get_axes.

public static extern bool GetAxes(IntPtr @event, out double[] axes, out uint nAxes)

Parameters

event IntPtr
axes double[]

Transfer ownership: None Nullable: False

nAxes uint

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetAxis(IntPtr, AxisUse, out double)

Calls native method gdk_event_get_axis.

public static extern bool GetAxis(IntPtr @event, AxisUse axisUse, out double value)

Parameters

event IntPtr
axisUse AxisUse

Transfer ownership: None Nullable: False

value double

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetCenter(IntPtr, IntPtr, out double, out double)

Calls native method gdk_events_get_center.

public static extern bool GetCenter(IntPtr event1, IntPtr event2, out double x, out double y)

Parameters

event1 IntPtr

Transfer ownership: None Nullable: False

event2 IntPtr

Transfer ownership: None Nullable: False

x double

Transfer ownership: Full Nullable: False

y double

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetDevice(IntPtr)

Calls native method gdk_event_get_device.

public static extern IntPtr GetDevice(IntPtr @event)

Parameters

event IntPtr

Returns

IntPtr

Transfer ownership: None Nullable: True

GetDeviceTool(IntPtr)

Calls native method gdk_event_get_device_tool.

public static extern IntPtr GetDeviceTool(IntPtr @event)

Parameters

event IntPtr

Returns

IntPtr

Transfer ownership: None Nullable: True

GetDisplay(IntPtr)

Calls native method gdk_event_get_display.

public static extern IntPtr GetDisplay(IntPtr @event)

Parameters

event IntPtr

Returns

IntPtr

Transfer ownership: None Nullable: True

GetDistance(IntPtr, IntPtr, out double)

Calls native method gdk_events_get_distance.

public static extern bool GetDistance(IntPtr event1, IntPtr event2, out double distance)

Parameters

event1 IntPtr

Transfer ownership: None Nullable: False

event2 IntPtr

Transfer ownership: None Nullable: False

distance double

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetEventSequence(IntPtr)

Calls native method gdk_event_get_event_sequence.

public static extern EventSequenceUnownedHandle GetEventSequence(IntPtr @event)

Parameters

event IntPtr

Returns

EventSequenceUnownedHandle

Transfer ownership: None Nullable: False

GetEventType(IntPtr)

Calls native method gdk_event_get_event_type.

public static extern EventType GetEventType(IntPtr @event)

Parameters

event IntPtr

Returns

EventType

Transfer ownership: None Nullable: False

GetGType()

Calls native function gdk_event_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetModifierState(IntPtr)

Calls native method gdk_event_get_modifier_state.

public static extern ModifierType GetModifierState(IntPtr @event)

Parameters

event IntPtr

Returns

ModifierType

Transfer ownership: None Nullable: False

GetPointerEmulated(IntPtr)

Calls native method gdk_event_get_pointer_emulated.

public static extern bool GetPointerEmulated(IntPtr @event)

Parameters

event IntPtr

Returns

bool

Transfer ownership: None Nullable: False

GetPosition(IntPtr, out double, out double)

Calls native method gdk_event_get_position.

public static extern bool GetPosition(IntPtr @event, out double x, out double y)

Parameters

event IntPtr
x double

Transfer ownership: Full Nullable: False

y double

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetSeat(IntPtr)

Calls native method gdk_event_get_seat.

public static extern IntPtr GetSeat(IntPtr @event)

Parameters

event IntPtr

Returns

IntPtr

Transfer ownership: None Nullable: True

GetSurface(IntPtr)

Calls native method gdk_event_get_surface.

public static extern IntPtr GetSurface(IntPtr @event)

Parameters

event IntPtr

Returns

IntPtr

Transfer ownership: None Nullable: True

GetTime(IntPtr)

Calls native method gdk_event_get_time.

public static extern uint GetTime(IntPtr @event)

Parameters

event IntPtr

Returns

uint

Transfer ownership: None Nullable: False

Ref(IntPtr)

Calls native method gdk_event_ref.

public static extern IntPtr Ref(IntPtr @event)

Parameters

event IntPtr

Returns

IntPtr

Transfer ownership: Full Nullable: False

TriggersContextMenu(IntPtr)

Calls native method gdk_event_triggers_context_menu.

public static extern bool TriggersContextMenu(IntPtr @event)

Parameters

event IntPtr

Returns

bool

Transfer ownership: None Nullable: False

Unref(IntPtr)

Calls native method gdk_event_unref.

public static extern void Unref(IntPtr @event)

Parameters

event IntPtr