Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QPinchGesture Class Reference

The QPinchGesture class describes a pinch gesture made by the user. More...

Inheritance diagram for QtGui.QPinchGesture:
Collaboration diagram for QtGui.QPinchGesture:

Public Types

enum  ChangeFlag { CenterPointChanged = 4, RotationAngleChanged = 2, ScaleFactorChanged = 1 }
  More...
 
- Public Types inherited from QtGui.QGesture
enum  GestureCancelPolicy { CancelAllInContext = 1, CancelNone = 0 }
  More...
 

Public Member Functions

 QPinchGesture (QObject parent=null)
 
override void CreateProxy ()
 
new QPinchGesture.ChangeFlag changeFlags ()
 
new double lastRotationAngle ()
 
new double lastScaleFactor ()
 
new double rotationAngle ()
 
new double scaleFactor ()
 
new void SetChangeFlags (QPinchGesture.ChangeFlag value)
 
new void SetLastRotationAngle (double value)
 
new void SetLastScaleFactor (double value)
 
new void SetRotationAngle (double value)
 
new void SetScaleFactor (double value)
 
new void SetTotalChangeFlags (QPinchGesture.ChangeFlag value)
 
new void SetTotalRotationAngle (double value)
 
new void SetTotalScaleFactor (double value)
 
new QPinchGesture.ChangeFlag totalChangeFlags ()
 
new double totalRotationAngle ()
 
new double totalScaleFactor ()
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.QGesture
 QGesture (QObject parent=null)
 
 
new void UnsetHotSpot ()
 
new void Dispose ()
 
- Public Member Functions inherited from QtCore.QObject
 QObject (QObject parent=null)
 
 
new bool BlockSignals (bool b)
 
 
new
System.Collections.Generic.List
< QObject
Children ()
 
 
new bool Connect (QObject sender, string signal, string member, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
 
 
new void DeleteLater ()
 
 
new bool Disconnect (QObject receiver, string member=null)
 
 
new bool Disconnect (string signal=null, QObject receiver=null, string member=null)
 
 
new void DumpObjectInfo ()
 
 
new void DumpObjectTree ()
 
 
new
System.Collections.Generic.List
< QByteArray
DynamicPropertyNames ()
 
 
virtual bool OnEvent (QEvent arg1)
 
 
virtual bool EventFilter (QObject arg1, QEvent arg2)
 
 
new bool Inherits (string classname)
 
 
new void InstallEventFilter (QObject arg1)
 
 
new bool IsWidgetType ()
 
 
new void KillTimer (int id)
 
 
new object Property (string name)
 
 
new void RemoveEventFilter (QObject arg1)
 
 
new bool SetProperty (string name, object value)
 
 
new void SetUserData (uint id, QObjectUserData data)
 
new bool SignalsBlocked ()
 
 
new int StartTimer (int interval)
 
 
new QObjectUserData UserData (uint id)
 
new void Dispose ()
 
- Public Member Functions inherited from QtCore.Qt
delegate QTextStream FuncQTextStreamQTextStream (QTextStream qTextStream)
 
delegate string FuncStringQByteArray (QByteArray qByteArray)
 
delegate QByteArray FuncQByteArrayString (string @string)
 
delegate void ActionQtMsgTypeString (QtMsgType qtMsgType, string @string)
 
delegate QObject FuncQObject ()
 

Static Public Member Functions

static string Tr (string s, string c=null)
 
static string Tr (string s, string c, int n)
 
static string TrUtf8 (string s, string c=null)
 
static string TrUtf8 (string s, string c, int n)
 
- Static Public Member Functions inherited from QtGui.QGesture
static string Tr (string s, string c=null)
 
static string Tr (string s, string c, int n)
 
static string TrUtf8 (string s, string c=null)
 
static string TrUtf8 (string s, string c, int n)
 
- Static Public Member Functions inherited from QtCore.QObject
static bool Connect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod method, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
 
 
static bool Connect (QObject sender, string signal, QObject receiver, string member, Qt.ConnectionType arg5=Qt.ConnectionType.AutoConnection)
 
 
static bool Disconnect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod member)
 
 
static bool Disconnect (QObject sender, string signal, QObject receiver, string member)
 
 
static uint RegisterUserData ()
 
static string Tr (string s, string c=null)
 
 
static string Tr (string s, string c, int n)
 
 
static string TrUtf8 (string s, string c=null)
 
 
static string TrUtf8 (string s, string c, int n)
 
 
- Static Public Member Functions inherited from QtCore.Qt
static QDataStream Write (QDataStream s, object p)
 
static QDataStream Write (QDataStream arg1, QSizeF arg2)
 
static QTextStream Write (QTextStream s, Qt.FuncQTextStreamQTextStream f)
 
static QDataStream Write (QDataStream arg1, QPoint arg2)
 
static QDataStream Write (QDataStream arg1, QLineF arg2)
 
static QDataStream Write (QDataStream arg1, QPointF arg2)
 
static QDataStream Write (QDataStream arg1, QChar arg2)
 
static QDataStream Write (QDataStream arg1, QByteArray arg2)
 
static QDataStream Write (QDataStream arg1, QEasingCurve arg2)
 
static QDataStream Write (QDataStream arg1, QRectF arg2)
 
static QDataStream Write (QDataStream arg1, QDateTime arg2)
 
static QDataStream Write (QDataStream arg1, QUrl arg2)
 
static QDataStream Write (QDataStream arg1, QTime arg2)
 
static QDataStream Write (QDataStream arg1, QLocale arg2)
 
static QDataStream Write (QDataStream arg1, QBitArray arg2)
 
static QDataStream Write (QDataStream arg1, QUuid arg2)
 
static QDataStream Write (QDataStream arg1, QLine arg2)
 
static QDataStream Write (QDataStream arg1, QDate arg2)
 
static QDataStream Write (QDataStream @out, QRegExp regExp)
 
static QDataStream Write (QDataStream arg1, QRect arg2)
 
static QDataStream Write (QDataStream arg1, QSize arg2)
 
static QDataStream Write (QDataStream s, QVariant.Type p)
 
static QDataStream Write (QDataStream arg1, string arg2)
 
static QDataStream Write (QDataStream @out, System.Collections.Generic.List< string > list)
 
static QDataStream Read (QDataStream arg1, QChar arg2)
 
static QDataStream Read (QDataStream arg1, QLocale arg2)
 
static QDataStream Read (QDataStream arg1, QRect arg2)
 
static QDataStream Read (QDataStream arg1, QEasingCurve arg2)
 
static QDataStream Read (QDataStream arg1, QDate arg2)
 
static QDataStream Read (QDataStream arg1, QUrl arg2)
 
static QDataStream Read (QDataStream arg1, QUuid arg2)
 
static QTextStream Read (QTextStream s, Qt.FuncQTextStreamQTextStream f)
 
static QDataStream Read (QDataStream arg1, QLineF arg2)
 
static QDataStream Read (QDataStream arg1, QRectF arg2)
 
static QDataStream Read (QDataStream arg1, QPointF arg2)
 
static QDataStream Read (QDataStream arg1, QLine arg2)
 
static QDataStream Read (QDataStream arg1, QBitArray arg2)
 
static QDataStream Read (QDataStream arg1, QSize arg2)
 
static QDataStream Read (QDataStream arg1, QDateTime arg2)
 
static QDataStream Read (QDataStream arg1, QTime arg2)
 
static QDataStream Read (QDataStream arg1, QPoint arg2)
 
static QDataStream Read (QDataStream @in, QRegExp regExp)
 
static QDataStream Read (QDataStream s, object p)
 
static QDataStream Read (QDataStream arg1, QByteArray arg2)
 
static QDataStream Read (QDataStream arg1, QSizeF arg2)
 
static QDataStream Read (QDataStream arg1, string arg2)
 
static QDataStream Read (QDataStream s, QVariant.Type p)
 
static QDataStream Read (QDataStream @in, System.Collections.Generic.List< string > list)
 
static double qAcos (double v)
 
static void qAddPostRoutine (System.Action arg1)
 
static string qAppName ()
 
static double qAsin (double v)
 
static double qAtan (double v)
 
static double qAtan2 (double x, double y)
 
static void qBadAlloc ()
 
static int qCeil (double v)
 
static ushort qChecksum (string s, uint len)
 
static QByteArray qCompress (QByteArray data)
 
static QByteArray qCompress (QByteArray data, int compressionLevel=-1)
 
static QByteArray qCompress (Pointer< byte > data, int nbytes)
 
static QByteArray qCompress (Pointer< byte > data, int nbytes, int compressionLevel=-1)
 
static double qCos (double v)
 
static double qExp (double v)
 
static double qFabs (double v)
 
static double qFastCos (double x)
 
static double qFastSin (double x)
 
static string qFlagLocation (string method)
 
static int qFloor (double v)
 
static bool qFuzzyCompare (double p1, double p2)
 
static bool qFuzzyCompare (float p1, float p2)
 
static bool qFuzzyIsNull (double d)
 
static bool qFuzzyIsNull (float f)
 
static uint qHash (QBitArray key)
 
static uint qHash (QChar key)
 
static uint qHash (QStringRef key)
 
static uint qHash (QUrl url)
 
static uint qHash (QPersistentModelIndex index)
 
static uint qHash (QByteArray key)
 
static uint qHash (QModelIndex index)
 
static uint qHash (uint key)
 
static uint qHash (sbyte key)
 
static uint qHash (byte key)
 
static uint qHash (short key)
 
static uint qHash (NativeLong key)
 
static uint qHash (ushort key)
 
static uint qHash (long key)
 
static uint qHash (ulong key)
 
static uint qHash (int key)
 
static uint qHash (string key)
 
static uint qHash (NativeULong key)
 
static double qInf ()
 
static Qt.ActionQtMsgTypeString qInstallMsgHandler (Qt.ActionQtMsgTypeString arg1)
 
static int qIntCast (float f)
 
static int qIntCast (double f)
 
static bool qIsFinite (double d)
 
static bool qIsFinite (float f)
 
static bool qIsInf (float f)
 
static bool qIsInf (double d)
 
static bool qIsNaN (float f)
 
static bool qIsNaN (double d)
 
static bool qIsNull (float f)
 
static bool qIsNull (double d)
 
static double qLn (double v)
 
static double qPow (double x, double y)
 
static double qQNaN ()
 
static void qRegisterStaticPluginInstanceFunction (Qt.FuncQObject function)
 
static void qRemovePostRoutine (System.Action arg1)
 
static int qRound (double d)
 
static long qRound64 (double d)
 
static double qSNaN ()
 
static bool qSharedBuild ()
 
static double qSin (double v)
 
static double qSqrt (double v)
 
static bool qStringComparisonHelper (QStringRef s1, string s2)
 
static double qTan (double v)
 
static QByteArray qUncompress (QByteArray data)
 
static QByteArray qUncompress (Pointer< byte > data, int nbytes)
 
static string qVersion ()
 
static void Qbswap_helper (Pointer< byte > src, Pointer< byte > dest, int size)
 
static QByteArray Qgetenv (string varName)
 
static bool Qputenv (string varName, QByteArray value)
 
static int Qrand ()
 
static void Qsrand (uint seed)
 
static int Qstrcmp (QByteArray str1, QByteArray str2)
 
static int Qstrcmp (QByteArray str1, string str2)
 
static int Qstrcmp (string str1, QByteArray str2)
 
static int Qstrcmp (string str1, string str2)
 
static Pointer< sbyte > Qstrcpy (Pointer< sbyte > dst, string src)
 
static Pointer< sbyte > Qstrdup (string arg1)
 
static int Qstricmp (string arg1, string arg2)
 
static uint Qstrlen (string str)
 
static int Qstrncmp (string str1, string str2, uint len)
 
static Pointer< sbyte > Qstrncpy (Pointer< sbyte > dst, string src, uint len)
 
static int Qstrnicmp (string arg1, string arg2, uint len)
 
static uint Qstrnlen (string str, uint maxlen)
 
static string QtTrId (string id, int n=-1)
 

Protected Member Functions

 QPinchGesture (System.Type dummy)
 
- Protected Member Functions inherited from QtGui.QGesture
 QGesture (System.Type dummy)
 
- Protected Member Functions inherited from QtCore.QObject
 QObject (System.Type dummy)
 
virtual void OnChildEvent (QChildEvent arg1)
 
 
virtual void ConnectNotify (string signal)
 
 
virtual void OnCustomEvent (QEvent arg1)
 
 
new void OnDestroyed (QObject arg1=null)
 
 
virtual void DisconnectNotify (string signal)
 
 
new int Receivers (string signal)
 
 
new QObject Sender ()
 
 
new int SenderSignalIndex ()
 
 
virtual void OnTimerEvent (QTimerEvent arg1)
 
 

Properties

new ChangeFlag TotalChangeFlags [get, set]
 
 
new ChangeFlag ChangeFlags [get, set]
 
 
new double TotalScaleFactor [get, set]
 
 
new double LastScaleFactor [get, set]
 
 
new double ScaleFactor [get, set]
 
 
new double TotalRotationAngle [get, set]
 
 
new double LastRotationAngle [get, set]
 
 
new double RotationAngle [get, set]
 
 
new QPointF StartCenterPoint [get, set]
 
 
new QPointF LastCenterPoint [get, set]
 
 
new QPointF CenterPoint [get, set]
 
 
static new QMetaObject StaticMetaObject [get]
 
new IQPinchGestureSignals Emit [get]
 
- Properties inherited from QtGui.QGesture
new Qt.GestureState State [get]
 
 
new Qt.GestureType GestureType [get]
 
 
new QGesture.GestureCancelPolicy gestureCancelPolicy [get, set]
 
 
new QPointF HotSpot [get, set]
 
 
new bool HasHotSpot [get]
 
 
static new QMetaObject StaticMetaObject [get]
 
new IQGestureSignals Emit [get]
 
- Properties inherited from QtCore.QObject
virtual EventHandler
< QEventArgs< QChildEvent > > 
ChildEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
CustomEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
Event
 
 
virtual EventHandler
< QEventArgs< QTimerEvent > > 
TimerEvent
 
 
Slot< QObjectDestroyedQObject
 
Slot Destroyed
 
 
new QObject Parent [get, set]
 
 
virtual System.IntPtr SmokeObject [get, set]
 
new string ObjectName [get, set]
 
 
static new QMetaObject StaticMetaObject [get]
 
 
static new QMetaObject StaticQtMetaObject [get]
 
new IQObjectSignals Emit [get]
 

Additional Inherited Members

- Protected Attributes inherited from QtCore.QObject
object Q_EMIT = null
 
SmokeInvocation interceptor
 
readonly List< QEventHandler > eventFilters = new List<QEventHandler>()
 

Detailed Description

The QPinchGesture class describes a pinch gesture made by the user.

A pinch gesture is a form of touch user input in which the user typically touches two points on the input device with a thumb and finger, before moving them closer together or further apart to change the scale factor, zoom, or level of detail of the user interface.

For an overview of gesture handling in Qt and information on using gestures in your applications, see the Gestures Programming document.

Instead of repeatedly applying the same pinching gesture, the user may continue to touch the input device in one place, and apply a second touch to a new point, continuing the gesture. When this occurs, gesture events will continue to be delivered to the target object, containing an instance of QPinchGesture in the Qt::GestureUpdated state.

See also QPanGesture and QSwipeGesture.

Member Enumeration Documentation

This enum describes the changes that can occur to the properties of the gesture object.

See also changeFlags and totalChangeFlags.

Enumerator:
CenterPointChanged 

The center point held by centerPoint changed.

RotationAngleChanged 

The rotation angle held by rotationAngle changed.

ScaleFactorChanged 

The scale factor held by scaleFactor changed.

Constructor & Destructor Documentation

QtGui.QPinchGesture.QPinchGesture ( System.Type  dummy)
protected
QtGui.QPinchGesture.QPinchGesture ( QObject  parent = null)

Member Function Documentation

new QPinchGesture.ChangeFlag QtGui.QPinchGesture.changeFlags ( )
override void QtGui.QPinchGesture.CreateProxy ( )
virtual

Reimplemented from QtGui.QGesture.

new void QtGui.QPinchGesture.Dispose ( )
new double QtGui.QPinchGesture.lastRotationAngle ( )
new double QtGui.QPinchGesture.lastScaleFactor ( )
new double QtGui.QPinchGesture.rotationAngle ( )
new double QtGui.QPinchGesture.scaleFactor ( )
new void QtGui.QPinchGesture.SetChangeFlags ( QPinchGesture.ChangeFlag  value)
new void QtGui.QPinchGesture.SetLastRotationAngle ( double  value)
new void QtGui.QPinchGesture.SetLastScaleFactor ( double  value)
new void QtGui.QPinchGesture.SetRotationAngle ( double  value)
new void QtGui.QPinchGesture.SetScaleFactor ( double  value)
new void QtGui.QPinchGesture.SetTotalChangeFlags ( QPinchGesture.ChangeFlag  value)
new void QtGui.QPinchGesture.SetTotalRotationAngle ( double  value)
new void QtGui.QPinchGesture.SetTotalScaleFactor ( double  value)
new QPinchGesture.ChangeFlag QtGui.QPinchGesture.totalChangeFlags ( )
new double QtGui.QPinchGesture.totalRotationAngle ( )
new double QtGui.QPinchGesture.totalScaleFactor ( )
static string QtGui.QPinchGesture.Tr ( string  s,
string  c = null 
)
static
static string QtGui.QPinchGesture.Tr ( string  s,
string  c,
int  n 
)
static
static string QtGui.QPinchGesture.TrUtf8 ( string  s,
string  c = null 
)
static
static string QtGui.QPinchGesture.TrUtf8 ( string  s,
string  c,
int  n 
)
static

Property Documentation

new QPointF QtGui.QPinchGesture.CenterPoint
getset

This property holds the current center point.

The center point is the midpoint between the two input points in the gesture.

new ChangeFlag QtGui.QPinchGesture.ChangeFlags
getset

This property holds the property of the gesture that has changed in the current step.

This property indicates which of the other properties has changed since the previous gesture event included information about this gesture. You can use this information to determine which aspect of your user interface needs to be updated.

new IQPinchGestureSignals QtGui.QPinchGesture.Emit
getprotected
new QPointF QtGui.QPinchGesture.LastCenterPoint
getset

This property holds the last position of the center point recorded for this gesture.

new double QtGui.QPinchGesture.LastRotationAngle
getset

This property holds the last reported angle covered by the gesture motion.

The last rotation angle is the angle as reported in the rotationAngle property when a previous gesture event was delivered for this gesture.

new double QtGui.QPinchGesture.LastScaleFactor
getset

This property holds the last scale factor recorded for this gesture.

The last scale factor contains the scale factor reported in the scaleFactor property when a previous gesture event included information about this gesture.

If no previous event was delivered with information about this gesture (i.e., this gesture object contains information about the first movement in the gesture) then this property contains zero.

new double QtGui.QPinchGesture.RotationAngle
getset

This property holds the angle covered by the gesture motion.

new double QtGui.QPinchGesture.ScaleFactor
getset

This property holds the current scale factor.

The scale factor measures the scale factor associated with the distance between two of the user's inputs on a touch device.

new QPointF QtGui.QPinchGesture.StartCenterPoint
getset

This property holds the starting position of the center point.

new QMetaObject QtGui.QPinchGesture.StaticMetaObject
staticget
new ChangeFlag QtGui.QPinchGesture.TotalChangeFlags
getset

This property holds the property of the gesture that has change.

This property indicates which of the other properties has changed since the gesture has started. You can use this information to determine which aspect of your user interface needs to be updated.

new double QtGui.QPinchGesture.TotalRotationAngle
getset

This property holds the total angle covered by the gesture.

This total angle measures the complete angle covered by the gesture. Usually, this is equal to the value held by the rotationAngle property, except in the case where the user performs multiple rotations by removing and repositioning one of the touch points, as described above. In this case, the total angle will be the sum of the rotation angles for the multiple stages of the gesture.

new double QtGui.QPinchGesture.TotalScaleFactor
getset

This property holds the total scale factor.

The total scale factor measures the total change in scale factor from the original value to the current scale factor.