Debian Codegraph @

mingw-w64-headers/include/windows.devices.haptics.idl

raw
1 /*
2 * Copyright 2022 Rémi Bernon for CodeWeavers
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19 #ifdef __WIDL__
20 #pragma winrt ns_prefix
21 #endif
22
23 import "inspectable.idl";
24 import "windows.foundation.idl";
25
26 namespace Windows.Devices.Haptics {
27 interface ISimpleHapticsControllerFeedback;
28 interface ISimpleHapticsController;
29 runtimeclass SimpleHapticsControllerFeedback;
30 runtimeclass SimpleHapticsController;
31
32 declare {
33 interface Windows.Foundation.Collections.IIterator<Windows.Devices.Haptics.SimpleHapticsController *>;
34 interface Windows.Foundation.Collections.IIterable<Windows.Devices.Haptics.SimpleHapticsController *>;
35 interface Windows.Foundation.Collections.IVectorView<Windows.Devices.Haptics.SimpleHapticsController *>;
36 interface Windows.Foundation.Collections.IVector<Windows.Devices.Haptics.SimpleHapticsController *>;
37 interface Windows.Foundation.Collections.IVectorView<Windows.Devices.Haptics.SimpleHapticsControllerFeedback *>;
38 }
39
40 [
41 contract(Windows.Foundation.UniversalApiContract, 4.0),
42 exclusiveto(Windows.Devices.Haptics.SimpleHapticsControllerFeedback),
43 uuid(3d577ef8-4cee-11e6-b535-001bdc06ab3b)
44 ]
45 interface ISimpleHapticsControllerFeedback : IInspectable
46 {
47 [propget] HRESULT Waveform([out, retval] UINT16 *value);
48 [propget] HRESULT Duration([out, retval] Windows.Foundation.TimeSpan *value);
49 }
50
51 [
52 contract(Windows.Foundation.UniversalApiContract, 4.0),
53 exclusiveto(Windows.Devices.Haptics.SimpleHapticsController),
54 uuid(3d577ef9-4cee-11e6-b535-001bdc06ab3b)
55 ]
56 interface ISimpleHapticsController : IInspectable
57 {
58 [propget] HRESULT Id([out, retval] HSTRING *value);
59 [propget] HRESULT SupportedFeedback([out, retval] Windows.Foundation.Collections.IVectorView<Windows.Devices.Haptics.SimpleHapticsControllerFeedback *> **value);
60 [propget] HRESULT IsIntensitySupported([out, retval] boolean *value);
61 [propget] HRESULT IsPlayCountSupported([out, retval] boolean *value);
62 [propget] HRESULT IsPlayDurationSupported([out, retval] boolean *value);
63 [propget] HRESULT IsReplayPauseIntervalSupported([out, retval] boolean *value);
64 HRESULT StopFeedback();
65 [overload("SendHapticFeedback")]
66 HRESULT SendHapticFeedback([in] Windows.Devices.Haptics.SimpleHapticsControllerFeedback *feedback);
67 [overload("SendHapticFeedback")]
68 HRESULT SendHapticFeedbackWithIntensity([in] Windows.Devices.Haptics.SimpleHapticsControllerFeedback *feedback,
69 [in] DOUBLE intensity);
70 HRESULT SendHapticFeedbackForDuration([in] Windows.Devices.Haptics.SimpleHapticsControllerFeedback *feedback,
71 [in] DOUBLE intensity, [in] Windows.Foundation.TimeSpan duration);
72 HRESULT SendHapticFeedbackForPlayCount([in] Windows.Devices.Haptics.SimpleHapticsControllerFeedback *feedback,
73 [in] DOUBLE intensity, [in] INT32 count,
74 [in] Windows.Foundation.TimeSpan interval);
75 }
76
77 [
78 contract(Windows.Foundation.UniversalApiContract, 4.0),
79 marshaling_behavior(agile)
80 ]
81 runtimeclass SimpleHapticsControllerFeedback
82 {
83 [default] interface Windows.Devices.Haptics.ISimpleHapticsControllerFeedback;
84 }
85
86 [
87 contract(Windows.Foundation.UniversalApiContract, 4.0),
88 marshaling_behavior(agile)
89 ]
90 runtimeclass SimpleHapticsController
91 {
92 [default] interface Windows.Devices.Haptics.ISimpleHapticsController;
93 }
94 }