\hypertarget{group__Edje__Part__Swallow}{\section{Edje Swallow Part}
\label{group__Edje__Part__Swallow}\index{Edje Swallow Part@{Edje Swallow Part}}
}


Functions that deal with parts of type swallow and swallowed objects.  


\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
\hypertarget{group__Edje__Part__Swallow_ga695dd4993f5cb3f58558f60cef5b2f6f}{typedef enum \-\_\-\-Edje\-\_\-\-Aspect\-\_\-\-Control {\bfseries Edje\-\_\-\-Aspect\-\_\-\-Control}}\label{group__Edje__Part__Swallow_ga695dd4993f5cb3f58558f60cef5b2f6f}

\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum {\bfseries \-\_\-\-Edje\-\_\-\-Aspect\-\_\-\-Control} \{ \\*
{\bfseries E\-D\-J\-E\-\_\-\-A\-S\-P\-E\-C\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-N\-O\-N\-E} = 0, 
\\*
{\bfseries E\-D\-J\-E\-\_\-\-A\-S\-P\-E\-C\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-N\-E\-I\-T\-H\-E\-R} = 1, 
\\*
{\bfseries E\-D\-J\-E\-\_\-\-A\-S\-P\-E\-C\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-H\-O\-R\-I\-Z\-O\-N\-T\-A\-L} = 2, 
\\*
{\bfseries E\-D\-J\-E\-\_\-\-A\-S\-P\-E\-C\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-V\-E\-R\-T\-I\-C\-A\-L} = 3, 
\\*
{\bfseries E\-D\-J\-E\-\_\-\-A\-S\-P\-E\-C\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-B\-O\-T\-H} = 4
 \}
\end{DoxyCompactItemize}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__Edje__Part__Swallow_ga0d6005925f8202e5167e37bafe41a071}{edje\-\_\-obj\-\_\-part\-\_\-swallow}(part, obj\-\_\-swallow, ret)~E\-D\-J\-E\-\_\-\-O\-B\-J\-\_\-\-I\-D(E\-D\-J\-E\-\_\-\-O\-B\-J\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-P\-A\-R\-T\-\_\-\-S\-W\-A\-L\-L\-O\-W), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(const char $\ast$, part), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\-\_\-\-Object} $\ast$, obj\-\_\-swallow), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\-\_\-\-Bool} $\ast$, ret)
\begin{DoxyCompactList}\small\item\em \char`\"{}\-Swallows\char`\"{} an object into one of the Edje object S\-W\-A\-L\-L\-O\-W \end{DoxyCompactList}\item 
\#define \hyperlink{group__Edje__Part__Swallow_ga4b387023bddda382114dc015eaa651c6}{edje\-\_\-obj\-\_\-part\-\_\-unswallow}(obj\-\_\-swallow)~E\-D\-J\-E\-\_\-\-O\-B\-J\-\_\-\-I\-D(E\-D\-J\-E\-\_\-\-O\-B\-J\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-P\-A\-R\-T\-\_\-\-U\-N\-S\-W\-A\-L\-L\-O\-W), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\-\_\-\-Object} $\ast$, obj\-\_\-swallow)
\begin{DoxyCompactList}\small\item\em Unswallow an object. \end{DoxyCompactList}\item 
\#define \hyperlink{group__Edje__Part__Swallow_ga8d1a47589ce592e4bda5b942f333ef6e}{edje\-\_\-obj\-\_\-part\-\_\-swallow\-\_\-get}(part, ret)~E\-D\-J\-E\-\_\-\-O\-B\-J\-\_\-\-I\-D(E\-D\-J\-E\-\_\-\-O\-B\-J\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-P\-A\-R\-T\-\_\-\-S\-W\-A\-L\-L\-O\-W\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(const char $\ast$, part), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\-\_\-\-Object} $\ast$$\ast$, ret)
\begin{DoxyCompactList}\small\item\em Get the object currently swallowed by a part. \end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{group__Edje__Part__Swallow_ga1eefa83478c1737fe8271bbd0b268842}{edje\-\_\-extern\-\_\-object\-\_\-min\-\_\-size\-\_\-set} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\-\_\-\-Object} $\ast$obj, Evas\-\_\-\-Coord minw, Evas\-\_\-\-Coord minh)
\begin{DoxyCompactList}\small\item\em Set the object minimum size. \end{DoxyCompactList}\item 
void \hyperlink{group__Edje__Part__Swallow_gafd23d04c945294e27ef9162d1dd55ce2}{edje\-\_\-extern\-\_\-object\-\_\-max\-\_\-size\-\_\-set} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\-\_\-\-Object} $\ast$obj, Evas\-\_\-\-Coord maxw, Evas\-\_\-\-Coord maxh)
\begin{DoxyCompactList}\small\item\em Set the object maximum size. \end{DoxyCompactList}\item 
void \hyperlink{group__Edje__Part__Swallow_gac45cb714b6755853db968d33fda84d4d}{edje\-\_\-extern\-\_\-object\-\_\-aspect\-\_\-set} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\-\_\-\-Object} $\ast$obj, Edje\-\_\-\-Aspect\-\_\-\-Control aspect, Evas\-\_\-\-Coord aw, Evas\-\_\-\-Coord ah)
\begin{DoxyCompactList}\small\item\em Set the object aspect size. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\-\_\-\-Bool} \hyperlink{group__Edje__Part__Swallow_ga97d1419f89bff20ba971e47c78641271}{edje\-\_\-object\-\_\-part\-\_\-swallow} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\-\_\-\-Object} $\ast$obj, const char $\ast$part, \hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\-\_\-\-Object} $\ast$obj\-\_\-swallow)
\begin{DoxyCompactList}\small\item\em \char`\"{}\-Swallows\char`\"{} an object into one of the Edje object {\ttfamily S\-W\-A\-L\-L\-O\-W} parts. \end{DoxyCompactList}\item 
void \hyperlink{group__Edje__Part__Swallow_gae3b14c31085fb74945b75301295168d8}{edje\-\_\-object\-\_\-part\-\_\-unswallow} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\-\_\-\-Object} $\ast$obj, \hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\-\_\-\-Object} $\ast$obj\-\_\-swallow)
\begin{DoxyCompactList}\small\item\em Unswallow an object. \end{DoxyCompactList}\item 
\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\-\_\-\-Object} $\ast$ \hyperlink{group__Edje__Part__Swallow_gac6bc801cd2e3181b946b686da25378e7}{edje\-\_\-object\-\_\-part\-\_\-swallow\-\_\-get} (const \hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\-\_\-\-Object} $\ast$obj, const char $\ast$part)
\begin{DoxyCompactList}\small\item\em Get the object currently swallowed by a part. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Functions that deal with parts of type swallow and swallowed objects. A important feature of Edje is to be able to create Evas\-\_\-\-Objects in code and place them in a layout. And that is what swallowing is all about.

Swallow parts are place holders defined in the E\-D\-C file for objects that one may want to include in the layout later, or for objects that are not native of Edje. In this last case, Edje will only treat the Evas\-\_\-\-Object properties of the swallowed objects. 

\subsection{Macro Definition Documentation}
\hypertarget{group__Edje__Part__Swallow_ga0d6005925f8202e5167e37bafe41a071}{\index{Edje Swallow Part@{Edje Swallow Part}!edje\-\_\-obj\-\_\-part\-\_\-swallow@{edje\-\_\-obj\-\_\-part\-\_\-swallow}}
\index{edje\-\_\-obj\-\_\-part\-\_\-swallow@{edje\-\_\-obj\-\_\-part\-\_\-swallow}!Edje Swallow Part@{Edje Swallow Part}}
\subsubsection[{edje\-\_\-obj\-\_\-part\-\_\-swallow}]{\setlength{\rightskip}{0pt plus 5cm}\#define edje\-\_\-obj\-\_\-part\-\_\-swallow(
\begin{DoxyParamCaption}
\item[{}]{part, }
\item[{}]{obj\-\_\-swallow, }
\item[{}]{ret}
\end{DoxyParamCaption}
)~E\-D\-J\-E\-\_\-\-O\-B\-J\-\_\-\-I\-D(E\-D\-J\-E\-\_\-\-O\-B\-J\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-P\-A\-R\-T\-\_\-\-S\-W\-A\-L\-L\-O\-W), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(const char $\ast$, part), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K({\bf Evas\-\_\-\-Object} $\ast$, obj\-\_\-swallow), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K({\bf Eina\-\_\-\-Bool} $\ast$, ret)}}\label{group__Edje__Part__Swallow_ga0d6005925f8202e5167e37bafe41a071}


\char`\"{}\-Swallows\char`\"{} an object into one of the Edje object S\-W\-A\-L\-L\-O\-W 

\begin{DoxySince}{Since}
1.\-8
\end{DoxySince}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em part} & \\
\hline
\mbox{\tt in}  & {\em obj\-\_\-swallow} & \\
\hline
\mbox{\tt out}  & {\em ret} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Edje__Part__Swallow_ga97d1419f89bff20ba971e47c78641271}{edje\-\_\-object\-\_\-part\-\_\-swallow} 
\end{DoxySeeAlso}


Referenced by edje\-\_\-object\-\_\-part\-\_\-swallow().

\hypertarget{group__Edje__Part__Swallow_ga4b387023bddda382114dc015eaa651c6}{\index{Edje Swallow Part@{Edje Swallow Part}!edje\-\_\-obj\-\_\-part\-\_\-unswallow@{edje\-\_\-obj\-\_\-part\-\_\-unswallow}}
\index{edje\-\_\-obj\-\_\-part\-\_\-unswallow@{edje\-\_\-obj\-\_\-part\-\_\-unswallow}!Edje Swallow Part@{Edje Swallow Part}}
\subsubsection[{edje\-\_\-obj\-\_\-part\-\_\-unswallow}]{\setlength{\rightskip}{0pt plus 5cm}\#define edje\-\_\-obj\-\_\-part\-\_\-unswallow(
\begin{DoxyParamCaption}
\item[{}]{obj\-\_\-swallow}
\end{DoxyParamCaption}
)~E\-D\-J\-E\-\_\-\-O\-B\-J\-\_\-\-I\-D(E\-D\-J\-E\-\_\-\-O\-B\-J\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-P\-A\-R\-T\-\_\-\-U\-N\-S\-W\-A\-L\-L\-O\-W), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K({\bf Evas\-\_\-\-Object} $\ast$, obj\-\_\-swallow)}}\label{group__Edje__Part__Swallow_ga4b387023bddda382114dc015eaa651c6}


Unswallow an object. 

\begin{DoxySince}{Since}
1.\-8
\end{DoxySince}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em obj\-\_\-swallow} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Edje__Part__Swallow_gae3b14c31085fb74945b75301295168d8}{edje\-\_\-object\-\_\-part\-\_\-unswallow} 
\end{DoxySeeAlso}


Referenced by edje\-\_\-object\-\_\-part\-\_\-unswallow().

\hypertarget{group__Edje__Part__Swallow_ga8d1a47589ce592e4bda5b942f333ef6e}{\index{Edje Swallow Part@{Edje Swallow Part}!edje\-\_\-obj\-\_\-part\-\_\-swallow\-\_\-get@{edje\-\_\-obj\-\_\-part\-\_\-swallow\-\_\-get}}
\index{edje\-\_\-obj\-\_\-part\-\_\-swallow\-\_\-get@{edje\-\_\-obj\-\_\-part\-\_\-swallow\-\_\-get}!Edje Swallow Part@{Edje Swallow Part}}
\subsubsection[{edje\-\_\-obj\-\_\-part\-\_\-swallow\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}\#define edje\-\_\-obj\-\_\-part\-\_\-swallow\-\_\-get(
\begin{DoxyParamCaption}
\item[{}]{part, }
\item[{}]{ret}
\end{DoxyParamCaption}
)~E\-D\-J\-E\-\_\-\-O\-B\-J\-\_\-\-I\-D(E\-D\-J\-E\-\_\-\-O\-B\-J\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-P\-A\-R\-T\-\_\-\-S\-W\-A\-L\-L\-O\-W\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(const char $\ast$, part), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K({\bf Evas\-\_\-\-Object} $\ast$$\ast$, ret)}}\label{group__Edje__Part__Swallow_ga8d1a47589ce592e4bda5b942f333ef6e}


Get the object currently swallowed by a part. 

\begin{DoxySince}{Since}
1.\-8
\end{DoxySince}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em part} & \\
\hline
\mbox{\tt out}  & {\em ret} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Edje__Part__Swallow_gac6bc801cd2e3181b946b686da25378e7}{edje\-\_\-object\-\_\-part\-\_\-swallow\-\_\-get} 
\end{DoxySeeAlso}


Referenced by edje\-\_\-object\-\_\-part\-\_\-swallow\-\_\-get().



\subsection{Function Documentation}
\hypertarget{group__Edje__Part__Swallow_ga1eefa83478c1737fe8271bbd0b268842}{\index{Edje Swallow Part@{Edje Swallow Part}!edje\-\_\-extern\-\_\-object\-\_\-min\-\_\-size\-\_\-set@{edje\-\_\-extern\-\_\-object\-\_\-min\-\_\-size\-\_\-set}}
\index{edje\-\_\-extern\-\_\-object\-\_\-min\-\_\-size\-\_\-set@{edje\-\_\-extern\-\_\-object\-\_\-min\-\_\-size\-\_\-set}!Edje Swallow Part@{Edje Swallow Part}}
\subsubsection[{edje\-\_\-extern\-\_\-object\-\_\-min\-\_\-size\-\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}void edje\-\_\-extern\-\_\-object\-\_\-min\-\_\-size\-\_\-set (
\begin{DoxyParamCaption}
\item[{{\bf Evas\-\_\-\-Object} $\ast$}]{obj, }
\item[{Evas\-\_\-\-Coord}]{minw, }
\item[{Evas\-\_\-\-Coord}]{minh}
\end{DoxyParamCaption}
)}}\label{group__Edje__Part__Swallow_ga1eefa83478c1737fe8271bbd0b268842}


Set the object minimum size. 


\begin{DoxyParams}{Parameters}
{\em obj} & A valid Evas\-\_\-\-Object handle \\
\hline
{\em minw} & The minimum width \\
\hline
{\em minh} & The minimum height\\
\hline
\end{DoxyParams}
This sets the minimum size restriction for the object. 

References evas\-\_\-object\-\_\-data\-\_\-get(), and evas\-\_\-object\-\_\-size\-\_\-hint\-\_\-min\-\_\-set().

\hypertarget{group__Edje__Part__Swallow_gafd23d04c945294e27ef9162d1dd55ce2}{\index{Edje Swallow Part@{Edje Swallow Part}!edje\-\_\-extern\-\_\-object\-\_\-max\-\_\-size\-\_\-set@{edje\-\_\-extern\-\_\-object\-\_\-max\-\_\-size\-\_\-set}}
\index{edje\-\_\-extern\-\_\-object\-\_\-max\-\_\-size\-\_\-set@{edje\-\_\-extern\-\_\-object\-\_\-max\-\_\-size\-\_\-set}!Edje Swallow Part@{Edje Swallow Part}}
\subsubsection[{edje\-\_\-extern\-\_\-object\-\_\-max\-\_\-size\-\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}void edje\-\_\-extern\-\_\-object\-\_\-max\-\_\-size\-\_\-set (
\begin{DoxyParamCaption}
\item[{{\bf Evas\-\_\-\-Object} $\ast$}]{obj, }
\item[{Evas\-\_\-\-Coord}]{maxw, }
\item[{Evas\-\_\-\-Coord}]{maxh}
\end{DoxyParamCaption}
)}}\label{group__Edje__Part__Swallow_gafd23d04c945294e27ef9162d1dd55ce2}


Set the object maximum size. 


\begin{DoxyParams}{Parameters}
{\em obj} & A valid Evas\-\_\-\-Object handle \\
\hline
{\em maxw} & The maximum width \\
\hline
{\em maxh} & The maximum height\\
\hline
\end{DoxyParams}
This sets the maximum size restriction for the object. 

References evas\-\_\-object\-\_\-data\-\_\-get(), and evas\-\_\-object\-\_\-size\-\_\-hint\-\_\-max\-\_\-set().

\hypertarget{group__Edje__Part__Swallow_gac45cb714b6755853db968d33fda84d4d}{\index{Edje Swallow Part@{Edje Swallow Part}!edje\-\_\-extern\-\_\-object\-\_\-aspect\-\_\-set@{edje\-\_\-extern\-\_\-object\-\_\-aspect\-\_\-set}}
\index{edje\-\_\-extern\-\_\-object\-\_\-aspect\-\_\-set@{edje\-\_\-extern\-\_\-object\-\_\-aspect\-\_\-set}!Edje Swallow Part@{Edje Swallow Part}}
\subsubsection[{edje\-\_\-extern\-\_\-object\-\_\-aspect\-\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}void edje\-\_\-extern\-\_\-object\-\_\-aspect\-\_\-set (
\begin{DoxyParamCaption}
\item[{{\bf Evas\-\_\-\-Object} $\ast$}]{obj, }
\item[{Edje\-\_\-\-Aspect\-\_\-\-Control}]{aspect, }
\item[{Evas\-\_\-\-Coord}]{aw, }
\item[{Evas\-\_\-\-Coord}]{ah}
\end{DoxyParamCaption}
)}}\label{group__Edje__Part__Swallow_gac45cb714b6755853db968d33fda84d4d}


Set the object aspect size. 


\begin{DoxyParams}{Parameters}
{\em obj} & A valid Evas\-\_\-\-Object handle \\
\hline
{\em aspect} & The aspect control axes \\
\hline
{\em aw} & The aspect radio width \\
\hline
{\em ah} & The aspect ratio height\\
\hline
\end{DoxyParams}
This sets the desired aspect ratio to keep an object that will be swallowed by Edje. The width and height define a preferred size A\-S\-P\-E\-C\-T and the object may be scaled to be larger or smaller, but retaining the relative scale of both aspect width and height. 

References E\-V\-A\-S\-\_\-\-A\-S\-P\-E\-C\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-B\-O\-T\-H, E\-V\-A\-S\-\_\-\-A\-S\-P\-E\-C\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-H\-O\-R\-I\-Z\-O\-N\-T\-A\-L, E\-V\-A\-S\-\_\-\-A\-S\-P\-E\-C\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-N\-E\-I\-T\-H\-E\-R, E\-V\-A\-S\-\_\-\-A\-S\-P\-E\-C\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-N\-O\-N\-E, E\-V\-A\-S\-\_\-\-A\-S\-P\-E\-C\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-V\-E\-R\-T\-I\-C\-A\-L, evas\-\_\-object\-\_\-data\-\_\-get(), and evas\-\_\-object\-\_\-size\-\_\-hint\-\_\-aspect\-\_\-set().

\hypertarget{group__Edje__Part__Swallow_ga97d1419f89bff20ba971e47c78641271}{\index{Edje Swallow Part@{Edje Swallow Part}!edje\-\_\-object\-\_\-part\-\_\-swallow@{edje\-\_\-object\-\_\-part\-\_\-swallow}}
\index{edje\-\_\-object\-\_\-part\-\_\-swallow@{edje\-\_\-object\-\_\-part\-\_\-swallow}!Edje Swallow Part@{Edje Swallow Part}}
\subsubsection[{edje\-\_\-object\-\_\-part\-\_\-swallow}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\-\_\-\-Bool} edje\-\_\-object\-\_\-part\-\_\-swallow (
\begin{DoxyParamCaption}
\item[{{\bf Evas\-\_\-\-Object} $\ast$}]{obj, }
\item[{const char $\ast$}]{part, }
\item[{{\bf Evas\-\_\-\-Object} $\ast$}]{obj\-\_\-swallow}
\end{DoxyParamCaption}
)}}\label{group__Edje__Part__Swallow_ga97d1419f89bff20ba971e47c78641271}


\char`\"{}\-Swallows\char`\"{} an object into one of the Edje object {\ttfamily S\-W\-A\-L\-L\-O\-W} parts. 


\begin{DoxyParams}{Parameters}
{\em obj} & A valid Edje object handle \\
\hline
{\em part} & The swallow part's name \\
\hline
{\em obj\-\_\-swallow} & The object to occupy that part\\
\hline
\end{DoxyParams}
Swallowing an object into an Edje object is, for a given part of type {\ttfamily S\-W\-A\-L\-L\-O\-W} in the E\-D\-C group which gave life to {\itshape obj}, to set an external object to be controlled by {\itshape obj}, being displayed exactly over that part's region inside the whole Edje object's viewport.

From this point on, {\itshape obj} will have total control over {\itshape obj\-\_\-swallow's} geometry and visibility. For instance, if {\itshape obj} is visible, as in {\ttfamily \hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\-\_\-object\-\_\-show()}}, the swallowed object will be visible too -- if the given {\ttfamily S\-W\-A\-L\-L\-O\-W} part it's in is also visible. Other actions on {\itshape obj} will also reflect on the swallowed object as well (e.\-g. resizing, moving, raising/lowering, etc.).

Finally, all internal changes to {\itshape part}, specifically, will reflect on the displaying of {\itshape obj\-\_\-swallow}, for example state changes leading to different visibility states, geometries, positions, etc.

If an object has already been swallowed into this part, then it will first be unswallowed (as in \hyperlink{group__Edje__Part__Swallow_gae3b14c31085fb74945b75301295168d8}{edje\-\_\-object\-\_\-part\-\_\-unswallow()}) before the new object is swallowed.

\begin{DoxyNote}{Note}
{\itshape obj} {\bfseries won't} delete the swallowed object once it is deleted -- {\itshape obj\-\_\-swallow} will get to an unparented state again.
\end{DoxyNote}
For more details on E\-D\-C {\ttfamily S\-W\-A\-L\-L\-O\-W} parts, see \hyperlink{edcref}{syntax}reference". \begin{Desc}
\item[Examples\-: ]\par
\hyperlink{edje-swallow_8c-example}{edje-\/swallow.\-c}, and \hyperlink{evas-aspect-hints_8c-example}{evas-\/aspect-\/hints.\-c}.\end{Desc}


References edje\-\_\-obj\-\_\-part\-\_\-swallow, and E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E.

\hypertarget{group__Edje__Part__Swallow_gae3b14c31085fb74945b75301295168d8}{\index{Edje Swallow Part@{Edje Swallow Part}!edje\-\_\-object\-\_\-part\-\_\-unswallow@{edje\-\_\-object\-\_\-part\-\_\-unswallow}}
\index{edje\-\_\-object\-\_\-part\-\_\-unswallow@{edje\-\_\-object\-\_\-part\-\_\-unswallow}!Edje Swallow Part@{Edje Swallow Part}}
\subsubsection[{edje\-\_\-object\-\_\-part\-\_\-unswallow}]{\setlength{\rightskip}{0pt plus 5cm}void edje\-\_\-object\-\_\-part\-\_\-unswallow (
\begin{DoxyParamCaption}
\item[{{\bf Evas\-\_\-\-Object} $\ast$}]{obj, }
\item[{{\bf Evas\-\_\-\-Object} $\ast$}]{obj\-\_\-swallow}
\end{DoxyParamCaption}
)}}\label{group__Edje__Part__Swallow_gae3b14c31085fb74945b75301295168d8}


Unswallow an object. 


\begin{DoxyParams}{Parameters}
{\em obj} & A valid Evas\-\_\-\-Object handle \\
\hline
{\em obj\-\_\-swallow} & The swallowed object\\
\hline
\end{DoxyParams}
Causes the edje to regurgitate a previously swallowed object. \-:)

\begin{DoxyNote}{Note}
{\ttfamily obj\-\_\-swallow} will {\bfseries not} be deleted or hidden. 

{\ttfamily obj\-\_\-swallow} may appear shown on the evas depending on its state when it got unswallowed. Make sure you delete it or hide it if you do not want it to. 
\end{DoxyNote}


References edje\-\_\-obj\-\_\-part\-\_\-unswallow.

\hypertarget{group__Edje__Part__Swallow_gac6bc801cd2e3181b946b686da25378e7}{\index{Edje Swallow Part@{Edje Swallow Part}!edje\-\_\-object\-\_\-part\-\_\-swallow\-\_\-get@{edje\-\_\-object\-\_\-part\-\_\-swallow\-\_\-get}}
\index{edje\-\_\-object\-\_\-part\-\_\-swallow\-\_\-get@{edje\-\_\-object\-\_\-part\-\_\-swallow\-\_\-get}!Edje Swallow Part@{Edje Swallow Part}}
\subsubsection[{edje\-\_\-object\-\_\-part\-\_\-swallow\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Evas\-\_\-\-Object}$\ast$ edje\-\_\-object\-\_\-part\-\_\-swallow\-\_\-get (
\begin{DoxyParamCaption}
\item[{const {\bf Evas\-\_\-\-Object} $\ast$}]{obj, }
\item[{const char $\ast$}]{part}
\end{DoxyParamCaption}
)}}\label{group__Edje__Part__Swallow_gac6bc801cd2e3181b946b686da25378e7}


Get the object currently swallowed by a part. 


\begin{DoxyParams}{Parameters}
{\em obj} & A valid Evas\-\_\-\-Object handle \\
\hline
{\em part} & The part name \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The swallowed object, or N\-U\-L\-L if there is none. 
\end{DoxyReturn}
\begin{Desc}
\item[Examples\-: ]\par
\hyperlink{edje-swallow_8c-example}{edje-\/swallow.\-c}.\end{Desc}


References edje\-\_\-obj\-\_\-part\-\_\-swallow\-\_\-get.

