Changeset View
Changeset View
Standalone View
Standalone View
src/client/surface.h
Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Line(s) | 61 | public: | |||
---|---|---|---|---|---|
144 | **/ | 144 | **/ | ||
145 | enum class CommitFlag { | 145 | enum class CommitFlag { | ||
146 | None, | 146 | None, | ||
147 | FrameCallback | 147 | FrameCallback | ||
148 | }; | 148 | }; | ||
149 | void commit(CommitFlag flag = CommitFlag::FrameCallback); | 149 | void commit(CommitFlag flag = CommitFlag::FrameCallback); | ||
150 | /** | 150 | /** | ||
151 | * Mark @p rect as damaged for the next frame. | 151 | * Mark @p rect as damaged for the next frame. | ||
152 | * @see damageBuffer | ||||
152 | **/ | 153 | **/ | ||
153 | void damage(const QRect &rect); | 154 | void damage(const QRect &rect); | ||
154 | /** | 155 | /** | ||
155 | * Mark @p region as damaged for the next frame. | 156 | * Mark @p region as damaged for the next frame. | ||
157 | * @see damageBuffer | ||||
156 | **/ | 158 | **/ | ||
157 | void damage(const QRegion ®ion); | 159 | void damage(const QRegion ®ion); | ||
158 | /** | 160 | /** | ||
161 | * Mark @p rect in buffer coordinates as damaged for the next frame. | ||||
162 | * @see damage | ||||
163 | * @since 5.59 | ||||
164 | **/ | ||||
165 | void damageBuffer(const QRect &rect); | ||||
166 | /** | ||||
167 | * Mark @p region in buffer coordinates as damaged for the next frame. | ||||
168 | * @see damage | ||||
169 | * @since 5.59 | ||||
170 | **/ | ||||
171 | void damageBuffer(const QRegion ®ion); | ||||
172 | /** | ||||
159 | * Attaches the @p buffer to this Surface for the next frame. | 173 | * Attaches the @p buffer to this Surface for the next frame. | ||
160 | * @param buffer The buffer to attach to this Surface | 174 | * @param buffer The buffer to attach to this Surface | ||
161 | * @param offset Position of the new upper-left corner in relation to previous frame | 175 | * @param offset Position of the new upper-left corner in relation to previous frame | ||
162 | **/ | 176 | **/ | ||
163 | void attachBuffer(wl_buffer *buffer, const QPoint &offset = QPoint()); | 177 | void attachBuffer(wl_buffer *buffer, const QPoint &offset = QPoint()); | ||
164 | /** | 178 | /** | ||
165 | * Overloaded method for convenience. | 179 | * Overloaded method for convenience. | ||
166 | **/ | 180 | **/ | ||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |