Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwineffects.h
Show First 20 Lines • Show All 585 Lines • ▼ Show 20 Line(s) | 318 | public: | |||
---|---|---|---|---|---|
586 | * @param id The unique id of the touch point | 586 | * @param id The unique id of the touch point | ||
587 | * @param pos The position of the touch point in global coordinates | 587 | * @param pos The position of the touch point in global coordinates | ||
588 | * @param time Timestamp | 588 | * @param time Timestamp | ||
589 | * | 589 | * | ||
590 | * @see touchMotion | 590 | * @see touchMotion | ||
591 | * @see touchUp | 591 | * @see touchUp | ||
592 | * @since 5.8 | 592 | * @since 5.8 | ||
593 | */ | 593 | */ | ||
594 | virtual bool touchDown(quint32 id, const QPointF &pos, quint32 time); | 594 | virtual bool touchDown(qint32 id, const QPointF &pos, quint32 time); | ||
595 | /** | 595 | /** | ||
596 | * A touch point moved. | 596 | * A touch point moved. | ||
597 | * | 597 | * | ||
598 | * If the effect wants to exclusively use the touch event it should return @c true. | 598 | * If the effect wants to exclusively use the touch event it should return @c true. | ||
599 | * If @c false is returned the touch event is passed to further effects. | 599 | * If @c false is returned the touch event is passed to further effects. | ||
600 | * | 600 | * | ||
601 | * In general an Effect should only return @c true if it is the exclusive effect getting | 601 | * In general an Effect should only return @c true if it is the exclusive effect getting | ||
602 | * input events. E.g. has grabbed mouse events. | 602 | * input events. E.g. has grabbed mouse events. | ||
603 | * | 603 | * | ||
604 | * Default implementation returns @c false. | 604 | * Default implementation returns @c false. | ||
605 | * | 605 | * | ||
606 | * @param id The unique id of the touch point | 606 | * @param id The unique id of the touch point | ||
607 | * @param pos The position of the touch point in global coordinates | 607 | * @param pos The position of the touch point in global coordinates | ||
608 | * @param time Timestamp | 608 | * @param time Timestamp | ||
609 | * | 609 | * | ||
610 | * @see touchDown | 610 | * @see touchDown | ||
611 | * @see touchUp | 611 | * @see touchUp | ||
612 | * @since 5.8 | 612 | * @since 5.8 | ||
613 | */ | 613 | */ | ||
614 | virtual bool touchMotion(quint32 id, const QPointF &pos, quint32 time); | 614 | virtual bool touchMotion(qint32 id, const QPointF &pos, quint32 time); | ||
615 | /** | 615 | /** | ||
616 | * A touch point was released. | 616 | * A touch point was released. | ||
617 | * | 617 | * | ||
618 | * If the effect wants to exclusively use the touch event it should return @c true. | 618 | * If the effect wants to exclusively use the touch event it should return @c true. | ||
619 | * If @c false is returned the touch event is passed to further effects. | 619 | * If @c false is returned the touch event is passed to further effects. | ||
620 | * | 620 | * | ||
621 | * In general an Effect should only return @c true if it is the exclusive effect getting | 621 | * In general an Effect should only return @c true if it is the exclusive effect getting | ||
622 | * input events. E.g. has grabbed mouse events. | 622 | * input events. E.g. has grabbed mouse events. | ||
623 | * | 623 | * | ||
624 | * Default implementation returns @c false. | 624 | * Default implementation returns @c false. | ||
625 | * | 625 | * | ||
626 | * @param id The unique id of the touch point | 626 | * @param id The unique id of the touch point | ||
627 | * @param time Timestamp | 627 | * @param time Timestamp | ||
628 | * | 628 | * | ||
629 | * @see touchDown | 629 | * @see touchDown | ||
630 | * @see touchMotion | 630 | * @see touchMotion | ||
631 | * @since 5.8 | 631 | * @since 5.8 | ||
632 | */ | 632 | */ | ||
633 | virtual bool touchUp(quint32 id, quint32 time); | 633 | virtual bool touchUp(qint32 id, quint32 time); | ||
634 | 634 | | |||
635 | static QPoint cursorPos(); | 635 | static QPoint cursorPos(); | ||
636 | 636 | | |||
637 | /** | 637 | /** | ||
638 | * Read animation time from the configuration and possibly adjust using animationTimeFactor(). | 638 | * Read animation time from the configuration and possibly adjust using animationTimeFactor(). | ||
639 | * The configuration value in the effect should also have special value 'default' (set using | 639 | * The configuration value in the effect should also have special value 'default' (set using | ||
640 | * QSpinBox::setSpecialValueText()) with the value 0. This special value is adjusted | 640 | * QSpinBox::setSpecialValueText()) with the value 0. This special value is adjusted | ||
641 | * using the global animation speed, otherwise the exact time configured is returned. | 641 | * using the global animation speed, otherwise the exact time configured is returned. | ||
▲ Show 20 Lines • Show All 3312 Lines • Show Last 20 Lines |