Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwineffects.h
Show First 20 Lines • Show All 539 Lines • ▼ Show 20 Line(s) | 312 | public: | |||
---|---|---|---|---|---|
540 | * | 540 | * | ||
541 | * In KWin4 this information was provided in the Effect's desktop file as property | 541 | * In KWin4 this information was provided in the Effect's desktop file as property | ||
542 | * X-KDE-Ordering. In the case of Scripted Effects this property is still used. | 542 | * X-KDE-Ordering. In the case of Scripted Effects this property is still used. | ||
543 | * | 543 | * | ||
544 | * @since 5.0 | 544 | * @since 5.0 | ||
545 | **/ | 545 | **/ | ||
546 | virtual int requestedEffectChainPosition() const; | 546 | virtual int requestedEffectChainPosition() const; | ||
547 | 547 | | |||
548 | | ||||
549 | /** | ||||
550 | * A touch point was pressed. | ||||
551 | * | ||||
552 | * If the effect wants to exclusively use the touch event it should return @c true. | ||||
553 | * If @c false is returned the touch event is passed to further effects. | ||||
554 | * | ||||
555 | * In general an Effect should only return @c true if it is the exclusive effect getting | ||||
556 | * input events. E.g. has grabbed mouse events. | ||||
557 | * | ||||
558 | * Default implementation returns @c false. | ||||
559 | * | ||||
560 | * @param id The unique id of the touch point | ||||
561 | * @param pos The position of the touch point in global coordinates | ||||
562 | * @param time Timestamp | ||||
563 | * | ||||
564 | * @see touchMotion | ||||
565 | * @see touchUp | ||||
566 | * @since 5.8 | ||||
567 | **/ | ||||
568 | virtual bool touchDown(quint32 id, const QPointF &pos, quint32 time); | ||||
569 | /** | ||||
570 | * A touch point moved. | ||||
571 | * | ||||
572 | * If the effect wants to exclusively use the touch event it should return @c true. | ||||
573 | * If @c false is returned the touch event is passed to further effects. | ||||
574 | * | ||||
575 | * In general an Effect should only return @c true if it is the exclusive effect getting | ||||
576 | * input events. E.g. has grabbed mouse events. | ||||
577 | * | ||||
578 | * Default implementation returns @c false. | ||||
579 | * | ||||
580 | * @param id The unique id of the touch point | ||||
581 | * @param pos The position of the touch point in global coordinates | ||||
582 | * @param time Timestamp | ||||
583 | * | ||||
584 | * @see touchDown | ||||
585 | * @see touchUp | ||||
586 | * @since 5.8 | ||||
587 | **/ | ||||
588 | virtual bool touchMotion(quint32 id, const QPointF &pos, quint32 time); | ||||
589 | /** | ||||
590 | * A touch point was released. | ||||
591 | * | ||||
592 | * If the effect wants to exclusively use the touch event it should return @c true. | ||||
593 | * If @c false is returned the touch event is passed to further effects. | ||||
594 | * | ||||
595 | * In general an Effect should only return @c true if it is the exclusive effect getting | ||||
596 | * input events. E.g. has grabbed mouse events. | ||||
597 | * | ||||
598 | * Default implementation returns @c false. | ||||
599 | * | ||||
600 | * @param id The unique id of the touch point | ||||
601 | * @param time Timestamp | ||||
602 | * | ||||
603 | * @see touchDown | ||||
604 | * @see touchMotion | ||||
605 | * @since 5.8 | ||||
606 | **/ | ||||
607 | virtual bool touchUp(quint32 id, quint32 time); | ||||
608 | | ||||
548 | static QPoint cursorPos(); | 609 | static QPoint cursorPos(); | ||
549 | 610 | | |||
550 | /** | 611 | /** | ||
551 | * Read animation time from the configuration and possibly adjust using animationTimeFactor(). | 612 | * Read animation time from the configuration and possibly adjust using animationTimeFactor(). | ||
552 | * The configuration value in the effect should also have special value 'default' (set using | 613 | * The configuration value in the effect should also have special value 'default' (set using | ||
553 | * QSpinBox::setSpecialValueText()) with the value 0. This special value is adjusted | 614 | * QSpinBox::setSpecialValueText()) with the value 0. This special value is adjusted | ||
554 | * using the global animation speed, otherwise the exact time configured is returned. | 615 | * using the global animation speed, otherwise the exact time configured is returned. | ||
555 | * @param cfg configuration group to read value from | 616 | * @param cfg configuration group to read value from | ||
▲ Show 20 Lines • Show All 2668 Lines • Show Last 20 Lines |