\hypertarget{group__Ecore__Wl2__Dnd__Group}{}\doxysection{Wayland Library Drag-\/n-\/\+Drop Functions}
\label{group__Ecore__Wl2__Dnd__Group}\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}


Functions that deal with creating, destroying, or interacting with Wayland Drag-\/n-\/\+Drop.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
EAPI void \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_ga91d1233edd089fef28c60743127a8733}{ecore\+\_\+wl2\+\_\+dnd\+\_\+drag\+\_\+types\+\_\+set}} (Ecore\+\_\+\+Wl2\+\_\+\+Input $\ast$input, const char $\ast$$\ast$types)
\begin{DoxyCompactList}\small\item\em Set the types which are supported by a possible drag and drop operation. \end{DoxyCompactList}\item 
EAPI uint32\+\_\+t \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_ga78c27a85eab2b010467d58a15c67b2cd}{ecore\+\_\+wl2\+\_\+dnd\+\_\+drag\+\_\+start}} (Ecore\+\_\+\+Wl2\+\_\+\+Input $\ast$input, Ecore\+\_\+\+Wl2\+\_\+\+Window $\ast$window, Ecore\+\_\+\+Wl2\+\_\+\+Window $\ast$drag\+\_\+window)
\begin{DoxyCompactList}\small\item\em Start a drag on the given input. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_gab53c693884e5a7fd20b66943ec7f76f2}{ecore\+\_\+wl2\+\_\+dnd\+\_\+set\+\_\+actions}} (Ecore\+\_\+\+Wl2\+\_\+\+Input $\ast$input)
\begin{DoxyCompactList}\small\item\em Call wl\+\_\+data\+\_\+source.\+set\+\_\+actions on an existing source. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_gab160a1d2bec2091a6f445c1e51433a24}{ecore\+\_\+wl2\+\_\+dnd\+\_\+drag\+\_\+end}} (Ecore\+\_\+\+Wl2\+\_\+\+Input $\ast$input)
\begin{DoxyCompactList}\small\item\em End a drag started by a call to ecore\+\_\+wl2\+\_\+dnd\+\_\+drag\+\_\+start. \end{DoxyCompactList}\item 
EAPI Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$ \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_ga42b1df549a92375db862f5bad4f89c5d}{ecore\+\_\+wl2\+\_\+dnd\+\_\+selection\+\_\+get}} (Ecore\+\_\+\+Wl2\+\_\+\+Input $\ast$input)
\begin{DoxyCompactList}\small\item\em Get the offer which is currently resposible for the clipboard. \end{DoxyCompactList}\item 
EAPI uint32\+\_\+t \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_ga4b77880d3bda13c1015d821f321a6b9c}{ecore\+\_\+wl2\+\_\+dnd\+\_\+selection\+\_\+set}} (Ecore\+\_\+\+Wl2\+\_\+\+Input $\ast$input, const char $\ast$$\ast$types)
\begin{DoxyCompactList}\small\item\em Set the types which are available from this client Later the event ECORE\+\_\+\+WL2\+\_\+\+EVENT\+\_\+\+DATA\+\_\+\+SOURCE\+\_\+\+SEND is emitted, where the caller of this api must write the data (encoded in the given mimetype) to the fd. \end{DoxyCompactList}\item 
EAPI uint32\+\_\+t \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_gac170de39eb1f25bab4f54deea55f0eba}{ecore\+\_\+wl2\+\_\+dnd\+\_\+selection\+\_\+clear}} (Ecore\+\_\+\+Wl2\+\_\+\+Input $\ast$input)
\begin{DoxyCompactList}\small\item\em Clear the selection currently setted on this input. \end{DoxyCompactList}\item 
EAPI Ecore\+\_\+\+Wl2\+\_\+\+Drag\+\_\+\+Action \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_ga6023816b67eafd8f4fc2713bc040760d}{ecore\+\_\+wl2\+\_\+offer\+\_\+actions\+\_\+get}} (Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$offer)
\begin{DoxyCompactList}\small\item\em Get the actions available from the data source. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_ga3cdf8e8e45099e01bc8270be8396cdd1}{ecore\+\_\+wl2\+\_\+offer\+\_\+actions\+\_\+set}} (Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$offer, Ecore\+\_\+\+Wl2\+\_\+\+Drag\+\_\+\+Action actions, Ecore\+\_\+\+Wl2\+\_\+\+Drag\+\_\+\+Action action)
\begin{DoxyCompactList}\small\item\em Set the actions which are supported by you. \end{DoxyCompactList}\item 
EAPI Ecore\+\_\+\+Wl2\+\_\+\+Drag\+\_\+\+Action \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_ga1f6e040b1bada22cde1042fa3417c72a}{ecore\+\_\+wl2\+\_\+offer\+\_\+action\+\_\+get}} (Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$offer)
\begin{DoxyCompactList}\small\item\em Get action which is set by either the data source or in the last call of actions\+\_\+set. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__Array__Group_ga2a57284ee83a7e767485b7ae2f5df86c}{Eina\+\_\+\+Array}} $\ast$ \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_ga22a0a22bf58199b9c85deeafaca5f8c3}{ecore\+\_\+wl2\+\_\+offer\+\_\+mimes\+\_\+get}} (Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$offer)
\begin{DoxyCompactList}\small\item\em Get the mime types which are given by the source. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_ga51529df465e13c9b37a852cb0b29d105}{ecore\+\_\+wl2\+\_\+offer\+\_\+mimes\+\_\+set}} (Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$offer, \mbox{\hyperlink{group__Eina__Array__Group_ga2a57284ee83a7e767485b7ae2f5df86c}{Eina\+\_\+\+Array}} $\ast$mimes)
\begin{DoxyCompactList}\small\item\em Set mimetypes you are accepting under this offer. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_gad0fc86d8762a89747ef2df7949546f13}{ecore\+\_\+wl2\+\_\+offer\+\_\+accept}} (Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$offer, const char $\ast$mime\+\_\+type)
\begin{DoxyCompactList}\small\item\em Accept a single mime type for an offer. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_ga6d82480fec6a1c706c226d9761715018}{ecore\+\_\+wl2\+\_\+offer\+\_\+receive}} (Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$offer, char $\ast$mime)
\begin{DoxyCompactList}\small\item\em Request the data from this offer. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_gafbd2f1fb5f22e39c098afe331a0ec948}{ecore\+\_\+wl2\+\_\+offer\+\_\+proxy\+\_\+receive}} (Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$offer, const char $\ast$mime, int fd)
\begin{DoxyCompactList}\small\item\em Request the data from this offer on an externally managed fd. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_ga1b3c1c244d90c046bf568a69b45b1b15}{ecore\+\_\+wl2\+\_\+offer\+\_\+proxy\+\_\+receive\+\_\+end}} (Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$offer)
\begin{DoxyCompactList}\small\item\em End the use of a proxy received offer. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_gaa6e0ab11f4de019b52bd9266e5ccf305}{ecore\+\_\+wl2\+\_\+offer\+\_\+supports\+\_\+mime}} (Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$offer, const char $\ast$mime)
\begin{DoxyCompactList}\small\item\em Check if the given offer supports the given mimetype. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_ga11be0418445386753f279c80c761b2ca}{ecore\+\_\+wl2\+\_\+offer\+\_\+finish}} (Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$offer)
\begin{DoxyCompactList}\small\item\em Mark this offer as finished This will call the dnd\+\_\+finished event on the source of the sender. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Functions that deal with creating, destroying, or interacting with Wayland Drag-\/n-\/\+Drop. 



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Ecore__Wl2__Dnd__Group_ga91d1233edd089fef28c60743127a8733}\label{group__Ecore__Wl2__Dnd__Group_ga91d1233edd089fef28c60743127a8733}} 
\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}!ecore\_wl2\_dnd\_drag\_types\_set@{ecore\_wl2\_dnd\_drag\_types\_set}}
\index{ecore\_wl2\_dnd\_drag\_types\_set@{ecore\_wl2\_dnd\_drag\_types\_set}!Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_wl2\_dnd\_drag\_types\_set()}{ecore\_wl2\_dnd\_drag\_types\_set()}}
{\footnotesize\ttfamily EAPI void ecore\+\_\+wl2\+\_\+dnd\+\_\+drag\+\_\+types\+\_\+set (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Wl2\+\_\+\+Input $\ast$}]{input,  }\item[{const char $\ast$$\ast$}]{types }\end{DoxyParamCaption})}



Set the types which are supported by a possible drag and drop operation. 

This call initializes a data source and offeres the given mimetypes


\begin{DoxyParams}{Parameters}
{\em input} & the input where to add on the data source \\
\hline
{\em types} & a null-\/terminated array of mimetypes\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+17 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}.

\mbox{\Hypertarget{group__Ecore__Wl2__Dnd__Group_ga78c27a85eab2b010467d58a15c67b2cd}\label{group__Ecore__Wl2__Dnd__Group_ga78c27a85eab2b010467d58a15c67b2cd}} 
\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}!ecore\_wl2\_dnd\_drag\_start@{ecore\_wl2\_dnd\_drag\_start}}
\index{ecore\_wl2\_dnd\_drag\_start@{ecore\_wl2\_dnd\_drag\_start}!Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_wl2\_dnd\_drag\_start()}{ecore\_wl2\_dnd\_drag\_start()}}
{\footnotesize\ttfamily EAPI uint32\+\_\+t ecore\+\_\+wl2\+\_\+dnd\+\_\+drag\+\_\+start (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Wl2\+\_\+\+Input $\ast$}]{input,  }\item[{Ecore\+\_\+\+Wl2\+\_\+\+Window $\ast$}]{window,  }\item[{Ecore\+\_\+\+Wl2\+\_\+\+Window $\ast$}]{drag\+\_\+window }\end{DoxyParamCaption})}



Start a drag on the given input. 


\begin{DoxyParams}{Parameters}
{\em input} & the input to use \\
\hline
{\em window} & the window which is the origin of the drag operation \\
\hline
{\em drag\+\_\+window} & the window which is used as window of the visible hint.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The serial for the start\+\_\+drag request
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+17 
\end{DoxySince}


References \mbox{\hyperlink{group__Ecore__Wl2__Input__Group_ga211fb4f6d8c51075a5bc517f4d5891b1}{ecore\+\_\+wl2\+\_\+input\+\_\+cursor\+\_\+from\+\_\+name\+\_\+set()}}, \mbox{\hyperlink{group__Ecore__Wl2__Window__Group_ga96343135078c54323fed64dcb137ed54}{ecore\+\_\+wl2\+\_\+window\+\_\+surface\+\_\+get()}}, and \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.

\mbox{\Hypertarget{group__Ecore__Wl2__Dnd__Group_gab53c693884e5a7fd20b66943ec7f76f2}\label{group__Ecore__Wl2__Dnd__Group_gab53c693884e5a7fd20b66943ec7f76f2}} 
\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}!ecore\_wl2\_dnd\_set\_actions@{ecore\_wl2\_dnd\_set\_actions}}
\index{ecore\_wl2\_dnd\_set\_actions@{ecore\_wl2\_dnd\_set\_actions}!Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_wl2\_dnd\_set\_actions()}{ecore\_wl2\_dnd\_set\_actions()}}
{\footnotesize\ttfamily EAPI void ecore\+\_\+wl2\+\_\+dnd\+\_\+set\+\_\+actions (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Wl2\+\_\+\+Input $\ast$}]{input }\end{DoxyParamCaption})}



Call wl\+\_\+data\+\_\+source.\+set\+\_\+actions on an existing source. 


\begin{DoxyParams}{Parameters}
{\em input} & the input to use\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_ga78c27a85eab2b010467d58a15c67b2cd}{ecore\+\_\+wl2\+\_\+dnd\+\_\+drag\+\_\+start}} for a more useful function.
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+20 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}.

\mbox{\Hypertarget{group__Ecore__Wl2__Dnd__Group_gab160a1d2bec2091a6f445c1e51433a24}\label{group__Ecore__Wl2__Dnd__Group_gab160a1d2bec2091a6f445c1e51433a24}} 
\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}!ecore\_wl2\_dnd\_drag\_end@{ecore\_wl2\_dnd\_drag\_end}}
\index{ecore\_wl2\_dnd\_drag\_end@{ecore\_wl2\_dnd\_drag\_end}!Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_wl2\_dnd\_drag\_end()}{ecore\_wl2\_dnd\_drag\_end()}}
{\footnotesize\ttfamily EAPI void ecore\+\_\+wl2\+\_\+dnd\+\_\+drag\+\_\+end (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Wl2\+\_\+\+Input $\ast$}]{input }\end{DoxyParamCaption})}



End a drag started by a call to ecore\+\_\+wl2\+\_\+dnd\+\_\+drag\+\_\+start. 


\begin{DoxyParams}{Parameters}
{\em input} & the input object on which the drag was started\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+17 
\end{DoxySince}


References \mbox{\hyperlink{group__Ecore__Event__Group_ga81a4c863503927fb70fa5f35625c4352}{ecore\+\_\+event\+\_\+add()}}, and \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}.

\mbox{\Hypertarget{group__Ecore__Wl2__Dnd__Group_ga42b1df549a92375db862f5bad4f89c5d}\label{group__Ecore__Wl2__Dnd__Group_ga42b1df549a92375db862f5bad4f89c5d}} 
\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}!ecore\_wl2\_dnd\_selection\_get@{ecore\_wl2\_dnd\_selection\_get}}
\index{ecore\_wl2\_dnd\_selection\_get@{ecore\_wl2\_dnd\_selection\_get}!Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_wl2\_dnd\_selection\_get()}{ecore\_wl2\_dnd\_selection\_get()}}
{\footnotesize\ttfamily EAPI Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$ ecore\+\_\+wl2\+\_\+dnd\+\_\+selection\+\_\+get (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Wl2\+\_\+\+Input $\ast$}]{input }\end{DoxyParamCaption})}



Get the offer which is currently resposible for the clipboard. 


\begin{DoxyParams}{Parameters}
{\em input} & the input object to use\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.

\mbox{\Hypertarget{group__Ecore__Wl2__Dnd__Group_ga4b77880d3bda13c1015d821f321a6b9c}\label{group__Ecore__Wl2__Dnd__Group_ga4b77880d3bda13c1015d821f321a6b9c}} 
\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}!ecore\_wl2\_dnd\_selection\_set@{ecore\_wl2\_dnd\_selection\_set}}
\index{ecore\_wl2\_dnd\_selection\_set@{ecore\_wl2\_dnd\_selection\_set}!Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_wl2\_dnd\_selection\_set()}{ecore\_wl2\_dnd\_selection\_set()}}
{\footnotesize\ttfamily EAPI uint32\+\_\+t ecore\+\_\+wl2\+\_\+dnd\+\_\+selection\+\_\+set (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Wl2\+\_\+\+Input $\ast$}]{input,  }\item[{const char $\ast$$\ast$}]{types }\end{DoxyParamCaption})}



Set the types which are available from this client Later the event ECORE\+\_\+\+WL2\+\_\+\+EVENT\+\_\+\+DATA\+\_\+\+SOURCE\+\_\+\+SEND is emitted, where the caller of this api must write the data (encoded in the given mimetype) to the fd. 


\begin{DoxyParams}{Parameters}
{\em input} & the input to provice this types on \\
\hline
{\em types} & a null-\/terminated array of mimetypes supported by the client\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
serial of request on success, 0 on failure
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+17 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.

\mbox{\Hypertarget{group__Ecore__Wl2__Dnd__Group_gac170de39eb1f25bab4f54deea55f0eba}\label{group__Ecore__Wl2__Dnd__Group_gac170de39eb1f25bab4f54deea55f0eba}} 
\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}!ecore\_wl2\_dnd\_selection\_clear@{ecore\_wl2\_dnd\_selection\_clear}}
\index{ecore\_wl2\_dnd\_selection\_clear@{ecore\_wl2\_dnd\_selection\_clear}!Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_wl2\_dnd\_selection\_clear()}{ecore\_wl2\_dnd\_selection\_clear()}}
{\footnotesize\ttfamily EAPI uint32\+\_\+t ecore\+\_\+wl2\+\_\+dnd\+\_\+selection\+\_\+clear (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Wl2\+\_\+\+Input $\ast$}]{input }\end{DoxyParamCaption})}



Clear the selection currently setted on this input. 


\begin{DoxyParams}{Parameters}
{\em input} & the input to clear\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
serial of request on success, 0 on failure
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+17 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.

\mbox{\Hypertarget{group__Ecore__Wl2__Dnd__Group_ga6023816b67eafd8f4fc2713bc040760d}\label{group__Ecore__Wl2__Dnd__Group_ga6023816b67eafd8f4fc2713bc040760d}} 
\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}!ecore\_wl2\_offer\_actions\_get@{ecore\_wl2\_offer\_actions\_get}}
\index{ecore\_wl2\_offer\_actions\_get@{ecore\_wl2\_offer\_actions\_get}!Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_wl2\_offer\_actions\_get()}{ecore\_wl2\_offer\_actions\_get()}}
{\footnotesize\ttfamily EAPI Ecore\+\_\+\+Wl2\+\_\+\+Drag\+\_\+\+Action ecore\+\_\+wl2\+\_\+offer\+\_\+actions\+\_\+get (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$}]{offer }\end{DoxyParamCaption})}



Get the actions available from the data source. 


\begin{DoxyParams}{Parameters}
{\em offer} & Offer object to use\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
or´ed values from Ecore\+\_\+\+Wl2\+\_\+\+Drag\+\_\+\+Action which are describing the available actions
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}
\mbox{\Hypertarget{group__Ecore__Wl2__Dnd__Group_ga3cdf8e8e45099e01bc8270be8396cdd1}\label{group__Ecore__Wl2__Dnd__Group_ga3cdf8e8e45099e01bc8270be8396cdd1}} 
\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}!ecore\_wl2\_offer\_actions\_set@{ecore\_wl2\_offer\_actions\_set}}
\index{ecore\_wl2\_offer\_actions\_set@{ecore\_wl2\_offer\_actions\_set}!Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_wl2\_offer\_actions\_set()}{ecore\_wl2\_offer\_actions\_set()}}
{\footnotesize\ttfamily EAPI void ecore\+\_\+wl2\+\_\+offer\+\_\+actions\+\_\+set (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$}]{offer,  }\item[{Ecore\+\_\+\+Wl2\+\_\+\+Drag\+\_\+\+Action}]{actions,  }\item[{Ecore\+\_\+\+Wl2\+\_\+\+Drag\+\_\+\+Action}]{action }\end{DoxyParamCaption})}



Set the actions which are supported by you. 


\begin{DoxyParams}{Parameters}
{\em offer} & Offer object to use \\
\hline
{\em actions} & A or´ed value of mutliple Ecore\+\_\+\+Wl2\+\_\+\+Drag\+\_\+\+Action values \\
\hline
{\em action} & the preferred action out of the actions\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}.

\mbox{\Hypertarget{group__Ecore__Wl2__Dnd__Group_ga1f6e040b1bada22cde1042fa3417c72a}\label{group__Ecore__Wl2__Dnd__Group_ga1f6e040b1bada22cde1042fa3417c72a}} 
\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}!ecore\_wl2\_offer\_action\_get@{ecore\_wl2\_offer\_action\_get}}
\index{ecore\_wl2\_offer\_action\_get@{ecore\_wl2\_offer\_action\_get}!Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_wl2\_offer\_action\_get()}{ecore\_wl2\_offer\_action\_get()}}
{\footnotesize\ttfamily EAPI Ecore\+\_\+\+Wl2\+\_\+\+Drag\+\_\+\+Action ecore\+\_\+wl2\+\_\+offer\+\_\+action\+\_\+get (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$}]{offer }\end{DoxyParamCaption})}



Get action which is set by either the data source or in the last call of actions\+\_\+set. 


\begin{DoxyParams}{Parameters}
{\em offer} & Offer object to use\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the preferred action
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.

\mbox{\Hypertarget{group__Ecore__Wl2__Dnd__Group_ga22a0a22bf58199b9c85deeafaca5f8c3}\label{group__Ecore__Wl2__Dnd__Group_ga22a0a22bf58199b9c85deeafaca5f8c3}} 
\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}!ecore\_wl2\_offer\_mimes\_get@{ecore\_wl2\_offer\_mimes\_get}}
\index{ecore\_wl2\_offer\_mimes\_get@{ecore\_wl2\_offer\_mimes\_get}!Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_wl2\_offer\_mimes\_get()}{ecore\_wl2\_offer\_mimes\_get()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__Array__Group_ga2a57284ee83a7e767485b7ae2f5df86c}{Eina\+\_\+\+Array}} $\ast$ ecore\+\_\+wl2\+\_\+offer\+\_\+mimes\+\_\+get (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$}]{offer }\end{DoxyParamCaption})}



Get the mime types which are given by the source. 


\begin{DoxyParams}{Parameters}
{\em offer} & the offer to query\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a eina array of strdup´ed strings, this array must NOT be changed or freed
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.

\mbox{\Hypertarget{group__Ecore__Wl2__Dnd__Group_ga51529df465e13c9b37a852cb0b29d105}\label{group__Ecore__Wl2__Dnd__Group_ga51529df465e13c9b37a852cb0b29d105}} 
\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}!ecore\_wl2\_offer\_mimes\_set@{ecore\_wl2\_offer\_mimes\_set}}
\index{ecore\_wl2\_offer\_mimes\_set@{ecore\_wl2\_offer\_mimes\_set}!Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_wl2\_offer\_mimes\_set()}{ecore\_wl2\_offer\_mimes\_set()}}
{\footnotesize\ttfamily EAPI void ecore\+\_\+wl2\+\_\+offer\+\_\+mimes\+\_\+set (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$}]{offer,  }\item[{\mbox{\hyperlink{group__Eina__Array__Group_ga2a57284ee83a7e767485b7ae2f5df86c}{Eina\+\_\+\+Array}} $\ast$}]{mimes }\end{DoxyParamCaption})}



Set mimetypes you are accepting under this offer. 


\begin{DoxyParams}{Parameters}
{\em offer} & the offer to use\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Array__Group_ga8de2d191a0fffceb5bdc6376540b8db1}{eina\+\_\+array\+\_\+foreach()}}, and \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}.

\mbox{\Hypertarget{group__Ecore__Wl2__Dnd__Group_gad0fc86d8762a89747ef2df7949546f13}\label{group__Ecore__Wl2__Dnd__Group_gad0fc86d8762a89747ef2df7949546f13}} 
\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}!ecore\_wl2\_offer\_accept@{ecore\_wl2\_offer\_accept}}
\index{ecore\_wl2\_offer\_accept@{ecore\_wl2\_offer\_accept}!Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_wl2\_offer\_accept()}{ecore\_wl2\_offer\_accept()}}
{\footnotesize\ttfamily EAPI void ecore\+\_\+wl2\+\_\+offer\+\_\+accept (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$}]{offer,  }\item[{const char $\ast$}]{mime\+\_\+type }\end{DoxyParamCaption})}



Accept a single mime type for an offer. 


\begin{DoxyParams}{Parameters}
{\em offer} & the offer to use \\
\hline
{\em mime\+\_\+type} & the mime type\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+20 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}.

\mbox{\Hypertarget{group__Ecore__Wl2__Dnd__Group_ga6d82480fec6a1c706c226d9761715018}\label{group__Ecore__Wl2__Dnd__Group_ga6d82480fec6a1c706c226d9761715018}} 
\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}!ecore\_wl2\_offer\_receive@{ecore\_wl2\_offer\_receive}}
\index{ecore\_wl2\_offer\_receive@{ecore\_wl2\_offer\_receive}!Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_wl2\_offer\_receive()}{ecore\_wl2\_offer\_receive()}}
{\footnotesize\ttfamily EAPI void ecore\+\_\+wl2\+\_\+offer\+\_\+receive (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$}]{offer,  }\item[{char $\ast$}]{mime }\end{DoxyParamCaption})}



Request the data from this offer. 

The event ECORE\+\_\+\+WL2\+\_\+\+EVENT\+\_\+\+OFFER\+\_\+\+DATA\+\_\+\+READY is called when the data is available. There offer will be not destroyed as long as requested data is not emitted by the event.


\begin{DoxyParams}{Parameters}
{\em offer} & the offer to use \\
\hline
{\em mime} & the mimetype to receive\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}


References \mbox{\hyperlink{group__Ecore__FD__Handler__Group_ggab5644f471dfa3bd182619601d9b60608a829d91235e3ca5eba61330c96a8074de}{ECORE\+\_\+\+FD\+\_\+\+ERROR}}, \mbox{\hyperlink{group__Ecore__FD__Handler__Group_ggab5644f471dfa3bd182619601d9b60608a1699f804eccf88e7e169a4a20f1d44e7}{ECORE\+\_\+\+FD\+\_\+\+READ}}, \mbox{\hyperlink{group__Ecore__FD__Handler__Group_ga55d216004bd9682cce882c01feb8e90d}{ecore\+\_\+main\+\_\+fd\+\_\+handler\+\_\+file\+\_\+add()}}, \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\+\_\+list\+\_\+append()}}, and \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}.

\mbox{\Hypertarget{group__Ecore__Wl2__Dnd__Group_gafbd2f1fb5f22e39c098afe331a0ec948}\label{group__Ecore__Wl2__Dnd__Group_gafbd2f1fb5f22e39c098afe331a0ec948}} 
\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}!ecore\_wl2\_offer\_proxy\_receive@{ecore\_wl2\_offer\_proxy\_receive}}
\index{ecore\_wl2\_offer\_proxy\_receive@{ecore\_wl2\_offer\_proxy\_receive}!Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_wl2\_offer\_proxy\_receive()}{ecore\_wl2\_offer\_proxy\_receive()}}
{\footnotesize\ttfamily EAPI void ecore\+\_\+wl2\+\_\+offer\+\_\+proxy\+\_\+receive (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$}]{offer,  }\item[{const char $\ast$}]{mime,  }\item[{int}]{fd }\end{DoxyParamCaption})}



Request the data from this offer on an externally managed fd. 

The event ECORE\+\_\+\+WL2\+\_\+\+EVENT\+\_\+\+OFFER\+\_\+\+DATA\+\_\+\+READY is called when the data is available. There offer will be not destroyed as long as requested data is not emitted by the event.


\begin{DoxyParams}{Parameters}
{\em offer} & the offer to use \\
\hline
{\em mime} & the mimetype to receive \\
\hline
{\em fd} & the fd to pass for receiving\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+20 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}.

\mbox{\Hypertarget{group__Ecore__Wl2__Dnd__Group_ga1b3c1c244d90c046bf568a69b45b1b15}\label{group__Ecore__Wl2__Dnd__Group_ga1b3c1c244d90c046bf568a69b45b1b15}} 
\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}!ecore\_wl2\_offer\_proxy\_receive\_end@{ecore\_wl2\_offer\_proxy\_receive\_end}}
\index{ecore\_wl2\_offer\_proxy\_receive\_end@{ecore\_wl2\_offer\_proxy\_receive\_end}!Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_wl2\_offer\_proxy\_receive\_end()}{ecore\_wl2\_offer\_proxy\_receive\_end()}}
{\footnotesize\ttfamily EAPI void ecore\+\_\+wl2\+\_\+offer\+\_\+proxy\+\_\+receive\+\_\+end (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$}]{offer }\end{DoxyParamCaption})}



End the use of a proxy received offer. 

This may invalidate the offer object


\begin{DoxyParams}{Parameters}
{\em offer} & the offer\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+20 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}.

\mbox{\Hypertarget{group__Ecore__Wl2__Dnd__Group_gaa6e0ab11f4de019b52bd9266e5ccf305}\label{group__Ecore__Wl2__Dnd__Group_gaa6e0ab11f4de019b52bd9266e5ccf305}} 
\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}!ecore\_wl2\_offer\_supports\_mime@{ecore\_wl2\_offer\_supports\_mime}}
\index{ecore\_wl2\_offer\_supports\_mime@{ecore\_wl2\_offer\_supports\_mime}!Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_wl2\_offer\_supports\_mime()}{ecore\_wl2\_offer\_supports\_mime()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ecore\+\_\+wl2\+\_\+offer\+\_\+supports\+\_\+mime (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$}]{offer,  }\item[{const char $\ast$}]{mime }\end{DoxyParamCaption})}



Check if the given offer supports the given mimetype. 


\begin{DoxyParams}{Parameters}
{\em offer} & the offer to use \\
\hline
{\em mime} & the mimetype to check\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Returns true if the mimetype is supported by this offer, false if not
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Array__Group_ga8de2d191a0fffceb5bdc6376540b8db1}{eina\+\_\+array\+\_\+foreach()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, and \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.

\mbox{\Hypertarget{group__Ecore__Wl2__Dnd__Group_ga11be0418445386753f279c80c761b2ca}\label{group__Ecore__Wl2__Dnd__Group_ga11be0418445386753f279c80c761b2ca}} 
\index{Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}!ecore\_wl2\_offer\_finish@{ecore\_wl2\_offer\_finish}}
\index{ecore\_wl2\_offer\_finish@{ecore\_wl2\_offer\_finish}!Wayland Library Drag-\/n-\/Drop Functions@{Wayland Library Drag-\/n-\/Drop Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_wl2\_offer\_finish()}{ecore\_wl2\_offer\_finish()}}
{\footnotesize\ttfamily EAPI void ecore\+\_\+wl2\+\_\+offer\+\_\+finish (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Wl2\+\_\+\+Offer $\ast$}]{offer }\end{DoxyParamCaption})}



Mark this offer as finished This will call the dnd\+\_\+finished event on the source of the sender. 


\begin{DoxyParams}{Parameters}
{\em offer} & the offer to use\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}.

