mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
data-device: split into multiple files
This commit is contained in:
parent
509d38425c
commit
1e563e7ecf
7 changed files with 1270 additions and 1204 deletions
32
include/types/wlr_data_device.h
Normal file
32
include/types/wlr_data_device.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#ifndef TYPES_WLR_DATA_DEVICE_H
|
||||
#define TYPES_WLR_DATA_DEVICE_H
|
||||
|
||||
#include <wayland-server.h>
|
||||
|
||||
#define DATA_DEVICE_ALL_ACTIONS (WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY | \
|
||||
WL_DATA_DEVICE_MANAGER_DND_ACTION_MOVE | \
|
||||
WL_DATA_DEVICE_MANAGER_DND_ACTION_ASK)
|
||||
|
||||
struct wlr_client_data_source {
|
||||
struct wlr_data_source source;
|
||||
struct wlr_data_source_impl impl;
|
||||
struct wl_resource *resource;
|
||||
};
|
||||
|
||||
struct wlr_data_offer *data_offer_create(struct wl_client *client,
|
||||
struct wlr_data_source *source, uint32_t version);
|
||||
void data_offer_update_action(struct wlr_data_offer *offer);
|
||||
|
||||
struct wlr_client_data_source *client_data_source_create(
|
||||
struct wl_client *client, uint32_t version, uint32_t id);
|
||||
struct wlr_client_data_source *client_data_source_from_resource(
|
||||
struct wl_resource *resource);
|
||||
struct wlr_data_offer *data_source_send_offer(struct wlr_data_source *source,
|
||||
struct wlr_seat_client *target);
|
||||
void data_source_notify_finish(struct wlr_data_source *source);
|
||||
|
||||
bool seat_client_start_drag(struct wlr_seat_client *client,
|
||||
struct wlr_data_source *source, struct wlr_surface *icon_surface,
|
||||
struct wlr_surface *origin, uint32_t serial);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue