Nested part feature represents the concept of hierarchy to edje.

A nested part inherits it\textquotesingle{}s location relatively to the parent part. Thus, parent part modifications such move or map effects all nested parts. To declare a nested part just start a new part declaration within (before closing) the current part declaration.

Note that nested part declaration is allowed only after current part name is defined.

Here\textquotesingle{}s an example of a rect nested in other rect plus inner nested rect\+: 
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{collections \{}
\DoxyCodeLine{   group \{}
\DoxyCodeLine{      name: "{}main"{};}
\DoxyCodeLine{      parts \{}
\DoxyCodeLine{         part \{}
\DoxyCodeLine{            type: RECT;}
\DoxyCodeLine{            name: "{}red\_rect"{};}
\DoxyCodeLine{            description \{}
\DoxyCodeLine{               state: "{}default"{} 0.0;}
\DoxyCodeLine{               color: 255 0 0 255;}
\DoxyCodeLine{               rel1.relative: 0.2 0.1;}
\DoxyCodeLine{               rel2.relative: 0.4 0.8;}
\DoxyCodeLine{            \}}
\DoxyCodeLine{}
\DoxyCodeLine{            part \{   /* This rect is nested in red\_rect */}
\DoxyCodeLine{               type: RECT;}
\DoxyCodeLine{               name: "{}green\_rect"{};}
\DoxyCodeLine{               description \{}
\DoxyCodeLine{                  state: "{}default"{} 0.0;}
\DoxyCodeLine{                  color: 0 255 0 255;}
\DoxyCodeLine{                  rel2.relative: 0.8 0.5;}
\DoxyCodeLine{               \}}
\DoxyCodeLine{}
\DoxyCodeLine{               part \{   /* This rect is nested in green\_rect */}
\DoxyCodeLine{                  type: RECT;}
\DoxyCodeLine{                  name: "{}blue\_rect"{};}
\DoxyCodeLine{                  description \{}
\DoxyCodeLine{                     state: "{}default"{} 0.0;}
\DoxyCodeLine{                     color: 0 0 255 255;}
\DoxyCodeLine{                     align: 1.0 1.0;}
\DoxyCodeLine{                     rel1.relative: 0.5 0.5;}
\DoxyCodeLine{                     rel2.relative: 1.0 1.0;}
\DoxyCodeLine{                  \}}
\DoxyCodeLine{               \}}
\DoxyCodeLine{            \}}
\DoxyCodeLine{         \}}
\DoxyCodeLine{      \}}
\DoxyCodeLine{   \}}
\DoxyCodeLine{\}}

\end{DoxyCodeInclude}


The example\textquotesingle{}s window should look like this picture\+:

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth]{edje-nested}}
\end{DoxyImageNoCaption}
 