Changeset View
Changeset View
Standalone View
Standalone View
src/server/surface_interface_p.h
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | 37 | public: | |||
---|---|---|---|---|---|
70 | void addChild(QPointer<SubSurfaceInterface> subsurface); | 70 | void addChild(QPointer<SubSurfaceInterface> subsurface); | ||
71 | void removeChild(QPointer<SubSurfaceInterface> subsurface); | 71 | void removeChild(QPointer<SubSurfaceInterface> subsurface); | ||
72 | bool raiseChild(QPointer<SubSurfaceInterface> subsurface, SurfaceInterface *sibling); | 72 | bool raiseChild(QPointer<SubSurfaceInterface> subsurface, SurfaceInterface *sibling); | ||
73 | bool lowerChild(QPointer<SubSurfaceInterface> subsurface, SurfaceInterface *sibling); | 73 | bool lowerChild(QPointer<SubSurfaceInterface> subsurface, SurfaceInterface *sibling); | ||
74 | void setShadow(const QPointer<ShadowInterface> &shadow); | 74 | void setShadow(const QPointer<ShadowInterface> &shadow); | ||
75 | void setBlur(const QPointer<BlurInterface> &blur); | 75 | void setBlur(const QPointer<BlurInterface> &blur); | ||
76 | void setContrast(const QPointer<ContrastInterface> &contrast); | 76 | void setContrast(const QPointer<ContrastInterface> &contrast); | ||
77 | void setSlide(const QPointer<SlideInterface> &slide); | 77 | void setSlide(const QPointer<SlideInterface> &slide); | ||
78 | void installPointerConstraint(LockedPointerInterface *lock); | ||||
79 | void installPointerConstraint(ConfinedPointerInterface *confinement); | ||||
78 | 80 | | |||
79 | void commitSubSurface(); | 81 | void commitSubSurface(); | ||
80 | void commit(); | 82 | void commit(); | ||
81 | 83 | | |||
82 | State current; | 84 | State current; | ||
83 | State pending; | 85 | State pending; | ||
84 | State subSurfacePending; | 86 | State subSurfacePending; | ||
85 | QPointer<SubSurfaceInterface> subSurface; | 87 | QPointer<SubSurfaceInterface> subSurface; | ||
86 | QRegion trackedDamage; | 88 | QRegion trackedDamage; | ||
87 | 89 | | |||
88 | // workaround for https://bugreports.qt.io/browse/QTBUG-52192 | 90 | // workaround for https://bugreports.qt.io/browse/QTBUG-52192 | ||
89 | // A subsurface needs to be considered mapped even if it doesn't have a buffer attached | 91 | // A subsurface needs to be considered mapped even if it doesn't have a buffer attached | ||
90 | // Otherwise Qt's sub-surfaces will never be visible and the client will freeze due to | 92 | // Otherwise Qt's sub-surfaces will never be visible and the client will freeze due to | ||
91 | // waiting on the frame callback of the never visible surface | 93 | // waiting on the frame callback of the never visible surface | ||
92 | bool subSurfaceIsMapped = true; | 94 | bool subSurfaceIsMapped = true; | ||
93 | 95 | | |||
94 | QVector<OutputInterface *> outputs; | 96 | QVector<OutputInterface *> outputs; | ||
95 | 97 | | |||
98 | QPointer<LockedPointerInterface> lockedPointer; | ||||
99 | QPointer<ConfinedPointerInterface> confinedPointer; | ||||
100 | | ||||
96 | private: | 101 | private: | ||
102 | QMetaObject::Connection constrainsOneShotConnection; | ||||
103 | QMetaObject::Connection constrainsUnboundConnection; | ||||
104 | | ||||
97 | SurfaceInterface *q_func() { | 105 | SurfaceInterface *q_func() { | ||
98 | return reinterpret_cast<SurfaceInterface *>(q); | 106 | return reinterpret_cast<SurfaceInterface *>(q); | ||
99 | } | 107 | } | ||
100 | void swapStates(State *source, State *target, bool emitChanged); | 108 | void swapStates(State *source, State *target, bool emitChanged); | ||
101 | void damage(const QRect &rect); | 109 | void damage(const QRect &rect); | ||
102 | void setScale(qint32 scale); | 110 | void setScale(qint32 scale); | ||
103 | void setTransform(OutputInterface::Transform transform); | 111 | void setTransform(OutputInterface::Transform transform); | ||
104 | void addFrameCallback(uint32_t callback); | 112 | void addFrameCallback(uint32_t callback); | ||
Show All 24 Lines |