src/gui/kernel/qwinnativepangesturerecognizer_win_p.h
changeset 7 f7bc934e204c
parent 3 41300fa6a67c
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     8 **
     8 **
    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