100 references to UnsafeNativeMethods
PresentationCore (100)
System\Windows\Input\Stylus\Pointer\PointerData.cs (1)
6
using static MS.Win32.Pointer.
UnsafeNativeMethods
;
System\Windows\Input\Stylus\Pointer\PointerInteractionEngine.cs (39)
36
private static List<
UnsafeNativeMethods
.INTERACTION_CONTEXT_CONFIGURATION> DefaultConfiguration =
37
new List<
UnsafeNativeMethods
.INTERACTION_CONTEXT_CONFIGURATION>()
39
new
UnsafeNativeMethods
.INTERACTION_CONTEXT_CONFIGURATION()
41
enable =
UnsafeNativeMethods
.INTERACTION_CONFIGURATION_FLAGS.INTERACTION_CONFIGURATION_FLAG_TAP,
42
interactionId =
UnsafeNativeMethods
.INTERACTION_ID.INTERACTION_ID_TAP
44
new
UnsafeNativeMethods
.INTERACTION_CONTEXT_CONFIGURATION()
46
enable =
UnsafeNativeMethods
.INTERACTION_CONFIGURATION_FLAGS.INTERACTION_CONFIGURATION_FLAG_HOLD,
47
interactionId =
UnsafeNativeMethods
.INTERACTION_ID.INTERACTION_ID_HOLD
49
new
UnsafeNativeMethods
.INTERACTION_CONTEXT_CONFIGURATION()
51
enable =
UnsafeNativeMethods
.INTERACTION_CONFIGURATION_FLAGS.INTERACTION_CONFIGURATION_FLAG_SECONDARY_TAP,
52
interactionId =
UnsafeNativeMethods
.INTERACTION_ID.INTERACTION_ID_SECONDARY_TAP
54
new
UnsafeNativeMethods
.INTERACTION_CONTEXT_CONFIGURATION()
56
enable =
UnsafeNativeMethods
.INTERACTION_CONFIGURATION_FLAGS.INTERACTION_CONFIGURATION_FLAG_MANIPULATION
57
|
UnsafeNativeMethods
.INTERACTION_CONFIGURATION_FLAGS.INTERACTION_CONFIGURATION_FLAG_MANIPULATION_TRANSLATION_INERTIA
58
|
UnsafeNativeMethods
.INTERACTION_CONFIGURATION_FLAGS.INTERACTION_CONFIGURATION_FLAG_MANIPULATION_TRANSLATION_X
59
|
UnsafeNativeMethods
.INTERACTION_CONFIGURATION_FLAGS.INTERACTION_CONFIGURATION_FLAG_MANIPULATION_TRANSLATION_Y,
60
interactionId =
UnsafeNativeMethods
.INTERACTION_ID.INTERACTION_ID_MANIPULATION
96
private
UnsafeNativeMethods
.INTERACTION_CONTEXT_OUTPUT_CALLBACK _callbackDelegate;
150
internal PointerInteractionEngine(PointerStylusDevice stylusDevice, List<
UnsafeNativeMethods
.INTERACTION_CONTEXT_CONFIGURATION> configuration = null)
163
UnsafeNativeMethods
.CreateInteractionContext(out interactionContext);
174
UnsafeNativeMethods
.SetPropertyInteractionContext(_interactionContext,
175
UnsafeNativeMethods
.INTERACTION_CONTEXT_PROPERTY.INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS,
179
UnsafeNativeMethods
.SetPropertyInteractionContext(_interactionContext,
180
UnsafeNativeMethods
.INTERACTION_CONTEXT_PROPERTY.INTERACTION_CONTEXT_PROPERTY_MEASUREMENT_UNITS,
181
(UInt32)
UnsafeNativeMethods
.InteractionMeasurementUnits.Screen);
184
UnsafeNativeMethods
.SetInteractionConfigurationInteractionContext(_interactionContext, (uint)configuration.Count, configuration.ToArray());
190
UnsafeNativeMethods
.RegisterOutputCallbackInteractionContext(_interactionContext, _callbackDelegate);
211
UnsafeNativeMethods
.DestroyInteractionContext(_interactionContext);
244
UnsafeNativeMethods
.BufferPointerPacketsInteractionContext(_interactionContext, 1, new
UnsafeNativeMethods
.POINTER_INFO[] { _stylusDevice.CurrentPointerInfo });
254
UnsafeNativeMethods
.ProcessBufferedPacketsInteractionContext(_interactionContext);
270
private void Callback(IntPtr clientData, ref
UnsafeNativeMethods
.INTERACTION_CONTEXT_OUTPUT output)
277
case
UnsafeNativeMethods
.INTERACTION_ID.INTERACTION_ID_TAP:
282
case
UnsafeNativeMethods
.INTERACTION_ID.INTERACTION_ID_SECONDARY_TAP:
287
case
UnsafeNativeMethods
.INTERACTION_ID.INTERACTION_ID_HOLD:
291
if (output.interactionFlags.HasFlag(
UnsafeNativeMethods
.INTERACTION_FLAGS.INTERACTION_FLAG_BEGIN))
301
case
UnsafeNativeMethods
.INTERACTION_ID.INTERACTION_ID_MANIPULATION:
461
private SystemGesture DetectDragOrFlick(
UnsafeNativeMethods
.INTERACTION_CONTEXT_OUTPUT output)
465
if (output.interactionFlags.HasFlag(
UnsafeNativeMethods
.INTERACTION_FLAGS.INTERACTION_FLAG_END))
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (22)
85
private
UnsafeNativeMethods
.POINTER_DEVICE_CURSOR_INFO _cursorInfo = new
UnsafeNativeMethods
.POINTER_DEVICE_CURSOR_INFO();
106
internal PointerStylusDevice(PointerTabletDevice tabletDevice,
UnsafeNativeMethods
.POINTER_DEVICE_CURSOR_INFO cursorInfo)
188
internal
UnsafeNativeMethods
.POINTER_INFO CurrentPointerInfo { get { return _pointerData.Info; } }
208
return _pointerData?.Info.pointerFlags.HasFlag(
UnsafeNativeMethods
.POINTER_FLAGS.POINTER_FLAG_NEW) ?? false;
216
return _pointerData?.Info.pointerFlags.HasFlag(
UnsafeNativeMethods
.POINTER_FLAGS.POINTER_FLAG_INCONTACT) ?? false;
224
return _pointerData?.Info.pointerFlags.HasFlag(
UnsafeNativeMethods
.POINTER_FLAGS.POINTER_FLAG_PRIMARY) ?? false;
232
return _pointerData?.Info.pointerFlags.HasFlag(
UnsafeNativeMethods
.POINTER_FLAGS.POINTER_FLAG_FIRSTBUTTON) ?? false;
240
return _pointerData?.Info.pointerFlags.HasFlag(
UnsafeNativeMethods
.POINTER_FLAGS.POINTER_FLAG_SECONDBUTTON) ?? false;
248
return _pointerData?.Info.pointerFlags.HasFlag(
UnsafeNativeMethods
.POINTER_FLAGS.POINTER_FLAG_THIRDBUTTON) ?? false;
256
return _pointerData?.Info.pointerFlags.HasFlag(
UnsafeNativeMethods
.POINTER_FLAGS.POINTER_FLAG_FOURTHBUTTON) ?? false;
264
return _pointerData?.Info.pointerFlags.HasFlag(
UnsafeNativeMethods
.POINTER_FLAGS.POINTER_FLAG_FIFTHBUTTON) ?? false;
280
return _pointerData?.Info.pointerFlags.HasFlag(
UnsafeNativeMethods
.POINTER_FLAGS.POINTER_FLAG_DOWN) ?? false;
288
return _pointerData?.Info.pointerFlags.HasFlag(
UnsafeNativeMethods
.POINTER_FLAGS.POINTER_FLAG_UPDATE) ?? false;
296
return _pointerData?.Info.pointerFlags.HasFlag(
UnsafeNativeMethods
.POINTER_FLAGS.POINTER_FLAG_UP) ?? false;
304
return _pointerData?.Info.pointerFlags.HasFlag(
UnsafeNativeMethods
.POINTER_FLAGS.POINTER_FLAG_CAPTURECHANGED) ?? false;
312
return _pointerData?.Info.pointerFlags.HasFlag(
UnsafeNativeMethods
.POINTER_FLAGS.POINTER_FLAG_HASTRANSFORM) ?? false;
416
return (_cursorInfo.cursor ==
UnsafeNativeMethods
.POINTER_DEVICE_CURSOR_TYPE.POINTER_DEVICE_CURSOR_TYPE_ERASER)
444
return !(_pointerData?.Info.pointerFlags.HasFlag(
UnsafeNativeMethods
.POINTER_FLAGS.POINTER_FLAG_INCONTACT) ?? false)
445
&& (_pointerData?.Info.pointerFlags.HasFlag(
UnsafeNativeMethods
.POINTER_FLAGS.POINTER_FLAG_INRANGE) ?? false);
457
&& (_pointerData?.PenInfo.penFlags.HasFlag(
UnsafeNativeMethods
.PEN_FLAGS.PEN_FLAG_INVERTED) ?? false);
468
return _pointerData?.Info.pointerFlags.HasFlag(
UnsafeNativeMethods
.POINTER_FLAGS.POINTER_FLAG_INRANGE) ?? false;
System\Windows\Input\Stylus\Pointer\PointerStylusPointPropertyInfoHelper.cs (1)
54
internal static StylusPointPropertyInfo CreatePropertyInfo(
UnsafeNativeMethods
.POINTER_DEVICE_PROPERTY prop)
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (4)
98
if (
UnsafeNativeMethods
.GetPointerDeviceCursors(_deviceInfo.Device, ref cursorCount, null))
100
UnsafeNativeMethods
.POINTER_DEVICE_CURSOR_INFO[] cursors = new
UnsafeNativeMethods
.POINTER_DEVICE_CURSOR_INFO[cursorCount];
102
if (
UnsafeNativeMethods
.GetPointerDeviceCursors(_deviceInfo.Device, ref cursorCount, cursors))
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceCollection.cs (4)
85
IsValid =
UnsafeNativeMethods
.GetPointerDevices(ref deviceCount, null);
89
UnsafeNativeMethods
.POINTER_DEVICE_INFO[] deviceInfos
90
= new
UnsafeNativeMethods
.POINTER_DEVICE_INFO[deviceCount];
92
IsValid =
UnsafeNativeMethods
.GetPointerDevices(ref deviceCount, deviceInfos);
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceInfo.cs (23)
21
private
UnsafeNativeMethods
.POINTER_DEVICE_INFO _deviceInfo;
30
internal
UnsafeNativeMethods
.POINTER_DEVICE_PROPERTY[] SupportedPointerProperties { get; private set; }
56
internal
UnsafeNativeMethods
.RECT DeviceRect { get; private set; } = new
UnsafeNativeMethods
.RECT();
61
internal
UnsafeNativeMethods
.RECT DisplayRect { get; private set; } = new
UnsafeNativeMethods
.RECT();
71
internal PointerTabletDeviceInfo(int id,
UnsafeNativeMethods
.POINTER_DEVICE_INFO deviceInfo)
117
case
UnsafeNativeMethods
.POINTER_DEVICE_TYPE.POINTER_DEVICE_TYPE_EXTERNAL_PEN:
122
case
UnsafeNativeMethods
.POINTER_DEVICE_TYPE.POINTER_DEVICE_TYPE_INTEGRATED_PEN:
128
case
UnsafeNativeMethods
.POINTER_DEVICE_TYPE.POINTER_DEVICE_TYPE_TOUCH:
134
case
UnsafeNativeMethods
.POINTER_DEVICE_TYPE.POINTER_DEVICE_TYPE_TOUCH_PAD:
178
success =
UnsafeNativeMethods
.GetPointerDeviceProperties(Device, ref propCount, null);
182
SupportedPointerProperties = new
UnsafeNativeMethods
.POINTER_DEVICE_PROPERTY[propCount];
184
success =
UnsafeNativeMethods
.GetPointerDeviceProperties(Device, ref propCount, SupportedPointerProperties);
199
List<
UnsafeNativeMethods
.POINTER_DEVICE_PROPERTY> supportedProperties = new List<
UnsafeNativeMethods
.POINTER_DEVICE_PROPERTY>()
201
new
UnsafeNativeMethods
.POINTER_DEVICE_PROPERTY(),
202
new
UnsafeNativeMethods
.POINTER_DEVICE_PROPERTY(),
205
List<
UnsafeNativeMethods
.POINTER_DEVICE_PROPERTY> supportedButtonProperties = new List<
UnsafeNativeMethods
.POINTER_DEVICE_PROPERTY>();
290
var deviceRect = new
UnsafeNativeMethods
.RECT();
291
var displayRect = new
UnsafeNativeMethods
.RECT();
293
success =
UnsafeNativeMethods
.GetPointerDeviceRects(_deviceInfo.device, ref deviceRect, ref displayRect);
System\Windows\InterOp\HwndPointerInputProvider.cs (6)
145
if (
UnsafeNativeMethods
.GetRawPointerDeviceData(
215
&& (data.Info.pointerType ==
UnsafeNativeMethods
.POINTER_INPUT_TYPE.PT_TOUCH
216
|| data.Info.pointerType ==
UnsafeNativeMethods
.POINTER_INPUT_TYPE.PT_PEN))
220
if (
UnsafeNativeMethods
.GetPointerCursorId(pointerId, ref cursorId))
233
&& (!data.Info.pointerFlags.HasFlag(
UnsafeNativeMethods
.POINTER_FLAGS.POINTER_FLAG_INCONTACT)
234
&& data.Info.pointerFlags.HasFlag(
UnsafeNativeMethods
.POINTER_FLAGS.POINTER_FLAG_INRANGE)))