// This file was generated by qtwaylandscanner
// source file is cursor-shape-v1.xml

#include <QtWaylandClient/private/wayland-wayland-client-protocol.h>
#include <QtWaylandClient/private/qwayland-cursor-shape-v1.h>

QT_BEGIN_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wmissing-field-initializers")
QT_WARNING_DISABLE_CLANG("-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);
}

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

    wp_cursor_shape_manager_v1::wp_cursor_shape_manager_v1(struct ::wp_cursor_shape_manager_v1 *obj)
        : m_wp_cursor_shape_manager_v1(obj)
    {
    }

    wp_cursor_shape_manager_v1::wp_cursor_shape_manager_v1()
        : m_wp_cursor_shape_manager_v1(nullptr)
    {
    }

    wp_cursor_shape_manager_v1::~wp_cursor_shape_manager_v1()
    {
    }

    void wp_cursor_shape_manager_v1::init(struct ::wl_registry *registry, uint32_t id, int version)
    {
        m_wp_cursor_shape_manager_v1 = static_cast<struct ::wp_cursor_shape_manager_v1 *>(wlRegistryBind(registry, id, &wp_cursor_shape_manager_v1_interface, version));
    }

    void wp_cursor_shape_manager_v1::init(struct ::wp_cursor_shape_manager_v1 *obj)
    {
        m_wp_cursor_shape_manager_v1 = obj;
    }

    wp_cursor_shape_manager_v1 *wp_cursor_shape_manager_v1::fromObject(struct ::wp_cursor_shape_manager_v1 *object)
    {
        return static_cast<wp_cursor_shape_manager_v1 *>(wp_cursor_shape_manager_v1_get_user_data(object));
    }

    bool wp_cursor_shape_manager_v1::isInitialized() const
    {
        return m_wp_cursor_shape_manager_v1 != nullptr;
    }

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

    const struct wl_interface *wp_cursor_shape_manager_v1::interface()
    {
        return &::wp_cursor_shape_manager_v1_interface;
    }

    void wp_cursor_shape_manager_v1::destroy()
    {
        ::wp_cursor_shape_manager_v1_destroy(
            m_wp_cursor_shape_manager_v1);
        m_wp_cursor_shape_manager_v1 = nullptr;
    }

    struct ::wp_cursor_shape_device_v1 *wp_cursor_shape_manager_v1::get_pointer(struct ::wl_pointer *pointer)
    {
        struct ::wp_cursor_shape_device_v1 * cursor_shape_device = ::wp_cursor_shape_manager_v1_get_pointer(
            m_wp_cursor_shape_manager_v1,
            pointer);
        return cursor_shape_device;
    }

    struct ::wp_cursor_shape_device_v1 *wp_cursor_shape_manager_v1::get_tablet_tool_v2(struct ::zwp_tablet_tool_v2 *tablet_tool)
    {
        struct ::wp_cursor_shape_device_v1 * cursor_shape_device = ::wp_cursor_shape_manager_v1_get_tablet_tool_v2(
            m_wp_cursor_shape_manager_v1,
            tablet_tool);
        return cursor_shape_device;
    }

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

    wp_cursor_shape_device_v1::wp_cursor_shape_device_v1(struct ::wp_cursor_shape_device_v1 *obj)
        : m_wp_cursor_shape_device_v1(obj)
    {
    }

    wp_cursor_shape_device_v1::wp_cursor_shape_device_v1()
        : m_wp_cursor_shape_device_v1(nullptr)
    {
    }

    wp_cursor_shape_device_v1::~wp_cursor_shape_device_v1()
    {
    }

    void wp_cursor_shape_device_v1::init(struct ::wl_registry *registry, uint32_t id, int version)
    {
        m_wp_cursor_shape_device_v1 = static_cast<struct ::wp_cursor_shape_device_v1 *>(wlRegistryBind(registry, id, &wp_cursor_shape_device_v1_interface, version));
    }

    void wp_cursor_shape_device_v1::init(struct ::wp_cursor_shape_device_v1 *obj)
    {
        m_wp_cursor_shape_device_v1 = obj;
    }

    wp_cursor_shape_device_v1 *wp_cursor_shape_device_v1::fromObject(struct ::wp_cursor_shape_device_v1 *object)
    {
        return static_cast<wp_cursor_shape_device_v1 *>(wp_cursor_shape_device_v1_get_user_data(object));
    }

    bool wp_cursor_shape_device_v1::isInitialized() const
    {
        return m_wp_cursor_shape_device_v1 != nullptr;
    }

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

    const struct wl_interface *wp_cursor_shape_device_v1::interface()
    {
        return &::wp_cursor_shape_device_v1_interface;
    }

    void wp_cursor_shape_device_v1::destroy()
    {
        ::wp_cursor_shape_device_v1_destroy(
            m_wp_cursor_shape_device_v1);
        m_wp_cursor_shape_device_v1 = nullptr;
    }

    void wp_cursor_shape_device_v1::set_shape(uint32_t serial, uint32_t shape)
    {
        ::wp_cursor_shape_device_v1_set_shape(
            m_wp_cursor_shape_device_v1,
            serial,
            shape);
    }
}

QT_WARNING_POP
QT_END_NAMESPACE
