Changeset View
Changeset View
Standalone View
Standalone View
platform.h
Show First 20 Lines • Show All 450 Lines • ▼ Show 20 Line(s) | 82 | public: | |||
---|---|---|---|---|---|
451 | /** | 451 | /** | ||
452 | * Used by Compositor to set the used compositor. | 452 | * Used by Compositor to set the used compositor. | ||
453 | */ | 453 | */ | ||
454 | void setSelectedCompositor(CompositingType type) | 454 | void setSelectedCompositor(CompositingType type) | ||
455 | { | 455 | { | ||
456 | m_selectedCompositor = type; | 456 | m_selectedCompositor = type; | ||
457 | } | 457 | } | ||
458 | 458 | | |||
459 | /** | ||||
460 | * This method should perform quick preliminary test during plugin | ||||
461 | * autodetection phase (when no explicit plugin was specified). | ||||
462 | * Test that this plugin has at least a chance to load, with all | ||||
463 | * parameters set to default. | ||||
464 | * @return true, if it's possible to use this platform plugin | ||||
465 | * @since 5.18 | ||||
466 | */ | ||||
467 | virtual bool canLoad() = 0; | ||||
468 | | ||||
459 | public Q_SLOTS: | 469 | public Q_SLOTS: | ||
460 | void pointerMotion(const QPointF &position, quint32 time); | 470 | void pointerMotion(const QPointF &position, quint32 time); | ||
461 | void pointerButtonPressed(quint32 button, quint32 time); | 471 | void pointerButtonPressed(quint32 button, quint32 time); | ||
462 | void pointerButtonReleased(quint32 button, quint32 time); | 472 | void pointerButtonReleased(quint32 button, quint32 time); | ||
463 | void pointerAxisHorizontal(qreal delta, quint32 time, qint32 discreteDelta = 0, | 473 | void pointerAxisHorizontal(qreal delta, quint32 time, qint32 discreteDelta = 0, | ||
464 | InputRedirection::PointerAxisSource source = InputRedirection::PointerAxisSourceUnknown); | 474 | InputRedirection::PointerAxisSource source = InputRedirection::PointerAxisSourceUnknown); | ||
465 | void pointerAxisVertical(qreal delta, quint32 time, qint32 discreteDelta = 0, | 475 | void pointerAxisVertical(qreal delta, quint32 time, qint32 discreteDelta = 0, | ||
466 | InputRedirection::PointerAxisSource source = InputRedirection::PointerAxisSourceUnknown); | 476 | InputRedirection::PointerAxisSource source = InputRedirection::PointerAxisSourceUnknown); | ||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |