API reference - Class QPinchGesture

Notation used in Ruby API documentation

Description: Binding of QPinchGesture

Class hierarchy: QPinchGesture » QGesture » QObject

Public constructors

new QPinchGesturenew(QObject ptr parent = 0)Constructor QPinchGesture::QPinchGesture(QObject *parent)

Public methods

[const]QPointFcenterPointMethod QPointF QPinchGesture::centerPoint()
voidcenterPoint=(const QPointF value)Method void QPinchGesture::setCenterPoint(const QPointF &value)
[const]QPinchGesture_QFlags_ChangeFlagchangeFlagsMethod QFlags<QPinchGesture::ChangeFlag> QPinchGesture::changeFlags()
voidchangeFlags=(const QPinchGesture_QFlags_ChangeFlag value)Method void QPinchGesture::setChangeFlags(QFlags<QPinchGesture::ChangeFlag> value)
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[virtual]boolevent(QEvent ptr arg1)Virtual method bool QPinchGesture::event(QEvent *)
[virtual]booleventFilter(QObject ptr arg1,
QEvent ptr arg2)
Virtual method bool QPinchGesture::eventFilter(QObject *, QEvent *)
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]QPointFlastCenterPointMethod QPointF QPinchGesture::lastCenterPoint()
voidlastCenterPoint=(const QPointF value)Method void QPinchGesture::setLastCenterPoint(const QPointF &value)
[const]doublelastRotationAngleMethod double QPinchGesture::lastRotationAngle()
voidlastRotationAngle=(double value)Method void QPinchGesture::setLastRotationAngle(double value)
[const]doublelastScaleFactorMethod double QPinchGesture::lastScaleFactor()
voidlastScaleFactor=(double value)Method void QPinchGesture::setLastScaleFactor(double value)
[const]doublerotationAngleMethod double QPinchGesture::rotationAngle()
voidrotationAngle=(double value)Method void QPinchGesture::setRotationAngle(double value)
[const]doublescaleFactorMethod double QPinchGesture::scaleFactor()
voidscaleFactor=(double value)Method void QPinchGesture::setScaleFactor(double value)
voidsetCenterPoint(const QPointF value)Method void QPinchGesture::setCenterPoint(const QPointF &value)
voidsetChangeFlags(const QPinchGesture_QFlags_ChangeFlag value)Method void QPinchGesture::setChangeFlags(QFlags<QPinchGesture::ChangeFlag> value)
voidsetLastCenterPoint(const QPointF value)Method void QPinchGesture::setLastCenterPoint(const QPointF &value)
voidsetLastRotationAngle(double value)Method void QPinchGesture::setLastRotationAngle(double value)
voidsetLastScaleFactor(double value)Method void QPinchGesture::setLastScaleFactor(double value)
voidsetRotationAngle(double value)Method void QPinchGesture::setRotationAngle(double value)
voidsetScaleFactor(double value)Method void QPinchGesture::setScaleFactor(double value)
voidsetStartCenterPoint(const QPointF value)Method void QPinchGesture::setStartCenterPoint(const QPointF &value)
voidsetTotalChangeFlags(const QPinchGesture_QFlags_ChangeFlag value)Method void QPinchGesture::setTotalChangeFlags(QFlags<QPinchGesture::ChangeFlag> value)
voidsetTotalRotationAngle(double value)Method void QPinchGesture::setTotalRotationAngle(double value)
voidsetTotalScaleFactor(double value)Method void QPinchGesture::setTotalScaleFactor(double value)
[const]QPointFstartCenterPointMethod QPointF QPinchGesture::startCenterPoint()
voidstartCenterPoint=(const QPointF value)Method void QPinchGesture::setStartCenterPoint(const QPointF &value)
[const]QPinchGesture_QFlags_ChangeFlagtotalChangeFlagsMethod QFlags<QPinchGesture::ChangeFlag> QPinchGesture::totalChangeFlags()
voidtotalChangeFlags=(const QPinchGesture_QFlags_ChangeFlag value)Method void QPinchGesture::setTotalChangeFlags(QFlags<QPinchGesture::ChangeFlag> value)
[const]doubletotalRotationAngleMethod double QPinchGesture::totalRotationAngle()
voidtotalRotationAngle=(double value)Method void QPinchGesture::setTotalRotationAngle(double value)
[const]doubletotalScaleFactorMethod double QPinchGesture::totalScaleFactor()
voidtotalScaleFactor=(double value)Method void QPinchGesture::setTotalScaleFactor(double value)

Public static methods and constants

QPinchGesture_ChangeFlagCenterPointChangedEnum constant QPinchGesture::CenterPointChanged
QPinchGesture_ChangeFlagRotationAngleChangedEnum constant QPinchGesture::RotationAngleChanged
QPinchGesture_ChangeFlagScaleFactorChangedEnum constant QPinchGesture::ScaleFactorChanged
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s,
string c = 0)
Static method QString QPinchGesture::tr(const char *s, const char *c)
stringtr(string s,
string c,
int n)
Static method QString QPinchGesture::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = 0)
Static method QString QPinchGesture::trUtf8(const char *s, const char *c)
stringtrUtf8(string s,
string c,
int n)
Static method QString QPinchGesture::trUtf8(const char *s, const char *c, int n)

Protected methods (static, non-static and constructors)

[virtual]voidchildEvent(QChildEvent ptr arg1)Virtual method void QPinchGesture::childEvent(QChildEvent *)
[virtual]voidcustomEvent(QEvent ptr arg1)Virtual method void QPinchGesture::customEvent(QEvent *)
voiddestroyed(QObject ptr arg1 = 0)Method void QPinchGesture::destroyed(QObject *)
[virtual]voiddisconnectNotify(string signal)Virtual method void QPinchGesture::disconnectNotify(const char *signal)
[const]intreceivers(string signal)Method int QPinchGesture::receivers(const char *signal)
[const]QObject ptrsenderMethod QObject *QPinchGesture::sender()
[virtual]voidtimerEvent(QTimerEvent ptr arg1)Virtual method void QPinchGesture::timerEvent(QTimerEvent *)

Detailed description

[static] QPinchGesture_ChangeFlag CenterPointChanged

Description: Enum constant QPinchGesture::CenterPointChanged

[static] QPinchGesture_ChangeFlag RotationAngleChanged

Description: Enum constant QPinchGesture::RotationAngleChanged

[static] QPinchGesture_ChangeFlag ScaleFactorChanged

Description: Enum constant QPinchGesture::ScaleFactorChanged

[const] QPointF centerPoint

Description: Method QPointF QPinchGesture::centerPoint()

void centerPoint=(const QPointF value)

Description: Method void QPinchGesture::setCenterPoint(const QPointF &value)

[const] QPinchGesture_QFlags_ChangeFlag changeFlags

Description: Method QFlags<QPinchGesture::ChangeFlag> QPinchGesture::changeFlags()

void changeFlags=(const QPinchGesture_QFlags_ChangeFlag value)

Description: Method void QPinchGesture::setChangeFlags(QFlags<QPinchGesture::ChangeFlag> value)

[virtual] void childEvent(QChildEvent ptr arg1)

Description: Virtual method void QPinchGesture::childEvent(QChildEvent *)

This method can be reimplemented in a derived class.

void create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

[virtual] void customEvent(QEvent ptr arg1)

Description: Virtual method void QPinchGesture::customEvent(QEvent *)

This method can be reimplemented in a derived class.

void destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

void destroyed(QObject ptr arg1 = 0)

Description: Method void QPinchGesture::destroyed(QObject *)

This method is protected and can only be called from inside a derived class.

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[virtual] void disconnectNotify(string signal)

Description: Virtual method void QPinchGesture::disconnectNotify(const char *signal)

This method can be reimplemented in a derived class.

[virtual] bool event(QEvent ptr arg1)

Description: Virtual method bool QPinchGesture::event(QEvent *)

This method can be reimplemented in a derived class.

[virtual] bool eventFilter(QObject ptr arg1,QEvent ptr arg2)

Description: Virtual method bool QPinchGesture::eventFilter(QObject *, QEvent *)

This method can be reimplemented in a derived class.

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

[const] QPointF lastCenterPoint

Description: Method QPointF QPinchGesture::lastCenterPoint()

void lastCenterPoint=(const QPointF value)

Description: Method void QPinchGesture::setLastCenterPoint(const QPointF &value)

[const] double lastRotationAngle

Description: Method double QPinchGesture::lastRotationAngle()

void lastRotationAngle=(double value)

Description: Method void QPinchGesture::setLastRotationAngle(double value)

[const] double lastScaleFactor

Description: Method double QPinchGesture::lastScaleFactor()

void lastScaleFactor=(double value)

Description: Method void QPinchGesture::setLastScaleFactor(double value)

[static] new QPinchGesture new(QObject ptr parent = 0)

Description: Constructor QPinchGesture::QPinchGesture(QObject *parent)

This method creates an object of class QPinchGesture.

[const] int receivers(string signal)

Description: Method int QPinchGesture::receivers(const char *signal)

This method is protected and can only be called from inside a derived class.

[const] double rotationAngle

Description: Method double QPinchGesture::rotationAngle()

void rotationAngle=(double value)

Description: Method void QPinchGesture::setRotationAngle(double value)

[const] double scaleFactor

Description: Method double QPinchGesture::scaleFactor()

void scaleFactor=(double value)

Description: Method void QPinchGesture::setScaleFactor(double value)

[const] QObject ptr sender

Description: Method QObject *QPinchGesture::sender()

This method is protected and can only be called from inside a derived class.

void setCenterPoint(const QPointF value)

Description: Method void QPinchGesture::setCenterPoint(const QPointF &value)

void setChangeFlags(const QPinchGesture_QFlags_ChangeFlag value)

Description: Method void QPinchGesture::setChangeFlags(QFlags<QPinchGesture::ChangeFlag> value)

void setLastCenterPoint(const QPointF value)

Description: Method void QPinchGesture::setLastCenterPoint(const QPointF &value)

void setLastRotationAngle(double value)

Description: Method void QPinchGesture::setLastRotationAngle(double value)

void setLastScaleFactor(double value)

Description: Method void QPinchGesture::setLastScaleFactor(double value)

void setRotationAngle(double value)

Description: Method void QPinchGesture::setRotationAngle(double value)

void setScaleFactor(double value)

Description: Method void QPinchGesture::setScaleFactor(double value)

void setStartCenterPoint(const QPointF value)

Description: Method void QPinchGesture::setStartCenterPoint(const QPointF &value)

void setTotalChangeFlags(const QPinchGesture_QFlags_ChangeFlag value)

Description: Method void QPinchGesture::setTotalChangeFlags(QFlags<QPinchGesture::ChangeFlag> value)

void setTotalRotationAngle(double value)

Description: Method void QPinchGesture::setTotalRotationAngle(double value)

void setTotalScaleFactor(double value)

Description: Method void QPinchGesture::setTotalScaleFactor(double value)

[const] QPointF startCenterPoint

Description: Method QPointF QPinchGesture::startCenterPoint()

void startCenterPoint=(const QPointF value)

Description: Method void QPinchGesture::setStartCenterPoint(const QPointF &value)

[static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

[virtual] void timerEvent(QTimerEvent ptr arg1)

Description: Virtual method void QPinchGesture::timerEvent(QTimerEvent *)

This method can be reimplemented in a derived class.

[const] QPinchGesture_QFlags_ChangeFlag totalChangeFlags

Description: Method QFlags<QPinchGesture::ChangeFlag> QPinchGesture::totalChangeFlags()

void totalChangeFlags=(const QPinchGesture_QFlags_ChangeFlag value)

Description: Method void QPinchGesture::setTotalChangeFlags(QFlags<QPinchGesture::ChangeFlag> value)

[const] double totalRotationAngle

Description: Method double QPinchGesture::totalRotationAngle()

void totalRotationAngle=(double value)

Description: Method void QPinchGesture::setTotalRotationAngle(double value)

[const] double totalScaleFactor

Description: Method double QPinchGesture::totalScaleFactor()

void totalScaleFactor=(double value)

Description: Method void QPinchGesture::setTotalScaleFactor(double value)

[static] string tr(string s,string c = 0)

Description: Static method QString QPinchGesture::tr(const char *s, const char *c)

This method is static and can be called without an instance.

[static] string tr(string s,string c,int n)

Description: Static method QString QPinchGesture::tr(const char *s, const char *c, int n)

This method is static and can be called without an instance.

[static] string trUtf8(string s,string c = 0)

Description: Static method QString QPinchGesture::trUtf8(const char *s, const char *c)

This method is static and can be called without an instance.

[static] string trUtf8(string s,string c,int n)

Description: Static method QString QPinchGesture::trUtf8(const char *s, const char *c, int n)

This method is static and can be called without an instance.