Blender V5.0
GWL_DataOffer Struct Reference

Public Attributes

struct { 
   wl_data_offer *   id = nullptr 
wl
std::unordered_set< std::string > types
struct { 
   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 607 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 624 of file GHOST_SystemWayland.cc.

Referenced by data_offer_handle_action().

◆ [struct]

◆ id

◆ 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 623 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 626 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: