Blender V4.3
GWL_DataOffer Struct Reference

Public Attributes

struct { 
 
   wl_data_offer *   id = nullptr 
 
wl 
 
std::unordered_set< std::string > types
 
struct { 
 
   bool   in_use = false 
 
   enum wl_data_device_manager_dnd_action   source_actions = WL_DATA_DEVICE_MANAGER_DND_ACTION_NONE 
 
   enum wl_data_device_manager_dnd_action   action = WL_DATA_DEVICE_MANAGER_DND_ACTION_NONE 
 
   wl_fixed_t   xy [2] = {0, 0} 
 
dnd 
 

Detailed Description

Data storage used for clipboard paste & drag-and-drop.

Definition at line 590 of file GHOST_SystemWayland.cc.

Member Data Documentation

◆ action

enum wl_data_device_manager_dnd_action GWL_DataOffer::action = WL_DATA_DEVICE_MANAGER_DND_ACTION_NONE

Definition at line 612 of file GHOST_SystemWayland.cc.

Referenced by data_offer_handle_action().

◆ [struct]

◆ id

◆ in_use

bool GWL_DataOffer::in_use = false

Prevents freeing after #wl_data_device_listener.leave, before #wl_data_device_listener.drop.

Definition at line 604 of file GHOST_SystemWayland.cc.

Referenced by data_device_handle_enter(), data_device_handle_leave(), and read_buffer_from_data_offer().

◆ source_actions

enum wl_data_device_manager_dnd_action GWL_DataOffer::source_actions = WL_DATA_DEVICE_MANAGER_DND_ACTION_NONE

Bit-mask with available drop options. #WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY, #WL_DATA_DEVICE_MANAGER_DND_ACTION_MOVE.. etc. The application that initializes the drag may set these depending on modifiers held

Note
when dragging begins. Currently ghost doesn't make use of these.

Definition at line 611 of file GHOST_SystemWayland.cc.

Referenced by data_offer_handle_source_actions().

◆ types

◆ [struct]

◆ xy

wl_fixed_t GWL_DataOffer::xy[2] = {0, 0}

Compatible with #GWL_Seat.xy coordinates.

Definition at line 614 of file GHOST_SystemWayland.cc.

Referenced by data_device_handle_drop(), data_device_handle_enter(), data_device_handle_motion(), and dnd_events().


The documentation for this struct was generated from the following file: