\section{layout\-\_\-example.\-edc}

\begin{DoxyCodeInclude}
collections \{

   group \{
      name: \textcolor{stringliteral}{"example/mylayout"};

      data \{
         item: \textcolor{stringliteral}{"title"} \textcolor{stringliteral}{"Layout Example 01"};
      \}

      parts \{
         part \{
            name: \textcolor{stringliteral}{"example/title"};
            type: TEXT;

            description \{
               state: \textcolor{stringliteral}{"default"} 0.0;
               color: 0 0 0 255;
               rel1 \{
                  relative: 0.0 0.0;
                  offset: 0 0;
               \}
               rel2 \{
                  relative: 1.0 0.2;
                  offset: -1 -1;
               \}
               text \{
                  text: \textcolor{stringliteral}{"bla"};
                  size: 16;
                  font: \textcolor{stringliteral}{"sans"};
                  min: 1 1;
               \}
            \}
         \}

         part \{
            name: \textcolor{stringliteral}{"example/custom"};
            type: SWALLOW;

            description \{
               state: \textcolor{stringliteral}{"default"} 0.0;
               fixed: 1 1;

               rel1 \{
                  relative: 0.25 0.8;
                  offset: 0 0;
               \}
               rel2 \{
                  relative: 0.75 0.9;
                  offset: -1 -1;
               \}
            \}
         \} \textcolor{comment}{// example/custom}

         part \{
            name: \textcolor{stringliteral}{"example/box"};
            type: BOX;

            description \{
               state: \textcolor{stringliteral}{"default"} 0.0;

               box \{
                  layout: \textcolor{stringliteral}{"horizontal\_flow"};
                  padding: 2 2;
                  align: 0.5 0.5;
                  min: 1 1;
               \}
               rel1 \{
                  relative: 0.0 0.2;
                  offset: 0 0;
               \}
               rel2 \{
                  relative: 1.0 0.5;
                  offset: -1 -1;
               \}
            \}
         \} \textcolor{comment}{// example/box}

         part \{
            name: \textcolor{stringliteral}{"example/table"};
            type: TABLE;

            description \{
               state: \textcolor{stringliteral}{"default"} 0.0;

               table \{
                  homogeneous: NONE;
                  padding: 2 2;
                  align: 0.5 0.5;
                  min: 1 1;
               \}
               rel1 \{
                  relative: 0.0 0.5;
                  offset: 0 0;
               \}
               rel2 \{
                  relative: 1.0 0.7;
                  offset: -1 -1;
               \}
            \}
         \} \textcolor{comment}{// example/table}
      \}
   \}

   group \{
      name: \textcolor{stringliteral}{"example/mylayout3"};

      data \{
         item: \textcolor{stringliteral}{"title"} \textcolor{stringliteral}{"Layout Example 03"};
      \}

      parts \{
         part \{
            name: \textcolor{stringliteral}{"example/title"};
            type: TEXT;

               description \{
               state: \textcolor{stringliteral}{"default"} 0.0;
               color: 0 0 0 255;
               rel1 \{
                  relative: 0.0 0.0;
                  offset: 0 0;
               \}
               rel2 \{
                  relative: 1.0 0.2;
                  offset: -1 -1;
               \}
               text \{
                  text: \textcolor{stringliteral}{"bla"};
                  size: 16;
                  font: \textcolor{stringliteral}{"sans"};
                  min: 1 1;
               \}
            \}
         \}

         part \{
            name: \textcolor{stringliteral}{"example/custom"};
            type: SWALLOW;

            description \{
               state: \textcolor{stringliteral}{"default"} 0.0;
               min: 160 50;
               max: 160 50;
               align: 0.5 1.0;
            \}
            description \{
               state: \textcolor{stringliteral}{"big"} 0.0;
               inherit: \textcolor{stringliteral}{"default"} 0.0;
               min: 320 100;
               max: 320 100;
            \}
         \} \textcolor{comment}{// example/custom}

         programs \{
            program \{
               name: \textcolor{stringliteral}{"swallow,grow"};
               signal: \textcolor{stringliteral}{"button,enlarge"};
               action: STATE\_SET \textcolor{stringliteral}{"big"} 0.0;
               transition: LINEAR 0.5;
               target: \textcolor{stringliteral}{"example/custom"};
               after: \textcolor{stringliteral}{"emit,changed"};
            \}
            program \{
               name: \textcolor{stringliteral}{"swallow,shrink"};
               signal: \textcolor{stringliteral}{"button,reduce"};
               action: STATE\_SET \textcolor{stringliteral}{"default"} 0.0;
               transition: LINEAR 0.5;
               target: \textcolor{stringliteral}{"example/custom"};
               after: \textcolor{stringliteral}{"emit,changed"};
            \}
            program \{
               name: \textcolor{stringliteral}{"emit,changed"};
               action: SIGNAL\_EMIT \textcolor{stringliteral}{"size,changed"} \textcolor{stringliteral}{""};
            \}
         \}
      \}
   \}
\}
\end{DoxyCodeInclude}
 