Nested part feature represents the concept of hierarchy to edje.

A nested part inherits it'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's an example of a rect nested in other rect plus inner nested rect\+: 
\begin{DoxyCodeInclude}
1 collections \{
2    group \{
3       name: "main";
4       parts \{
5          part \{
6             type: RECT;
7             name: "red\_rect";
8             description \{
9                state: "default" 0.0;
10                color: 255 0 0 255;
11                rel1.relative: 0.2 0.1;
12                rel2.relative: 0.4 0.8;
13             \}
14 
15             part \{   /* This rect is nested in red\_rect */
16                type: RECT;
17                name: "green\_rect";
18                description \{
19                   state: "default" 0.0;
20                   color: 0 255 0 255;
21                   rel2.relative: 0.8 0.5;
22                \}
23 
24                part \{   /* This rect is nested in green\_rect */
25                   type: RECT;
26                   name: "blue\_rect";
27                   description \{
28                      state: "default" 0.0;
29                      color: 0 0 255 255;
30                      align: 1.0 1.0;
31                      rel1.relative: 0.5 0.5;
32                      rel2.relative: 1.0 1.0;
33                   \}
34                \}
35             \}
36          \}
37       \}
38    \}
39 \}
\end{DoxyCodeInclude}


The example's window should look like this picture\+:

  
\begin{DoxyImage}
\includegraphics{edje-nested}
\caption{width=}
\end{DoxyImage}
 