summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2020-01-09 10:12:51 -0500
committerChristopher Michael <cp.michael@samsung.com>2020-01-09 10:20:46 -0500
commitb3114e2484d831bfedfd4f21ece766742a5e1acf (patch)
treef50e7d6e0369f2ca997074beaf4b5b9f3ff09786
parente5c64b13c159125d86a671e7fde36d7517d0f27b (diff)
ecore-wl2: Move ecore_wl2_dnd functions to be internal
These functions are not used inside Enlightenment and are only used internally in EFL, so no need to be public ref T8013
-rw-r--r--src/lib/ecore_wl2/Ecore_Wl2.h94
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_internal.h93
2 files changed, 93 insertions, 94 deletions
diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index 484708287c..63b62c5752 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -452,7 +452,6 @@ typedef struct _Ecore_Wl2_Surface_Interface
452 * @li @ref Ecore_Wl2_Display_Group 452 * @li @ref Ecore_Wl2_Display_Group
453 * @li @ref Ecore_Wl2_Window_Group 453 * @li @ref Ecore_Wl2_Window_Group
454 * @li @ref Ecore_Wl2_Output_Group 454 * @li @ref Ecore_Wl2_Output_Group
455 * @li @ref Ecore_Wl2_Dnd_Group
456 * @li @ref Ecore_Wl2_Input_Group 455 * @li @ref Ecore_Wl2_Input_Group
457 * @li @ref Ecore_Wl2_Subsurface_Group 456 * @li @ref Ecore_Wl2_Subsurface_Group
458 */ 457 */
@@ -1566,99 +1565,6 @@ EAPI void ecore_wl2_input_pointer_set(Ecore_Wl2_Input *input, struct wl_surface
1566EAPI void ecore_wl2_input_cursor_from_name_set(Ecore_Wl2_Input *input, const char *cursor); 1565EAPI void ecore_wl2_input_cursor_from_name_set(Ecore_Wl2_Input *input, const char *cursor);
1567 1566
1568/** 1567/**
1569 * @defgroup Ecore_Wl2_Dnd_Group Wayland Library Drag-n-Drop Functions
1570 * @ingroup Ecore_Wl2_Group
1571 *
1572 * Functions that deal with creating, destroying, or interacting with
1573 * Wayland Drag-n-Drop
1574 */
1575
1576/**
1577 * Set the types which are supported by a possible drag and drop operation.
1578 * This call initializes a data source and offeres the given mimetypes
1579 *
1580 * @param input the input where to add on the data source
1581 * @param types a null-terminated array of mimetypes
1582 *
1583 * @ingroup Ecore_Wl2_Dnd_Group
1584 * @since 1.17
1585 */
1586EAPI void ecore_wl2_dnd_drag_types_set(Ecore_Wl2_Input *input, const char **types);
1587
1588/**
1589 * Start a drag on the given input
1590 *
1591 * @param input the input to use
1592 * @param window the window which is the origin of the drag operation
1593 * @param drag_window the window which is used as window of the visible hint.
1594 *
1595 * @return The serial for the start_drag request
1596 *
1597 * @ingroup Ecore_Wl2_Dnd_Group
1598 * @since 1.17
1599 */
1600EAPI uint32_t ecore_wl2_dnd_drag_start(Ecore_Wl2_Input *input, Ecore_Wl2_Window *window, Ecore_Wl2_Window *drag_window);
1601
1602/**
1603 * Call wl_data_source.set_actions on an existing source
1604 *
1605 * @param input the input to use
1606 *
1607 * @see ecore_wl2_dnd_drag_start for a more useful function.
1608 *
1609 * @ingroup Ecore_Wl2_Dnd_Group
1610 * @since 1.20
1611 */
1612EAPI void ecore_wl2_dnd_set_actions(Ecore_Wl2_Input *input);
1613
1614/**
1615 * End a drag started by a call to ecore_wl2_dnd_drag_start
1616 *
1617 * @param input the input object on which the drag was started
1618 *
1619 * @ingroup Ecore_Wl2_Dnd_Group
1620 * @since 1.17
1621 */
1622EAPI void ecore_wl2_dnd_drag_end(Ecore_Wl2_Input *input);
1623
1624/**
1625 * Get the offer which is currently resposible for the clipboard
1626 *
1627 * @param input the input object to use
1628 *
1629 * @ingroup Ecore_Wl2_Dnd_Group
1630 * @since 1.19
1631 */
1632EAPI Ecore_Wl2_Offer* ecore_wl2_dnd_selection_get(Ecore_Wl2_Input *input);
1633
1634/**
1635 * Set the types which are available from this client
1636 * Later the event ECORE_WL2_EVENT_DATA_SOURCE_SEND is emitted,
1637 * where the caller of this api must write the data (encoded in the given mimetype) to the fd
1638 *
1639 * @param input the input to provice this types on
1640 * @param types a null-terminated array of mimetypes supported by the client
1641 *
1642 * @return serial of request on success, 0 on failure
1643 *
1644 * @ingroup Ecore_Wl2_Dnd_Group
1645 * @since 1.17
1646 */
1647EAPI uint32_t ecore_wl2_dnd_selection_set(Ecore_Wl2_Input *input, const char **types);
1648
1649/**
1650 * Clear the selection currently setted on this input.
1651 *
1652 * @param input the input to clear
1653 *
1654 * @return serial of request on success, 0 on failure
1655 *
1656 * @ingroup Ecore_Wl2_Dnd_Group
1657 * @since 1.17
1658 */
1659EAPI uint32_t ecore_wl2_dnd_selection_clear(Ecore_Wl2_Input *input);
1660
1661/**
1662 * @defgroup Ecore_Wl2_Subsurface_Group Functions to manipulate subsurfaces. 1568 * @defgroup Ecore_Wl2_Subsurface_Group Functions to manipulate subsurfaces.
1663 * @ingroup Ecore_Wl2_Group 1569 * @ingroup Ecore_Wl2_Group
1664 * 1570 *
diff --git a/src/lib/ecore_wl2/ecore_wl2_internal.h b/src/lib/ecore_wl2/ecore_wl2_internal.h
index cda98d6459..82f7046ed1 100644
--- a/src/lib/ecore_wl2/ecore_wl2_internal.h
+++ b/src/lib/ecore_wl2/ecore_wl2_internal.h
@@ -125,6 +125,99 @@ EAPI void ecore_wl2_window_iconified_set(Ecore_Wl2_Window *window, Eina_Bool ico
125 */ 125 */
126EAPI Eina_Bool ecore_wl2_window_pending_get(Ecore_Wl2_Window *window); 126EAPI Eina_Bool ecore_wl2_window_pending_get(Ecore_Wl2_Window *window);
127 127
128/**
129 * @defgroup Ecore_Wl2_Dnd_Group Wayland Library Drag-n-Drop Functions
130 * @ingroup Ecore_Wl2_Group
131 *
132 * Functions that deal with creating, destroying, or interacting with
133 * Wayland Drag-n-Drop
134 */
135
136/**
137 * Set the types which are supported by a possible drag and drop operation.
138 * This call initializes a data source and offeres the given mimetypes
139 *
140 * @param input the input where to add on the data source
141 * @param types a null-terminated array of mimetypes
142 *
143 * @ingroup Ecore_Wl2_Dnd_Group
144 * @since 1.17
145 */
146EAPI void ecore_wl2_dnd_drag_types_set(Ecore_Wl2_Input *input, const char **types);
147
148/**
149 * Start a drag on the given input
150 *
151 * @param input the input to use
152 * @param window the window which is the origin of the drag operation
153 * @param drag_window the window which is used as window of the visible hint.
154 *
155 * @return The serial for the start_drag request
156 *
157 * @ingroup Ecore_Wl2_Dnd_Group
158 * @since 1.17
159 */
160EAPI uint32_t ecore_wl2_dnd_drag_start(Ecore_Wl2_Input *input, Ecore_Wl2_Window *window, Ecore_Wl2_Window *drag_window);
161
162/**
163 * Call wl_data_source.set_actions on an existing source
164 *
165 * @param input the input to use
166 *
167 * @see ecore_wl2_dnd_drag_start for a more useful function.
168 *
169 * @ingroup Ecore_Wl2_Dnd_Group
170 * @since 1.20
171 */
172EAPI void ecore_wl2_dnd_set_actions(Ecore_Wl2_Input *input);
173
174/**
175 * End a drag started by a call to ecore_wl2_dnd_drag_start
176 *
177 * @param input the input object on which the drag was started
178 *
179 * @ingroup Ecore_Wl2_Dnd_Group
180 * @since 1.17
181 */
182EAPI void ecore_wl2_dnd_drag_end(Ecore_Wl2_Input *input);
183
184/**
185 * Get the offer which is currently resposible for the clipboard
186 *
187 * @param input the input object to use
188 *
189 * @ingroup Ecore_Wl2_Dnd_Group
190 * @since 1.19
191 */
192EAPI Ecore_Wl2_Offer* ecore_wl2_dnd_selection_get(Ecore_Wl2_Input *input);
193
194/**
195 * Set the types which are available from this client
196 * Later the event ECORE_WL2_EVENT_DATA_SOURCE_SEND is emitted,
197 * where the caller of this api must write the data (encoded in the given mimetype) to the fd
198 *
199 * @param input the input to provice this types on
200 * @param types a null-terminated array of mimetypes supported by the client
201 *
202 * @return serial of request on success, 0 on failure
203 *
204 * @ingroup Ecore_Wl2_Dnd_Group
205 * @since 1.17
206 */
207EAPI uint32_t ecore_wl2_dnd_selection_set(Ecore_Wl2_Input *input, const char **types);
208
209/**
210 * Clear the selection currently setted on this input.
211 *
212 * @param input the input to clear
213 *
214 * @return serial of request on success, 0 on failure
215 *
216 * @ingroup Ecore_Wl2_Dnd_Group
217 * @since 1.17
218 */
219EAPI uint32_t ecore_wl2_dnd_selection_clear(Ecore_Wl2_Input *input);
220
128# undef EAPI 221# undef EAPI
129# define EAPI 222# define EAPI
130 223