\section{Photo}
\label{group__Photo}\index{Photo@{Photo}}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
Evas\+\_\+\+Object $\ast$ \hyperlink{group__Photo_ga7e50794931945a9e9e301f2ccf040a15}{elm\+\_\+photo\+\_\+add} (Evas\+\_\+\+Object $\ast$parent)
\begin{DoxyCompactList}\small\item\em Add a new photo to the parent. \end{DoxyCompactList}\item 
Eina\+\_\+\+Bool \hyperlink{group__Photo_ga697500daaa458b968f26f3584168bbc5}{elm\+\_\+photo\+\_\+file\+\_\+set} (Eo $\ast$obj, const char $\ast$file)
\begin{DoxyCompactList}\small\item\em Set the file that will be used as the photo widget\textquotesingle{}s image. \end{DoxyCompactList}\end{DoxyCompactItemize}


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


The Elementary photo widget is intended for displaying a photo, for ex., a person\textquotesingle{}s image (contact). Simple, yet with a very specific purpose. It has a decorative frame around the inner image itself, on the default theme. If and while no photo is set on it, it displays a person icon, indicating it\textquotesingle{}s a photo placeholder.

This widget relies on an internal \hyperlink{group__Icon}{Icon}, so that the A\+P\+Is of these two widgets are similar (drag and drop is also possible here, for example).

Signals that you can add callbacks for are\+:
\begin{DoxyItemize}
\item {\ttfamily \char`\"{}clicked\char`\"{}} -\/ This is called when a user has clicked the photo
\item {\ttfamily \char`\"{}drag,start\char`\"{}} -\/ One has started dragging the inner image out of the photo\textquotesingle{}s frame
\item {\ttfamily \char`\"{}drag,end\char`\"{}} -\/ One has dropped the dragged image somewhere 
\end{DoxyItemize}

\subsection{Function Documentation}
\index{Photo@{Photo}!elm\+\_\+photo\+\_\+add@{elm\+\_\+photo\+\_\+add}}
\index{elm\+\_\+photo\+\_\+add@{elm\+\_\+photo\+\_\+add}!Photo@{Photo}}
\subsubsection[{\texorpdfstring{elm\+\_\+photo\+\_\+add(\+Evas\+\_\+\+Object $\ast$parent)}{elm_photo_add(Evas_Object *parent)}}]{\setlength{\rightskip}{0pt plus 5cm}Evas\+\_\+\+Object$\ast$ elm\+\_\+photo\+\_\+add (
\begin{DoxyParamCaption}
\item[{Evas\+\_\+\+Object $\ast$}]{parent}
\end{DoxyParamCaption}
)}\label{group__Photo_ga7e50794931945a9e9e301f2ccf040a15}


Add a new photo to the parent. 


\begin{DoxyParams}{Parameters}
{\em parent} & The parent object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The new object or N\+U\+LL if it cannot be created 
\end{DoxyReturn}


References elm\+\_\+image\+\_\+file\+\_\+set(), and elm\+\_\+image\+\_\+prescale\+\_\+set().

\index{Photo@{Photo}!elm\+\_\+photo\+\_\+file\+\_\+set@{elm\+\_\+photo\+\_\+file\+\_\+set}}
\index{elm\+\_\+photo\+\_\+file\+\_\+set@{elm\+\_\+photo\+\_\+file\+\_\+set}!Photo@{Photo}}
\subsubsection[{\texorpdfstring{elm\+\_\+photo\+\_\+file\+\_\+set(\+Eo $\ast$obj, const char $\ast$file)}{elm_photo_file_set(Eo *obj, const char *file)}}]{\setlength{\rightskip}{0pt plus 5cm}Eina\+\_\+\+Bool elm\+\_\+photo\+\_\+file\+\_\+set (
\begin{DoxyParamCaption}
\item[{Eo $\ast$}]{obj, }
\item[{const char $\ast$}]{file}
\end{DoxyParamCaption}
)}\label{group__Photo_ga697500daaa458b968f26f3584168bbc5}


Set the file that will be used as the photo widget\textquotesingle{}s image. 

\begin{DoxyReturn}{Returns}
{\ttfamily E\+I\+N\+A\+\_\+\+T\+R\+UE} on success, {\ttfamily E\+I\+N\+A\+\_\+\+F\+A\+L\+SE} otherwise
\end{DoxyReturn}
\begin{DoxyNote}{Note}
Use {\ttfamily N\+U\+LL} on {\itshape file} to set the photo widget back to it\textquotesingle{}s initial state, which indicates \char`\"{}no photo\char`\"{}.
\end{DoxyNote}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em file} & The path to file that will be used as {\itshape obj\textquotesingle{}s} image. \\
\hline
\end{DoxyParams}
