equal
deleted
inserted
replaced
52 // |
52 // |
53 // We mean it. |
53 // We mean it. |
54 // |
54 // |
55 |
55 |
56 #include <QGestureRecognizer> |
56 #include <QGestureRecognizer> |
|
57 #include <objbase.h> |
|
58 |
|
59 class IInkRectangle; |
|
60 class TabletHardwareCapabilities; |
|
61 class TabletPropertyMetricUnit; |
|
62 DECLARE_INTERFACE_(IInkTablet, IDispatch) |
|
63 { |
|
64 STDMETHOD(get_Name)(THIS_ BSTR *Name) PURE; |
|
65 STDMETHOD(get_PlugAndPlayId)(THIS_ BSTR *Id) PURE; |
|
66 STDMETHOD(get_MaximumInputRectangle)(THIS_ IInkRectangle **Rectangle) PURE; |
|
67 STDMETHOD(get_HardwareCapabilities)(THIS_ TabletHardwareCapabilities *Capabilities) PURE; |
|
68 STDMETHOD(IsPacketPropertySupported)(THIS_ BSTR packetPropertyName) PURE; |
|
69 STDMETHOD(GetPropertyMetrics)(THIS_ BSTR propertyName, long *Minimum, long *Maximum, TabletPropertyMetricUnit *Units, float *Resolution) PURE; |
|
70 }; |
|
71 enum TabletDeviceKind |
|
72 { |
|
73 TDK_Mouse = 0, |
|
74 TDK_Pen = 1, |
|
75 TDK_Touch = 2 |
|
76 }; |
|
77 DECLARE_INTERFACE_(IInkTablet2, IDispatch) |
|
78 { |
|
79 STDMETHOD(get_DeviceKind)(THIS_ TabletDeviceKind *Kind) PURE; |
|
80 }; |
|
81 DECLARE_INTERFACE_(IInkTablets, IDispatch) |
|
82 { |
|
83 STDMETHOD(get_Count)(THIS_ long *Count) PURE; |
|
84 STDMETHOD(get__NewEnum)(THIS_ IUnknown **_NewEnum) PURE; |
|
85 STDMETHOD(get_DefaultTablet)(THIS_ IInkTablet **DefaultTablet) PURE; |
|
86 STDMETHOD(Item)(THIS_ long Index, IInkTablet **Tablet) PURE; |
|
87 STDMETHOD(IsPacketPropertySupported)(THIS_ BSTR packetPropertyName, VARIANT_BOOL *Supported) PURE; |
|
88 }; |
57 |
89 |
58 QT_BEGIN_NAMESPACE |
90 QT_BEGIN_NAMESPACE |
59 |
91 |
60 #if !defined(QT_NO_NATIVE_GESTURES) |
92 #if !defined(QT_NO_NATIVE_GESTURES) |
61 |
93 |