\hypertarget{structefl_1_1file}{\section{efl\+:\+:file Struct Reference}
\label{structefl_1_1file}\index{efl\+::file@{efl\+::file}}
}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{structefl_1_1file_a9cb8126537cac57ccb7e5c5409a1db41}{file} (\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$eo)
\begin{DoxyCompactList}\small\item\em Eo Constructor. \end{DoxyCompactList}\item 
\hyperlink{structefl_1_1file_a1d9f82c132432f1689a86c1404dda826}{file} (std\+::nullptr\+\_\+t)
\begin{DoxyCompactList}\small\item\em nullptr\+\_\+t Constructor. \end{DoxyCompactList}\item 
\hypertarget{structefl_1_1file_ab212043230d0e612e2729bd4c85dc986}{\hyperlink{structefl_1_1file_ab212043230d0e612e2729bd4c85dc986}{file} (\hyperlink{structefl_1_1file}{file} const \&other)}\label{structefl_1_1file_ab212043230d0e612e2729bd4c85dc986}

\begin{DoxyCompactList}\small\item\em Copy Constructor. \end{DoxyCompactList}\item 
void \hyperlink{structefl_1_1file_a2d591b0d3d0295b99f28a6a1d74d8a9b}{file\+\_\+get} (const char $\ast$$\ast$file\+\_\+, const char $\ast$$\ast$key\+\_\+) const 
\begin{DoxyCompactList}\small\item\em Retrieve the source file from where an image object is to fetch the real image data (it may be an Eet file, besides pure image ones). \end{DoxyCompactList}\item 
bool \hyperlink{structefl_1_1file_ac993532d67728ec903104e75040dfaf5}{file\+\_\+set} (std\+::string file\+\_\+, std\+::string key\+\_\+) const 
\begin{DoxyCompactList}\small\item\em Set the source file from where an image object must fetch the real image data (it may be an Eet file, besides pure image ones). \end{DoxyCompactList}\item 
bool \hyperlink{structefl_1_1file_ae4c4d3946d471651b531d436f8607ce5}{save} (std\+::string file\+\_\+, std\+::string key\+\_\+, std\+::string flags\+\_\+) const 
\begin{DoxyCompactList}\small\item\em Save the given image object's contents to an (image) file. \end{DoxyCompactList}\item 
void \hyperlink{structefl_1_1file_a130cf869a76e2b37d7ca7e44895c0c05}{eject} () const 
\begin{DoxyCompactList}\small\item\em Eject the represented object. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structefl_1_1file_a03153148bdf444ba57d5fb71f0d88f12}{static \hyperlink{group__Eo_ga88d29df76a2921aa5478803156d83be5}{Eo\+\_\+\+Class} const $\ast$ {\bfseries \+\_\+eo\+\_\+class} ()}\label{structefl_1_1file_a03153148bdf444ba57d5fb71f0d88f12}

\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Constructor \& Destructor Documentation}
\hypertarget{structefl_1_1file_a9cb8126537cac57ccb7e5c5409a1db41}{\index{efl\+::file@{efl\+::file}!file@{file}}
\index{file@{file}!efl\+::file@{efl\+::file}}
\subsubsection[{file}]{\setlength{\rightskip}{0pt plus 5cm}efl\+::file\+::file (
\begin{DoxyParamCaption}
\item[{{\bf Eo} $\ast$}]{eo}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [explicit]}}}\label{structefl_1_1file_a9cb8126537cac57ccb7e5c5409a1db41}


Eo Constructor. 

Constructs the object from an Eo$\ast$ pointer stealing its ownership.


\begin{DoxyParams}{Parameters}
{\em eo} & The Eo object pointer. \\
\hline
\end{DoxyParams}
\hypertarget{structefl_1_1file_a1d9f82c132432f1689a86c1404dda826}{\index{efl\+::file@{efl\+::file}!file@{file}}
\index{file@{file}!efl\+::file@{efl\+::file}}
\subsubsection[{file}]{\setlength{\rightskip}{0pt plus 5cm}efl\+::file\+::file (
\begin{DoxyParamCaption}
\item[{std\+::nullptr\+\_\+t}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [explicit]}}}\label{structefl_1_1file_a1d9f82c132432f1689a86c1404dda826}


nullptr\+\_\+t Constructor. 

Constructs an empty (null) object. 

\subsection{Member Function Documentation}
\hypertarget{structefl_1_1file_a2d591b0d3d0295b99f28a6a1d74d8a9b}{\index{efl\+::file@{efl\+::file}!file\+\_\+get@{file\+\_\+get}}
\index{file\+\_\+get@{file\+\_\+get}!efl\+::file@{efl\+::file}}
\subsubsection[{file\+\_\+get}]{\setlength{\rightskip}{0pt plus 5cm}void efl\+::file\+::file\+\_\+get (
\begin{DoxyParamCaption}
\item[{const char $\ast$$\ast$}]{file\+\_\+, }
\item[{const char $\ast$$\ast$}]{key\+\_\+}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{structefl_1_1file_a2d591b0d3d0295b99f28a6a1d74d8a9b}


Retrieve the source file from where an image object is to fetch the real image data (it may be an Eet file, besides pure image ones). 

You must {\bfseries not} modify the strings on the returned pointers.

\begin{DoxyNote}{Note}
Use {\ttfamily N\+U\+L\+L} pointers on the file components you're not interested in\+: they'll be ignored by the function.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em file} & The image file path. \\
\hline
{\em key} & The image key in {\ttfamily file} (if its an Eet one), or {\ttfamily N\+U\+L\+L}, otherwise. \\
\hline
\end{DoxyParams}


References efl\+::eo\+::base\+::\+\_\+eo\+\_\+ptr().

\hypertarget{structefl_1_1file_ac993532d67728ec903104e75040dfaf5}{\index{efl\+::file@{efl\+::file}!file\+\_\+set@{file\+\_\+set}}
\index{file\+\_\+set@{file\+\_\+set}!efl\+::file@{efl\+::file}}
\subsubsection[{file\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}bool efl\+::file\+::file\+\_\+set (
\begin{DoxyParamCaption}
\item[{std\+::string}]{file\+\_\+, }
\item[{std\+::string}]{key\+\_\+}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{structefl_1_1file_ac993532d67728ec903104e75040dfaf5}


Set the source file from where an image object must fetch the real image data (it may be an Eet file, besides pure image ones). 

If the file supports multiple data stored in it (as Eet files do), you can specify the key to be used as the index of the image in this file.

Example\+: 
\begin{DoxyCode}
img = \hyperlink{group__Evas__Object__Image_gadd901a6b181c38dc040537b3fd76fcc6}{evas\_object\_image\_add}(canvas);
\hyperlink{group__Evas__Object__Image_gac27fd0ceabe5f56607b7a86d71577df1}{evas\_object\_image\_file\_set}(img, \textcolor{stringliteral}{"/path/to/img"}, NULL);
err = evas\_object\_image\_load\_error\_get(img);
\textcolor{keywordflow}{if} (err != EVAS\_LOAD\_ERROR\_NONE)
\{
fprintf(stderr, \textcolor{stringliteral}{"could not load image '%s'. error string is \(\backslash\)"%s\(\backslash\)"\(\backslash\)n"},
valid\_path, \hyperlink{group__Evas__Utils_gaca3384642e5ebb32cfeab24c760c739a}{evas\_load\_error\_str}(err));
\}
\textcolor{keywordflow}{else}
\{
evas\_object\_image\_fill\_set(img, 0, 0, w, h);
evas\_object\_resize(img, w, h);
\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}(img);
\}
\end{DoxyCode}



\begin{DoxyParams}{Parameters}
{\em file} & The image file path. \\
\hline
{\em key} & The image key in {\ttfamily file} (if its an Eet one), or {\ttfamily N\+U\+L\+L}, otherwise. \\
\hline
\end{DoxyParams}


References efl\+::eo\+::base\+::\+\_\+eo\+\_\+ptr().

\hypertarget{structefl_1_1file_ae4c4d3946d471651b531d436f8607ce5}{\index{efl\+::file@{efl\+::file}!save@{save}}
\index{save@{save}!efl\+::file@{efl\+::file}}
\subsubsection[{save}]{\setlength{\rightskip}{0pt plus 5cm}bool efl\+::file\+::save (
\begin{DoxyParamCaption}
\item[{std\+::string}]{file\+\_\+, }
\item[{std\+::string}]{key\+\_\+, }
\item[{std\+::string}]{flags\+\_\+}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{structefl_1_1file_ae4c4d3946d471651b531d436f8607ce5}


Save the given image object's contents to an (image) file. 

The extension suffix on {\ttfamily file} will determine which {\bfseries saver module} Evas is to use when saving, thus the final file's format. If the file supports multiple data stored in it (Eet ones), you can specify the key to be used as the index of the image in it.

You can specify some flags when saving the image. Currently acceptable flags are {\ttfamily quality} and {\ttfamily compress}. Eg.\+: {\ttfamily \char`\"{}quality=100 compress=9\char`\"{}} 


\begin{DoxyParams}{Parameters}
{\em file} & The filename to be used to save the image (extension obligatory). \\
\hline
{\em key} & The image key in the file (if an Eet one), or {\ttfamily N\+U\+L\+L}, otherwise. \\
\hline
{\em flags} & String containing the flags to be used ({\ttfamily N\+U\+L\+L} for none). \\
\hline
\end{DoxyParams}


References efl\+::eo\+::base\+::\+\_\+eo\+\_\+ptr().

\hypertarget{structefl_1_1file_a130cf869a76e2b37d7ca7e44895c0c05}{\index{efl\+::file@{efl\+::file}!eject@{eject}}
\index{eject@{eject}!efl\+::file@{efl\+::file}}
\subsubsection[{eject}]{\setlength{\rightskip}{0pt plus 5cm}void efl\+::file\+::eject (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{structefl_1_1file_a130cf869a76e2b37d7ca7e44895c0c05}


Eject the represented object. 

Get rid of and clean the pointed resource. 

References efl\+::eo\+::base\+::\+\_\+eo\+\_\+ptr().

