// This file was generated by qtwaylandscanner
// source file is /pbulk/work/devel/qt6-qtwayland/work/qtwayland-everywhere-src-6.6.1/src/client/../3rdparty/protocol/qt-toplevel-drag-v1.xml

#ifndef QT_WAYLAND_QT_TOPLEVEL_DRAG_V1
#define QT_WAYLAND_QT_TOPLEVEL_DRAG_V1

#include <QtWaylandClient/private/wayland-qt-toplevel-drag-v1-client-protocol.h>
#include <QByteArray>
#include <QString>

struct wl_registry;

QT_BEGIN_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wmissing-field-initializers")
QT_WARNING_DISABLE_CLANG("-Wmissing-field-initializers")
#if !defined(Q_WAYLAND_CLIENT_QT_TOPLEVEL_DRAG_V1_EXPORT)
#  if defined(QT_SHARED) && !defined(QT_STATIC)
#    if defined(QT_BUILD_WAYLANDCLIENT_LIB)
#      define Q_WAYLAND_CLIENT_QT_TOPLEVEL_DRAG_V1_EXPORT Q_DECL_EXPORT
#    else
#      define Q_WAYLAND_CLIENT_QT_TOPLEVEL_DRAG_V1_EXPORT Q_DECL_IMPORT
#    endif
#  else
#    define Q_WAYLAND_CLIENT_QT_TOPLEVEL_DRAG_V1_EXPORT
#  endif
#endif

namespace QtWayland {
    class Q_WAYLAND_CLIENT_QT_TOPLEVEL_DRAG_V1_EXPORT qt_toplevel_drag_manager_v1
    {
    public:
        qt_toplevel_drag_manager_v1(struct ::wl_registry *registry, uint32_t id, int version);
        qt_toplevel_drag_manager_v1(struct ::qt_toplevel_drag_manager_v1 *object);
        qt_toplevel_drag_manager_v1();

        virtual ~qt_toplevel_drag_manager_v1();

        void init(struct ::wl_registry *registry, uint32_t id, int version);
        void init(struct ::qt_toplevel_drag_manager_v1 *object);

        struct ::qt_toplevel_drag_manager_v1 *object() { return m_qt_toplevel_drag_manager_v1; }
        const struct ::qt_toplevel_drag_manager_v1 *object() const { return m_qt_toplevel_drag_manager_v1; }
        static qt_toplevel_drag_manager_v1 *fromObject(struct ::qt_toplevel_drag_manager_v1 *object);

        bool isInitialized() const;

        uint32_t version() const;
        static const struct ::wl_interface *interface();

        enum error {
            error_invalid_source = 0, // data_source already used for toplevel drag
        };

        struct ::qt_toplevel_drag_v1 *get_qt_toplevel_drag(struct ::wl_data_source *data_source);
        void release();

    private:
        struct ::qt_toplevel_drag_manager_v1 *m_qt_toplevel_drag_manager_v1;
    };

    class Q_WAYLAND_CLIENT_QT_TOPLEVEL_DRAG_V1_EXPORT qt_toplevel_drag_v1
    {
    public:
        qt_toplevel_drag_v1(struct ::wl_registry *registry, uint32_t id, int version);
        qt_toplevel_drag_v1(struct ::qt_toplevel_drag_v1 *object);
        qt_toplevel_drag_v1();

        virtual ~qt_toplevel_drag_v1();

        void init(struct ::wl_registry *registry, uint32_t id, int version);
        void init(struct ::qt_toplevel_drag_v1 *object);

        struct ::qt_toplevel_drag_v1 *object() { return m_qt_toplevel_drag_v1; }
        const struct ::qt_toplevel_drag_v1 *object() const { return m_qt_toplevel_drag_v1; }
        static qt_toplevel_drag_v1 *fromObject(struct ::qt_toplevel_drag_v1 *object);

        bool isInitialized() const;

        uint32_t version() const;
        static const struct ::wl_interface *interface();

        enum error {
            error_drag_ended = 0, // corresponding drag has ended
        };

        void attach(struct ::xdg_toplevel *toplevel, int32_t x_offset, int32_t y_offset);
        void destroy();

    private:
        struct ::qt_toplevel_drag_v1 *m_qt_toplevel_drag_v1;
    };
}

QT_WARNING_POP
QT_END_NAMESPACE

#endif
