#include "DSWaylandPointer.h"
#include "DSWaylandPointerPrivate.h"
+#include "DSWaylandClient.h"
namespace display_server
{
__p_ptr(pointer),
__seat(seat)
{
+ wl_pointer();
}
DSWaylandPointerPrivate::~DSWaylandPointerPrivate()
void DSWaylandPointerPrivate::pointer_bind_resource(Resource *resource)
{
+ DSLOG_INF("DSWaylandPointerPrivate","");
}
void DSWaylandPointerPrivate::pointer_destroy_resource(Resource *resource)
{
+ DSLOG_INF("DSWaylandPointerPrivate","");
}
void DSWaylandPointerPrivate::pointer_set_cursor(Resource *resource, uint32_t serial, struct ::wl_resource *surface, int32_t hotspot_x, int32_t hotspot_y)
{
+ DSLOG_INF("DSWaylandPointerPrivate","");
}
void DSWaylandPointerPrivate::pointer_release(Resource *resource)
{
+ DSLOG_INF("DSWaylandPointerPrivate","");
+ wl_resource_destroy(resource->handle);
}
/* Begin Public Class Implementation */
DSWaylandPointer::DSWaylandPointer(DSWaylandSeat *seat)
: DSObject(), _d_ptr(std::make_unique<DSWaylandPointerPrivate>(seat, this))
{
+ //TODO : emit signal
}
DSWaylandPointer::~DSWaylandPointer()
{
+ //TODO : emit signal
}
DSWaylandSeat *DSWaylandPointer::seat()
return priv->__seat;
}
+void DSWaylandPointer::addClient(DSWaylandClient *client, uint32_t id, int version)
+{
+ DS_GET_PRIV(DSWaylandPointer);
+
+ DSLOG_INF("DSWaylandPointer", "addClient(dswlClient=%p, id=%u, version=%d", client, id, version);
+
+ priv->add(client->wlClient(), id, version);
+}
+
}
\ No newline at end of file