\section{Plug}
\label{group__Plug}\index{Plug@{Plug}}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
E\+O\+A\+P\+I Evas\+\_\+\+Object $\ast$ \hyperlink{group__Plug_ga096844e5bb297912e0cb077acd4cce2d}{elm\+\_\+obj\+\_\+plug\+\_\+image\+\_\+object\+\_\+get} (void)
\begin{DoxyCompactList}\small\item\em Get the basic Evas\+\_\+\+Image object from this object (widget). \end{DoxyCompactList}\item 
E\+O\+A\+P\+I Eina\+\_\+\+Bool \hyperlink{group__Plug_ga38a3bc27785624d1628802a5d142b823}{elm\+\_\+obj\+\_\+plug\+\_\+connect} (const char $\ast$svcname, int svcnum, Eina\+\_\+\+Bool svcsys)
\begin{DoxyCompactList}\small\item\em Connect a plug widget to service provided by socket image. \end{DoxyCompactList}\item 
Evas\+\_\+\+Object $\ast$ \hyperlink{group__Plug_ga1349b00ef3e795a18d51116d38aa7dd0}{elm\+\_\+plug\+\_\+image\+\_\+object\+\_\+get} (const Elm\+\_\+\+Plug $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the basic Evas\+\_\+\+Image object from this object (widget). \end{DoxyCompactList}\item 
Eina\+\_\+\+Bool \hyperlink{group__Plug_ga158f7d277840657d67a9ded81b718e2e}{elm\+\_\+plug\+\_\+connect} (Elm\+\_\+\+Plug $\ast$obj, const char $\ast$svcname, int svcnum, Eina\+\_\+\+Bool svcsys)
\begin{DoxyCompactList}\small\item\em Connect a plug widget to service provided by socket image. \end{DoxyCompactList}\item 
Evas\+\_\+\+Object $\ast$ \hyperlink{group__Plug_gae3b978f52c632e5b0df1fc6e446beee4}{elm\+\_\+plug\+\_\+add} (Evas\+\_\+\+Object $\ast$parent)
\begin{DoxyCompactList}\small\item\em Add a new plug image to the parent. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{plug_inheritance_tree}}
\end{DoxyImageNoCaption}


An object that allows one to show an image which other process created. It can be used anywhere like any other elementary widget.

This widget emits the following signals\+: \begin{DoxyItemize}
\item \char`\"{}clicked\char`\"{}\+: the user clicked the image (press/release). The {\ttfamily event} parameter of the callback will be {\ttfamily N\+U\+L\+L}. \item \char`\"{}image,deleted\char`\"{}\+: the server side was deleted. The {\ttfamily event} parameter of the callback will be {\ttfamily N\+U\+L\+L}. \item \char`\"{}image,resized\char`\"{}\+: the server side was resized. The {\ttfamily event} parameter of the callback will be {\ttfamily Evas\+\_\+\+Coord\+\_\+\+Size} (two integers).\end{DoxyItemize}
\begin{DoxyNote}{Note}
the event \char`\"{}image,resized\char`\"{} will be sent whenever the server resized its image and this {\bfseries always} happen on the first time. Then it can be used to track when the server-\/side image is fully known (client connected to server, retrieved its image buffer through shared memory and resized the evas object). 
\end{DoxyNote}


\subsection{Function Documentation}
\index{Plug@{Plug}!elm\+\_\+obj\+\_\+plug\+\_\+connect@{elm\+\_\+obj\+\_\+plug\+\_\+connect}}
\index{elm\+\_\+obj\+\_\+plug\+\_\+connect@{elm\+\_\+obj\+\_\+plug\+\_\+connect}!Plug@{Plug}}
\subsubsection[{elm\+\_\+obj\+\_\+plug\+\_\+connect}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+P\+I Eina\+\_\+\+Bool elm\+\_\+obj\+\_\+plug\+\_\+connect (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{svcname, }
\item[{int}]{svcnum, }
\item[{Eina\+\_\+\+Bool}]{svcsys}
\end{DoxyParamCaption}
)}\label{group__Plug_ga38a3bc27785624d1628802a5d142b823}


Connect a plug widget to service provided by socket image. 

\begin{DoxyReturn}{Returns}
({\ttfamily E\+I\+N\+A\+\_\+\+T\+R\+U\+E} = success, {\ttfamily E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E} = error)
\end{DoxyReturn}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em svcname} & The service name to connect to set up by the socket. \\
\hline
\mbox{\tt in}  & {\em svcnum} & The service number to connect to (set up by socket). \\
\hline
\mbox{\tt in}  & {\em svcsys} & Boolean to set if the service is a system one or not (set up by socket). \\
\hline
\end{DoxyParams}


Referenced by elm\+\_\+plug\+\_\+connect().

\index{Plug@{Plug}!elm\+\_\+obj\+\_\+plug\+\_\+image\+\_\+object\+\_\+get@{elm\+\_\+obj\+\_\+plug\+\_\+image\+\_\+object\+\_\+get}}
\index{elm\+\_\+obj\+\_\+plug\+\_\+image\+\_\+object\+\_\+get@{elm\+\_\+obj\+\_\+plug\+\_\+image\+\_\+object\+\_\+get}!Plug@{Plug}}
\subsubsection[{elm\+\_\+obj\+\_\+plug\+\_\+image\+\_\+object\+\_\+get}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+P\+I Evas\+\_\+\+Object$\ast$ elm\+\_\+obj\+\_\+plug\+\_\+image\+\_\+object\+\_\+get (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{group__Plug_ga096844e5bb297912e0cb077acd4cce2d}


Get the basic Evas\+\_\+\+Image object from this object (widget). 

\begin{DoxyReturn}{Returns}
The inlined image object, or N\+U\+L\+L if none exists
\end{DoxyReturn}
This function allows one to get the underlying {\ttfamily Evas\+\_\+\+Object} of type Image from this elementary widget. It can be useful to do things like get the pixel data, save the image to a file, etc.

\begin{DoxyNote}{Note}
Be careful to not manipulate it, as it is under control of elementary. 
\end{DoxyNote}


Referenced by elm\+\_\+plug\+\_\+image\+\_\+object\+\_\+get().

\index{Plug@{Plug}!elm\+\_\+plug\+\_\+add@{elm\+\_\+plug\+\_\+add}}
\index{elm\+\_\+plug\+\_\+add@{elm\+\_\+plug\+\_\+add}!Plug@{Plug}}
\subsubsection[{elm\+\_\+plug\+\_\+add}]{\setlength{\rightskip}{0pt plus 5cm}Evas\+\_\+\+Object$\ast$ elm\+\_\+plug\+\_\+add (
\begin{DoxyParamCaption}
\item[{Evas\+\_\+\+Object $\ast$}]{parent}
\end{DoxyParamCaption}
)}\label{group__Plug_gae3b978f52c632e5b0df1fc6e446beee4}


Add a new plug image to the parent. 


\begin{DoxyParams}{Parameters}
{\em parent} & The parent object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The new plug image object or N\+U\+L\+L if it cannot be created 
\end{DoxyReturn}
\index{Plug@{Plug}!elm\+\_\+plug\+\_\+connect@{elm\+\_\+plug\+\_\+connect}}
\index{elm\+\_\+plug\+\_\+connect@{elm\+\_\+plug\+\_\+connect}!Plug@{Plug}}
\subsubsection[{elm\+\_\+plug\+\_\+connect}]{\setlength{\rightskip}{0pt plus 5cm}Eina\+\_\+\+Bool elm\+\_\+plug\+\_\+connect (
\begin{DoxyParamCaption}
\item[{Elm\+\_\+\+Plug $\ast$}]{obj, }
\item[{const char $\ast$}]{svcname, }
\item[{int}]{svcnum, }
\item[{Eina\+\_\+\+Bool}]{svcsys}
\end{DoxyParamCaption}
)}\label{group__Plug_ga158f7d277840657d67a9ded81b718e2e}


Connect a plug widget to service provided by socket image. 

\begin{DoxyReturn}{Returns}
({\ttfamily E\+I\+N\+A\+\_\+\+T\+R\+U\+E} = success, {\ttfamily E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E} = error)
\end{DoxyReturn}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em svcname} & The service name to connect to set up by the socket. \\
\hline
\mbox{\tt in}  & {\em svcnum} & The service number to connect to (set up by socket). \\
\hline
\mbox{\tt in}  & {\em svcsys} & Boolean to set if the service is a system one or not (set up by socket). \\
\hline
\end{DoxyParams}


References elm\+\_\+obj\+\_\+plug\+\_\+connect().

\index{Plug@{Plug}!elm\+\_\+plug\+\_\+image\+\_\+object\+\_\+get@{elm\+\_\+plug\+\_\+image\+\_\+object\+\_\+get}}
\index{elm\+\_\+plug\+\_\+image\+\_\+object\+\_\+get@{elm\+\_\+plug\+\_\+image\+\_\+object\+\_\+get}!Plug@{Plug}}
\subsubsection[{elm\+\_\+plug\+\_\+image\+\_\+object\+\_\+get}]{\setlength{\rightskip}{0pt plus 5cm}Evas\+\_\+\+Object$\ast$ elm\+\_\+plug\+\_\+image\+\_\+object\+\_\+get (
\begin{DoxyParamCaption}
\item[{const Elm\+\_\+\+Plug $\ast$}]{obj}
\end{DoxyParamCaption}
)}\label{group__Plug_ga1349b00ef3e795a18d51116d38aa7dd0}


Get the basic Evas\+\_\+\+Image object from this object (widget). 

\begin{DoxyReturn}{Returns}
The inlined image object, or N\+U\+L\+L if none exists
\end{DoxyReturn}
This function allows one to get the underlying {\ttfamily Evas\+\_\+\+Object} of type Image from this elementary widget. It can be useful to do things like get the pixel data, save the image to a file, etc.

\begin{DoxyNote}{Note}
Be careful to not manipulate it, as it is under control of elementary. 
\end{DoxyNote}


References elm\+\_\+obj\+\_\+plug\+\_\+image\+\_\+object\+\_\+get().

