Changeset View
Changeset View
Standalone View
Standalone View
src/server/surface_interface.cpp
Show First 20 Lines • Show All 267 Lines • ▼ Show 20 Line(s) | 234 | { | |||
---|---|---|---|---|---|
268 | emit q_func()->pointerConstraintsChanged(); | 268 | emit q_func()->pointerConstraintsChanged(); | ||
269 | } | 269 | } | ||
270 | 270 | | |||
271 | #ifndef DOXYGEN_SHOULD_SKIP_THIS | 271 | #ifndef DOXYGEN_SHOULD_SKIP_THIS | ||
272 | const struct wl_surface_interface SurfaceInterface::Private::s_interface = { | 272 | const struct wl_surface_interface SurfaceInterface::Private::s_interface = { | ||
273 | resourceDestroyedCallback, | 273 | resourceDestroyedCallback, | ||
274 | attachCallback, | 274 | attachCallback, | ||
275 | damageCallback, | 275 | damageCallback, | ||
276 | frameCallaback, | 276 | frameCallback, | ||
277 | opaqueRegionCallback, | 277 | opaqueRegionCallback, | ||
278 | inputRegionCallback, | 278 | inputRegionCallback, | ||
279 | commitCallback, | 279 | commitCallback, | ||
280 | bufferTransformCallback, | 280 | bufferTransformCallback, | ||
281 | bufferScaleCallback | 281 | bufferScaleCallback | ||
282 | }; | 282 | }; | ||
283 | #endif | 283 | #endif | ||
284 | 284 | | |||
▲ Show 20 Lines • Show All 315 Lines • ▼ Show 20 Line(s) | |||||
600 | } | 600 | } | ||
601 | 601 | | |||
602 | void SurfaceInterface::Private::damageCallback(wl_client *client, wl_resource *resource, int32_t x, int32_t y, int32_t width, int32_t height) | 602 | void SurfaceInterface::Private::damageCallback(wl_client *client, wl_resource *resource, int32_t x, int32_t y, int32_t width, int32_t height) | ||
603 | { | 603 | { | ||
604 | Q_UNUSED(client) | 604 | Q_UNUSED(client) | ||
605 | cast<Private>(resource)->damage(QRect(x, y, width, height)); | 605 | cast<Private>(resource)->damage(QRect(x, y, width, height)); | ||
606 | } | 606 | } | ||
607 | 607 | | |||
608 | void SurfaceInterface::Private::frameCallaback(wl_client *client, wl_resource *resource, uint32_t callback) | 608 | void SurfaceInterface::Private::frameCallback(wl_client *client, wl_resource *resource, uint32_t callback) | ||
609 | { | 609 | { | ||
610 | auto s = cast<Private>(resource); | 610 | auto s = cast<Private>(resource); | ||
611 | Q_ASSERT(client == *s->client); | 611 | Q_ASSERT(client == *s->client); | ||
612 | s->addFrameCallback(callback); | 612 | s->addFrameCallback(callback); | ||
613 | } | 613 | } | ||
614 | 614 | | |||
615 | void SurfaceInterface::Private::opaqueRegionCallback(wl_client *client, wl_resource *resource, wl_resource *region) | 615 | void SurfaceInterface::Private::opaqueRegionCallback(wl_client *client, wl_resource *resource, wl_resource *region) | ||
616 | { | 616 | { | ||
▲ Show 20 Lines • Show All 272 Lines • Show Last 20 Lines |