// This file was generated by qtwaylandscanner
// source file is /build/qt6-wayland/src/qtwayland-everywhere-src-6.3.0/src/client/../3rdparty/protocol/pointer-gestures-unstable-v1.xml

#include <QtWaylandClient/private/wayland-wayland-client-protocol.h>
#include <QtWaylandClient/private/qwayland-pointer-gestures-unstable-v1.h>

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

namespace QtWayland {

static inline void *wlRegistryBind(struct ::wl_registry *registry, uint32_t name, const struct ::wl_interface *interface, uint32_t version)
{
    const uint32_t bindOpCode = 0;
    return (void *) wl_proxy_marshal_constructor_versioned((struct wl_proxy *) registry,
    bindOpCode, interface, version, name, interface->name, version, nullptr);
}

    zwp_pointer_gestures_v1::zwp_pointer_gestures_v1(struct ::wl_registry *registry, uint32_t id, int version)
    {
        init(registry, id, version);
    }

    zwp_pointer_gestures_v1::zwp_pointer_gestures_v1(struct ::zwp_pointer_gestures_v1 *obj)
        : m_zwp_pointer_gestures_v1(obj)
    {
    }

    zwp_pointer_gestures_v1::zwp_pointer_gestures_v1()
        : m_zwp_pointer_gestures_v1(nullptr)
    {
    }

    zwp_pointer_gestures_v1::~zwp_pointer_gestures_v1()
    {
    }

    void zwp_pointer_gestures_v1::init(struct ::wl_registry *registry, uint32_t id, int version)
    {
        m_zwp_pointer_gestures_v1 = static_cast<struct ::zwp_pointer_gestures_v1 *>(wlRegistryBind(registry, id, &zwp_pointer_gestures_v1_interface, version));
    }

    void zwp_pointer_gestures_v1::init(struct ::zwp_pointer_gestures_v1 *obj)
    {
        m_zwp_pointer_gestures_v1 = obj;
    }

    zwp_pointer_gestures_v1 *zwp_pointer_gestures_v1::fromObject(struct ::zwp_pointer_gestures_v1 *object)
    {
        return static_cast<zwp_pointer_gestures_v1 *>(zwp_pointer_gestures_v1_get_user_data(object));
    }

    bool zwp_pointer_gestures_v1::isInitialized() const
    {
        return m_zwp_pointer_gestures_v1 != nullptr;
    }

    uint32_t zwp_pointer_gestures_v1::version() const
    {
        return wl_proxy_get_version(reinterpret_cast<wl_proxy*>(m_zwp_pointer_gestures_v1));
    }

    const struct wl_interface *zwp_pointer_gestures_v1::interface()
    {
        return &::zwp_pointer_gestures_v1_interface;
    }

    struct ::zwp_pointer_gesture_swipe_v1 *zwp_pointer_gestures_v1::get_swipe_gesture(struct ::wl_pointer *pointer)
    {
        return ::zwp_pointer_gestures_v1_get_swipe_gesture(
            m_zwp_pointer_gestures_v1,
            pointer);
    }

    struct ::zwp_pointer_gesture_pinch_v1 *zwp_pointer_gestures_v1::get_pinch_gesture(struct ::wl_pointer *pointer)
    {
        return ::zwp_pointer_gestures_v1_get_pinch_gesture(
            m_zwp_pointer_gestures_v1,
            pointer);
    }

    void zwp_pointer_gestures_v1::release()
    {
        ::zwp_pointer_gestures_v1_release(
            m_zwp_pointer_gestures_v1);
        m_zwp_pointer_gestures_v1 = nullptr;
    }

    zwp_pointer_gesture_swipe_v1::zwp_pointer_gesture_swipe_v1(struct ::wl_registry *registry, uint32_t id, int version)
    {
        init(registry, id, version);
    }

    zwp_pointer_gesture_swipe_v1::zwp_pointer_gesture_swipe_v1(struct ::zwp_pointer_gesture_swipe_v1 *obj)
        : m_zwp_pointer_gesture_swipe_v1(obj)
    {
        init_listener();
    }

    zwp_pointer_gesture_swipe_v1::zwp_pointer_gesture_swipe_v1()
        : m_zwp_pointer_gesture_swipe_v1(nullptr)
    {
    }

    zwp_pointer_gesture_swipe_v1::~zwp_pointer_gesture_swipe_v1()
    {
    }

    void zwp_pointer_gesture_swipe_v1::init(struct ::wl_registry *registry, uint32_t id, int version)
    {
        m_zwp_pointer_gesture_swipe_v1 = static_cast<struct ::zwp_pointer_gesture_swipe_v1 *>(wlRegistryBind(registry, id, &zwp_pointer_gesture_swipe_v1_interface, version));
        init_listener();
    }

    void zwp_pointer_gesture_swipe_v1::init(struct ::zwp_pointer_gesture_swipe_v1 *obj)
    {
        m_zwp_pointer_gesture_swipe_v1 = obj;
        init_listener();
    }

    zwp_pointer_gesture_swipe_v1 *zwp_pointer_gesture_swipe_v1::fromObject(struct ::zwp_pointer_gesture_swipe_v1 *object)
    {
        if (wl_proxy_get_listener((struct ::wl_proxy *)object) != (void *)&m_zwp_pointer_gesture_swipe_v1_listener)
            return nullptr;
        return static_cast<zwp_pointer_gesture_swipe_v1 *>(zwp_pointer_gesture_swipe_v1_get_user_data(object));
    }

    bool zwp_pointer_gesture_swipe_v1::isInitialized() const
    {
        return m_zwp_pointer_gesture_swipe_v1 != nullptr;
    }

    uint32_t zwp_pointer_gesture_swipe_v1::version() const
    {
        return wl_proxy_get_version(reinterpret_cast<wl_proxy*>(m_zwp_pointer_gesture_swipe_v1));
    }

    const struct wl_interface *zwp_pointer_gesture_swipe_v1::interface()
    {
        return &::zwp_pointer_gesture_swipe_v1_interface;
    }

    void zwp_pointer_gesture_swipe_v1::destroy()
    {
        ::zwp_pointer_gesture_swipe_v1_destroy(
            m_zwp_pointer_gesture_swipe_v1);
        m_zwp_pointer_gesture_swipe_v1 = nullptr;
    }

    void zwp_pointer_gesture_swipe_v1::zwp_pointer_gesture_swipe_v1_begin(uint32_t , uint32_t , struct ::wl_surface *, uint32_t )
    {
    }

    void zwp_pointer_gesture_swipe_v1::handle_begin(
        void *data,
        struct ::zwp_pointer_gesture_swipe_v1 *object,
        uint32_t serial,
        uint32_t time,
        struct ::wl_surface *surface,
        uint32_t fingers)
    {
        Q_UNUSED(object);
        static_cast<zwp_pointer_gesture_swipe_v1 *>(data)->zwp_pointer_gesture_swipe_v1_begin(
            serial,
            time,
            surface,
            fingers);
    }

    void zwp_pointer_gesture_swipe_v1::zwp_pointer_gesture_swipe_v1_update(uint32_t , wl_fixed_t , wl_fixed_t )
    {
    }

    void zwp_pointer_gesture_swipe_v1::handle_update(
        void *data,
        struct ::zwp_pointer_gesture_swipe_v1 *object,
        uint32_t time,
        wl_fixed_t dx,
        wl_fixed_t dy)
    {
        Q_UNUSED(object);
        static_cast<zwp_pointer_gesture_swipe_v1 *>(data)->zwp_pointer_gesture_swipe_v1_update(
            time,
            dx,
            dy);
    }

    void zwp_pointer_gesture_swipe_v1::zwp_pointer_gesture_swipe_v1_end(uint32_t , uint32_t , int32_t )
    {
    }

    void zwp_pointer_gesture_swipe_v1::handle_end(
        void *data,
        struct ::zwp_pointer_gesture_swipe_v1 *object,
        uint32_t serial,
        uint32_t time,
        int32_t cancelled)
    {
        Q_UNUSED(object);
        static_cast<zwp_pointer_gesture_swipe_v1 *>(data)->zwp_pointer_gesture_swipe_v1_end(
            serial,
            time,
            cancelled);
    }

    const struct zwp_pointer_gesture_swipe_v1_listener zwp_pointer_gesture_swipe_v1::m_zwp_pointer_gesture_swipe_v1_listener = {
        zwp_pointer_gesture_swipe_v1::handle_begin,
        zwp_pointer_gesture_swipe_v1::handle_update,
        zwp_pointer_gesture_swipe_v1::handle_end,
    };

    void zwp_pointer_gesture_swipe_v1::init_listener()
    {
        zwp_pointer_gesture_swipe_v1_add_listener(m_zwp_pointer_gesture_swipe_v1, &m_zwp_pointer_gesture_swipe_v1_listener, this);
    }

    zwp_pointer_gesture_pinch_v1::zwp_pointer_gesture_pinch_v1(struct ::wl_registry *registry, uint32_t id, int version)
    {
        init(registry, id, version);
    }

    zwp_pointer_gesture_pinch_v1::zwp_pointer_gesture_pinch_v1(struct ::zwp_pointer_gesture_pinch_v1 *obj)
        : m_zwp_pointer_gesture_pinch_v1(obj)
    {
        init_listener();
    }

    zwp_pointer_gesture_pinch_v1::zwp_pointer_gesture_pinch_v1()
        : m_zwp_pointer_gesture_pinch_v1(nullptr)
    {
    }

    zwp_pointer_gesture_pinch_v1::~zwp_pointer_gesture_pinch_v1()
    {
    }

    void zwp_pointer_gesture_pinch_v1::init(struct ::wl_registry *registry, uint32_t id, int version)
    {
        m_zwp_pointer_gesture_pinch_v1 = static_cast<struct ::zwp_pointer_gesture_pinch_v1 *>(wlRegistryBind(registry, id, &zwp_pointer_gesture_pinch_v1_interface, version));
        init_listener();
    }

    void zwp_pointer_gesture_pinch_v1::init(struct ::zwp_pointer_gesture_pinch_v1 *obj)
    {
        m_zwp_pointer_gesture_pinch_v1 = obj;
        init_listener();
    }

    zwp_pointer_gesture_pinch_v1 *zwp_pointer_gesture_pinch_v1::fromObject(struct ::zwp_pointer_gesture_pinch_v1 *object)
    {
        if (wl_proxy_get_listener((struct ::wl_proxy *)object) != (void *)&m_zwp_pointer_gesture_pinch_v1_listener)
            return nullptr;
        return static_cast<zwp_pointer_gesture_pinch_v1 *>(zwp_pointer_gesture_pinch_v1_get_user_data(object));
    }

    bool zwp_pointer_gesture_pinch_v1::isInitialized() const
    {
        return m_zwp_pointer_gesture_pinch_v1 != nullptr;
    }

    uint32_t zwp_pointer_gesture_pinch_v1::version() const
    {
        return wl_proxy_get_version(reinterpret_cast<wl_proxy*>(m_zwp_pointer_gesture_pinch_v1));
    }

    const struct wl_interface *zwp_pointer_gesture_pinch_v1::interface()
    {
        return &::zwp_pointer_gesture_pinch_v1_interface;
    }

    void zwp_pointer_gesture_pinch_v1::destroy()
    {
        ::zwp_pointer_gesture_pinch_v1_destroy(
            m_zwp_pointer_gesture_pinch_v1);
        m_zwp_pointer_gesture_pinch_v1 = nullptr;
    }

    void zwp_pointer_gesture_pinch_v1::zwp_pointer_gesture_pinch_v1_begin(uint32_t , uint32_t , struct ::wl_surface *, uint32_t )
    {
    }

    void zwp_pointer_gesture_pinch_v1::handle_begin(
        void *data,
        struct ::zwp_pointer_gesture_pinch_v1 *object,
        uint32_t serial,
        uint32_t time,
        struct ::wl_surface *surface,
        uint32_t fingers)
    {
        Q_UNUSED(object);
        static_cast<zwp_pointer_gesture_pinch_v1 *>(data)->zwp_pointer_gesture_pinch_v1_begin(
            serial,
            time,
            surface,
            fingers);
    }

    void zwp_pointer_gesture_pinch_v1::zwp_pointer_gesture_pinch_v1_update(uint32_t , wl_fixed_t , wl_fixed_t , wl_fixed_t , wl_fixed_t )
    {
    }

    void zwp_pointer_gesture_pinch_v1::handle_update(
        void *data,
        struct ::zwp_pointer_gesture_pinch_v1 *object,
        uint32_t time,
        wl_fixed_t dx,
        wl_fixed_t dy,
        wl_fixed_t scale,
        wl_fixed_t rotation)
    {
        Q_UNUSED(object);
        static_cast<zwp_pointer_gesture_pinch_v1 *>(data)->zwp_pointer_gesture_pinch_v1_update(
            time,
            dx,
            dy,
            scale,
            rotation);
    }

    void zwp_pointer_gesture_pinch_v1::zwp_pointer_gesture_pinch_v1_end(uint32_t , uint32_t , int32_t )
    {
    }

    void zwp_pointer_gesture_pinch_v1::handle_end(
        void *data,
        struct ::zwp_pointer_gesture_pinch_v1 *object,
        uint32_t serial,
        uint32_t time,
        int32_t cancelled)
    {
        Q_UNUSED(object);
        static_cast<zwp_pointer_gesture_pinch_v1 *>(data)->zwp_pointer_gesture_pinch_v1_end(
            serial,
            time,
            cancelled);
    }

    const struct zwp_pointer_gesture_pinch_v1_listener zwp_pointer_gesture_pinch_v1::m_zwp_pointer_gesture_pinch_v1_listener = {
        zwp_pointer_gesture_pinch_v1::handle_begin,
        zwp_pointer_gesture_pinch_v1::handle_update,
        zwp_pointer_gesture_pinch_v1::handle_end,
    };

    void zwp_pointer_gesture_pinch_v1::init_listener()
    {
        zwp_pointer_gesture_pinch_v1_add_listener(m_zwp_pointer_gesture_pinch_v1, &m_zwp_pointer_gesture_pinch_v1_listener, this);
    }
}

QT_WARNING_POP
QT_END_NAMESPACE
