// This file was generated by qtwaylandscanner
// source file is /usr/share/deepin-wayland-protocols/shadow.xml

#include "qwayland-server-shadow.h"

QT_BEGIN_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wmissing-field-initializers")

namespace QtWaylandServer {

    int org_kde_kwin_shadow_manager::deferred_destroy_global_func(void *data) {
        auto object = static_cast<org_kde_kwin_shadow_manager *>(data);
        wl_global_destroy(object->m_global);
        object->m_global = nullptr;
        wl_event_source_remove(object->m_globalRemovedEvent);
        object->m_globalRemovedEvent = nullptr;
        wl_list_remove(&object->m_displayDestroyedListener.link);
        object->org_kde_kwin_shadow_manager_destroy_global();
        return 0;
    }

    org_kde_kwin_shadow_manager::org_kde_kwin_shadow_manager(struct ::wl_client *client, int id, int version)
        : m_resource_map()
        , m_resource(nullptr)
        , m_global(nullptr)
        , m_display(nullptr)
        , m_globalRemovedEvent(nullptr)
    {
        init(client, id, version);
    }

    org_kde_kwin_shadow_manager::org_kde_kwin_shadow_manager(struct ::wl_display *display, int version)
        : m_resource_map()
        , m_resource(nullptr)
        , m_global(nullptr)
        , m_display(nullptr)
        , m_globalRemovedEvent(nullptr)
    {
        init(display, version);
    }

    org_kde_kwin_shadow_manager::org_kde_kwin_shadow_manager(struct ::wl_resource *resource)
        : m_resource_map()
        , m_resource(nullptr)
        , m_global(nullptr)
        , m_display(nullptr)
        , m_globalRemovedEvent(nullptr)
    {
        init(resource);
    }

    org_kde_kwin_shadow_manager::org_kde_kwin_shadow_manager()
        : m_resource_map()
        , m_resource(nullptr)
        , m_global(nullptr)
        , m_display(nullptr)
        , m_globalRemovedEvent(nullptr)
    {
    }

    org_kde_kwin_shadow_manager::~org_kde_kwin_shadow_manager()
    {
        for (auto resource : std::as_const(m_resource_map))
            resource->org_kde_kwin_shadow_manager_object = nullptr;

        if (m_resource)
            m_resource->org_kde_kwin_shadow_manager_object = nullptr;

        if (m_global) {
            if (m_globalRemovedEvent)
                wl_event_source_remove(m_globalRemovedEvent);
            wl_global_destroy(m_global);
            wl_list_remove(&m_displayDestroyedListener.link);
        }
    }

    void org_kde_kwin_shadow_manager::init(struct ::wl_client *client, int id, int version)
    {
        m_resource = bind(client, id, version);
    }

    void org_kde_kwin_shadow_manager::init(struct ::wl_resource *resource)
    {
        m_resource = bind(resource);
    }

    org_kde_kwin_shadow_manager::Resource *org_kde_kwin_shadow_manager::add(struct ::wl_client *client, int version)
    {
        Resource *resource = bind(client, 0, version);
        m_resource_map.insert(client, resource);
        return resource;
    }

    org_kde_kwin_shadow_manager::Resource *org_kde_kwin_shadow_manager::add(struct ::wl_client *client, int id, int version)
    {
        Resource *resource = bind(client, id, version);
        m_resource_map.insert(client, resource);
        return resource;
    }

    void org_kde_kwin_shadow_manager::init(struct ::wl_display *display, int version)
    {
        m_display = display;
        m_global = wl_global_create(display, &::org_kde_kwin_shadow_manager_interface, version, this, bind_func);
        m_displayDestroyedListener.notify = org_kde_kwin_shadow_manager::display_destroy_func;
        m_displayDestroyedListener.parent = this;
        wl_display_add_destroy_listener(display, &m_displayDestroyedListener);
    }

    const struct wl_interface *org_kde_kwin_shadow_manager::interface()
    {
        return &::org_kde_kwin_shadow_manager_interface;
    }

    org_kde_kwin_shadow_manager::Resource *org_kde_kwin_shadow_manager::org_kde_kwin_shadow_manager_allocate()
    {
        return new Resource;
    }

    void org_kde_kwin_shadow_manager::org_kde_kwin_shadow_manager_destroy_global()
    {
    }

    void org_kde_kwin_shadow_manager::org_kde_kwin_shadow_manager_bind_resource(Resource *)
    {
    }

    void org_kde_kwin_shadow_manager::org_kde_kwin_shadow_manager_destroy_resource(Resource *)
    {
    }

    void org_kde_kwin_shadow_manager::bind_func(struct ::wl_client *client, void *data, uint32_t version, uint32_t id)
    {
        org_kde_kwin_shadow_manager *that = static_cast<org_kde_kwin_shadow_manager *>(data);
        that->add(client, id, version);
    }

    void org_kde_kwin_shadow_manager::display_destroy_func(struct ::wl_listener *listener, void *data)
    {
        Q_UNUSED(data);
        org_kde_kwin_shadow_manager *that = static_cast<org_kde_kwin_shadow_manager::DisplayDestroyedListener *>(listener)->parent;
        that->m_global = nullptr;
        that->m_globalRemovedEvent = nullptr;
    }

    void org_kde_kwin_shadow_manager::destroy_func(struct ::wl_resource *client_resource)
    {
        Resource *resource = Resource::fromResource(client_resource);
        Q_ASSERT(resource);
        org_kde_kwin_shadow_manager *that = resource->org_kde_kwin_shadow_manager_object;
        if (Q_LIKELY(that)) {
            that->m_resource_map.remove(resource->client(), resource);
            that->org_kde_kwin_shadow_manager_destroy_resource(resource);

            that = resource->org_kde_kwin_shadow_manager_object;
            if (that && that->m_resource == resource)
                that->m_resource = nullptr;
        }
        delete resource;
    }


    void org_kde_kwin_shadow_manager::globalRemove()
    {
        if (!m_global || m_globalRemovedEvent)
            return;

        wl_global_remove(m_global);

        struct wl_event_loop *event_loop = wl_display_get_event_loop(m_display);
        m_globalRemovedEvent = wl_event_loop_add_timer(event_loop, deferred_destroy_global_func, this);
        wl_event_source_timer_update(m_globalRemovedEvent, 10000);
    }

    org_kde_kwin_shadow_manager::Resource *org_kde_kwin_shadow_manager::bind(struct ::wl_client *client, uint32_t id, int version)
    {
        Q_ASSERT_X(!wl_client_get_object(client, id), "QWaylandObject bind", QStringLiteral("binding to object %1 more than once").arg(id).toLocal8Bit().constData());
        struct ::wl_resource *handle = wl_resource_create(client, &::org_kde_kwin_shadow_manager_interface, version, id);
        return bind(handle);
    }

    org_kde_kwin_shadow_manager::Resource *org_kde_kwin_shadow_manager::bind(struct ::wl_resource *handle)
    {
        Resource *resource = org_kde_kwin_shadow_manager_allocate();
        resource->org_kde_kwin_shadow_manager_object = this;

        wl_resource_set_implementation(handle, &m_org_kde_kwin_shadow_manager_interface, resource, destroy_func);
        resource->handle = handle;
        org_kde_kwin_shadow_manager_bind_resource(resource);
        return resource;
    }
    org_kde_kwin_shadow_manager::Resource *org_kde_kwin_shadow_manager::Resource::fromResource(struct ::wl_resource *resource)
    {
        if (Q_UNLIKELY(!resource))
            return nullptr;
        if (wl_resource_instance_of(resource, &::org_kde_kwin_shadow_manager_interface, &m_org_kde_kwin_shadow_manager_interface))
            return static_cast<Resource *>(wl_resource_get_user_data(resource));
        return nullptr;
    }

    const struct ::org_kde_kwin_shadow_manager_interface org_kde_kwin_shadow_manager::m_org_kde_kwin_shadow_manager_interface = {
        org_kde_kwin_shadow_manager::handle_create,
        org_kde_kwin_shadow_manager::handle_unset,
        org_kde_kwin_shadow_manager::handle_destroy
    };

    void org_kde_kwin_shadow_manager::org_kde_kwin_shadow_manager_create(Resource *, uint32_t, struct ::wl_resource *)
    {
    }

    void org_kde_kwin_shadow_manager::org_kde_kwin_shadow_manager_unset(Resource *, struct ::wl_resource *)
    {
    }

    void org_kde_kwin_shadow_manager::org_kde_kwin_shadow_manager_destroy(Resource *)
    {
    }


    void org_kde_kwin_shadow_manager::handle_create(
        ::wl_client *client,
        struct wl_resource *resource,
        uint32_t id,
        struct ::wl_resource *surface)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_shadow_manager_object)) {
            return;
        }
        static_cast<org_kde_kwin_shadow_manager *>(r->org_kde_kwin_shadow_manager_object)->org_kde_kwin_shadow_manager_create(
            r,
            id,
            surface);
    }

    void org_kde_kwin_shadow_manager::handle_unset(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *surface)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_shadow_manager_object)) {
            return;
        }
        static_cast<org_kde_kwin_shadow_manager *>(r->org_kde_kwin_shadow_manager_object)->org_kde_kwin_shadow_manager_unset(
            r,
            surface);
    }

    void org_kde_kwin_shadow_manager::handle_destroy(
        ::wl_client *client,
        struct wl_resource *resource)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_shadow_manager_object)) {
            wl_resource_destroy(resource);
            return;
        }
        static_cast<org_kde_kwin_shadow_manager *>(r->org_kde_kwin_shadow_manager_object)->org_kde_kwin_shadow_manager_destroy(
            r);
    }


    int org_kde_kwin_shadow::deferred_destroy_global_func(void *data) {
        auto object = static_cast<org_kde_kwin_shadow *>(data);
        wl_global_destroy(object->m_global);
        object->m_global = nullptr;
        wl_event_source_remove(object->m_globalRemovedEvent);
        object->m_globalRemovedEvent = nullptr;
        wl_list_remove(&object->m_displayDestroyedListener.link);
        object->org_kde_kwin_shadow_destroy_global();
        return 0;
    }

    org_kde_kwin_shadow::org_kde_kwin_shadow(struct ::wl_client *client, int id, int version)
        : m_resource_map()
        , m_resource(nullptr)
        , m_global(nullptr)
        , m_display(nullptr)
        , m_globalRemovedEvent(nullptr)
    {
        init(client, id, version);
    }

    org_kde_kwin_shadow::org_kde_kwin_shadow(struct ::wl_display *display, int version)
        : m_resource_map()
        , m_resource(nullptr)
        , m_global(nullptr)
        , m_display(nullptr)
        , m_globalRemovedEvent(nullptr)
    {
        init(display, version);
    }

    org_kde_kwin_shadow::org_kde_kwin_shadow(struct ::wl_resource *resource)
        : m_resource_map()
        , m_resource(nullptr)
        , m_global(nullptr)
        , m_display(nullptr)
        , m_globalRemovedEvent(nullptr)
    {
        init(resource);
    }

    org_kde_kwin_shadow::org_kde_kwin_shadow()
        : m_resource_map()
        , m_resource(nullptr)
        , m_global(nullptr)
        , m_display(nullptr)
        , m_globalRemovedEvent(nullptr)
    {
    }

    org_kde_kwin_shadow::~org_kde_kwin_shadow()
    {
        for (auto resource : std::as_const(m_resource_map))
            resource->org_kde_kwin_shadow_object = nullptr;

        if (m_resource)
            m_resource->org_kde_kwin_shadow_object = nullptr;

        if (m_global) {
            if (m_globalRemovedEvent)
                wl_event_source_remove(m_globalRemovedEvent);
            wl_global_destroy(m_global);
            wl_list_remove(&m_displayDestroyedListener.link);
        }
    }

    void org_kde_kwin_shadow::init(struct ::wl_client *client, int id, int version)
    {
        m_resource = bind(client, id, version);
    }

    void org_kde_kwin_shadow::init(struct ::wl_resource *resource)
    {
        m_resource = bind(resource);
    }

    org_kde_kwin_shadow::Resource *org_kde_kwin_shadow::add(struct ::wl_client *client, int version)
    {
        Resource *resource = bind(client, 0, version);
        m_resource_map.insert(client, resource);
        return resource;
    }

    org_kde_kwin_shadow::Resource *org_kde_kwin_shadow::add(struct ::wl_client *client, int id, int version)
    {
        Resource *resource = bind(client, id, version);
        m_resource_map.insert(client, resource);
        return resource;
    }

    void org_kde_kwin_shadow::init(struct ::wl_display *display, int version)
    {
        m_display = display;
        m_global = wl_global_create(display, &::org_kde_kwin_shadow_interface, version, this, bind_func);
        m_displayDestroyedListener.notify = org_kde_kwin_shadow::display_destroy_func;
        m_displayDestroyedListener.parent = this;
        wl_display_add_destroy_listener(display, &m_displayDestroyedListener);
    }

    const struct wl_interface *org_kde_kwin_shadow::interface()
    {
        return &::org_kde_kwin_shadow_interface;
    }

    org_kde_kwin_shadow::Resource *org_kde_kwin_shadow::org_kde_kwin_shadow_allocate()
    {
        return new Resource;
    }

    void org_kde_kwin_shadow::org_kde_kwin_shadow_destroy_global()
    {
    }

    void org_kde_kwin_shadow::org_kde_kwin_shadow_bind_resource(Resource *)
    {
    }

    void org_kde_kwin_shadow::org_kde_kwin_shadow_destroy_resource(Resource *)
    {
    }

    void org_kde_kwin_shadow::bind_func(struct ::wl_client *client, void *data, uint32_t version, uint32_t id)
    {
        org_kde_kwin_shadow *that = static_cast<org_kde_kwin_shadow *>(data);
        that->add(client, id, version);
    }

    void org_kde_kwin_shadow::display_destroy_func(struct ::wl_listener *listener, void *data)
    {
        Q_UNUSED(data);
        org_kde_kwin_shadow *that = static_cast<org_kde_kwin_shadow::DisplayDestroyedListener *>(listener)->parent;
        that->m_global = nullptr;
        that->m_globalRemovedEvent = nullptr;
    }

    void org_kde_kwin_shadow::destroy_func(struct ::wl_resource *client_resource)
    {
        Resource *resource = Resource::fromResource(client_resource);
        Q_ASSERT(resource);
        org_kde_kwin_shadow *that = resource->org_kde_kwin_shadow_object;
        if (Q_LIKELY(that)) {
            that->m_resource_map.remove(resource->client(), resource);
            that->org_kde_kwin_shadow_destroy_resource(resource);

            that = resource->org_kde_kwin_shadow_object;
            if (that && that->m_resource == resource)
                that->m_resource = nullptr;
        }
        delete resource;
    }


    void org_kde_kwin_shadow::globalRemove()
    {
        if (!m_global || m_globalRemovedEvent)
            return;

        wl_global_remove(m_global);

        struct wl_event_loop *event_loop = wl_display_get_event_loop(m_display);
        m_globalRemovedEvent = wl_event_loop_add_timer(event_loop, deferred_destroy_global_func, this);
        wl_event_source_timer_update(m_globalRemovedEvent, 10000);
    }

    org_kde_kwin_shadow::Resource *org_kde_kwin_shadow::bind(struct ::wl_client *client, uint32_t id, int version)
    {
        Q_ASSERT_X(!wl_client_get_object(client, id), "QWaylandObject bind", QStringLiteral("binding to object %1 more than once").arg(id).toLocal8Bit().constData());
        struct ::wl_resource *handle = wl_resource_create(client, &::org_kde_kwin_shadow_interface, version, id);
        return bind(handle);
    }

    org_kde_kwin_shadow::Resource *org_kde_kwin_shadow::bind(struct ::wl_resource *handle)
    {
        Resource *resource = org_kde_kwin_shadow_allocate();
        resource->org_kde_kwin_shadow_object = this;

        wl_resource_set_implementation(handle, &m_org_kde_kwin_shadow_interface, resource, destroy_func);
        resource->handle = handle;
        org_kde_kwin_shadow_bind_resource(resource);
        return resource;
    }
    org_kde_kwin_shadow::Resource *org_kde_kwin_shadow::Resource::fromResource(struct ::wl_resource *resource)
    {
        if (Q_UNLIKELY(!resource))
            return nullptr;
        if (wl_resource_instance_of(resource, &::org_kde_kwin_shadow_interface, &m_org_kde_kwin_shadow_interface))
            return static_cast<Resource *>(wl_resource_get_user_data(resource));
        return nullptr;
    }

    const struct ::org_kde_kwin_shadow_interface org_kde_kwin_shadow::m_org_kde_kwin_shadow_interface = {
        org_kde_kwin_shadow::handle_commit,
        org_kde_kwin_shadow::handle_attach_left,
        org_kde_kwin_shadow::handle_attach_top_left,
        org_kde_kwin_shadow::handle_attach_top,
        org_kde_kwin_shadow::handle_attach_top_right,
        org_kde_kwin_shadow::handle_attach_right,
        org_kde_kwin_shadow::handle_attach_bottom_right,
        org_kde_kwin_shadow::handle_attach_bottom,
        org_kde_kwin_shadow::handle_attach_bottom_left,
        org_kde_kwin_shadow::handle_set_left_offset,
        org_kde_kwin_shadow::handle_set_top_offset,
        org_kde_kwin_shadow::handle_set_right_offset,
        org_kde_kwin_shadow::handle_set_bottom_offset,
        org_kde_kwin_shadow::handle_destroy
    };

    void org_kde_kwin_shadow::org_kde_kwin_shadow_commit(Resource *)
    {
    }

    void org_kde_kwin_shadow::org_kde_kwin_shadow_attach_left(Resource *, struct ::wl_resource *)
    {
    }

    void org_kde_kwin_shadow::org_kde_kwin_shadow_attach_top_left(Resource *, struct ::wl_resource *)
    {
    }

    void org_kde_kwin_shadow::org_kde_kwin_shadow_attach_top(Resource *, struct ::wl_resource *)
    {
    }

    void org_kde_kwin_shadow::org_kde_kwin_shadow_attach_top_right(Resource *, struct ::wl_resource *)
    {
    }

    void org_kde_kwin_shadow::org_kde_kwin_shadow_attach_right(Resource *, struct ::wl_resource *)
    {
    }

    void org_kde_kwin_shadow::org_kde_kwin_shadow_attach_bottom_right(Resource *, struct ::wl_resource *)
    {
    }

    void org_kde_kwin_shadow::org_kde_kwin_shadow_attach_bottom(Resource *, struct ::wl_resource *)
    {
    }

    void org_kde_kwin_shadow::org_kde_kwin_shadow_attach_bottom_left(Resource *, struct ::wl_resource *)
    {
    }

    void org_kde_kwin_shadow::org_kde_kwin_shadow_set_left_offset(Resource *, wl_fixed_t )
    {
    }

    void org_kde_kwin_shadow::org_kde_kwin_shadow_set_top_offset(Resource *, wl_fixed_t )
    {
    }

    void org_kde_kwin_shadow::org_kde_kwin_shadow_set_right_offset(Resource *, wl_fixed_t )
    {
    }

    void org_kde_kwin_shadow::org_kde_kwin_shadow_set_bottom_offset(Resource *, wl_fixed_t )
    {
    }

    void org_kde_kwin_shadow::org_kde_kwin_shadow_destroy(Resource *)
    {
    }


    void org_kde_kwin_shadow::handle_commit(
        ::wl_client *client,
        struct wl_resource *resource)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_shadow_object)) {
            return;
        }
        static_cast<org_kde_kwin_shadow *>(r->org_kde_kwin_shadow_object)->org_kde_kwin_shadow_commit(
            r);
    }

    void org_kde_kwin_shadow::handle_attach_left(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *buffer)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_shadow_object)) {
            return;
        }
        static_cast<org_kde_kwin_shadow *>(r->org_kde_kwin_shadow_object)->org_kde_kwin_shadow_attach_left(
            r,
            buffer);
    }

    void org_kde_kwin_shadow::handle_attach_top_left(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *buffer)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_shadow_object)) {
            return;
        }
        static_cast<org_kde_kwin_shadow *>(r->org_kde_kwin_shadow_object)->org_kde_kwin_shadow_attach_top_left(
            r,
            buffer);
    }

    void org_kde_kwin_shadow::handle_attach_top(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *buffer)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_shadow_object)) {
            return;
        }
        static_cast<org_kde_kwin_shadow *>(r->org_kde_kwin_shadow_object)->org_kde_kwin_shadow_attach_top(
            r,
            buffer);
    }

    void org_kde_kwin_shadow::handle_attach_top_right(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *buffer)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_shadow_object)) {
            return;
        }
        static_cast<org_kde_kwin_shadow *>(r->org_kde_kwin_shadow_object)->org_kde_kwin_shadow_attach_top_right(
            r,
            buffer);
    }

    void org_kde_kwin_shadow::handle_attach_right(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *buffer)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_shadow_object)) {
            return;
        }
        static_cast<org_kde_kwin_shadow *>(r->org_kde_kwin_shadow_object)->org_kde_kwin_shadow_attach_right(
            r,
            buffer);
    }

    void org_kde_kwin_shadow::handle_attach_bottom_right(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *buffer)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_shadow_object)) {
            return;
        }
        static_cast<org_kde_kwin_shadow *>(r->org_kde_kwin_shadow_object)->org_kde_kwin_shadow_attach_bottom_right(
            r,
            buffer);
    }

    void org_kde_kwin_shadow::handle_attach_bottom(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *buffer)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_shadow_object)) {
            return;
        }
        static_cast<org_kde_kwin_shadow *>(r->org_kde_kwin_shadow_object)->org_kde_kwin_shadow_attach_bottom(
            r,
            buffer);
    }

    void org_kde_kwin_shadow::handle_attach_bottom_left(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *buffer)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_shadow_object)) {
            return;
        }
        static_cast<org_kde_kwin_shadow *>(r->org_kde_kwin_shadow_object)->org_kde_kwin_shadow_attach_bottom_left(
            r,
            buffer);
    }

    void org_kde_kwin_shadow::handle_set_left_offset(
        ::wl_client *client,
        struct wl_resource *resource,
        wl_fixed_t offset)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_shadow_object)) {
            return;
        }
        static_cast<org_kde_kwin_shadow *>(r->org_kde_kwin_shadow_object)->org_kde_kwin_shadow_set_left_offset(
            r,
            offset);
    }

    void org_kde_kwin_shadow::handle_set_top_offset(
        ::wl_client *client,
        struct wl_resource *resource,
        wl_fixed_t offset)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_shadow_object)) {
            return;
        }
        static_cast<org_kde_kwin_shadow *>(r->org_kde_kwin_shadow_object)->org_kde_kwin_shadow_set_top_offset(
            r,
            offset);
    }

    void org_kde_kwin_shadow::handle_set_right_offset(
        ::wl_client *client,
        struct wl_resource *resource,
        wl_fixed_t offset)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_shadow_object)) {
            return;
        }
        static_cast<org_kde_kwin_shadow *>(r->org_kde_kwin_shadow_object)->org_kde_kwin_shadow_set_right_offset(
            r,
            offset);
    }

    void org_kde_kwin_shadow::handle_set_bottom_offset(
        ::wl_client *client,
        struct wl_resource *resource,
        wl_fixed_t offset)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_shadow_object)) {
            return;
        }
        static_cast<org_kde_kwin_shadow *>(r->org_kde_kwin_shadow_object)->org_kde_kwin_shadow_set_bottom_offset(
            r,
            offset);
    }

    void org_kde_kwin_shadow::handle_destroy(
        ::wl_client *client,
        struct wl_resource *resource)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_shadow_object)) {
            wl_resource_destroy(resource);
            return;
        }
        static_cast<org_kde_kwin_shadow *>(r->org_kde_kwin_shadow_object)->org_kde_kwin_shadow_destroy(
            r);
    }
}

QT_WARNING_POP
QT_END_NAMESPACE
