In this code, we place a (vertical) box with two rectangles as child elements.

It has a command line interface with which to act on those rectangles\textquotesingle{} {\bfseries size hints}\+:  
\begin{DoxyCodeInclude}
\textcolor{keyword}{static} \textcolor{keyword}{const} \textcolor{keywordtype}{char} commands[] = \(\backslash\)
  \textcolor{stringliteral}{"commands are:\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tShift + a - change alignment hints on top rectangle\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tShift + m - change min. size hint on top rectangle\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tShift + n - change max. size hint on top rectangle\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tShift + p - change padding hints on top rectangle\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tShift + w - change weight hints on top rectangle\(\backslash\)n\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tControl + a - change alignment hints on bottom rectangle\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tControl + m - change min. size hint on bottom rectangle\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tControl + n - change max. size hint on bottom rectangle\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tControl + p - change padding hints on bottom rectangle\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tControl + w - change weight hints on bottom rectangle\(\backslash\)n\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)ts - print current hints information\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)th - print help\(\backslash\)n"};

\end{DoxyCodeInclude}


That should be self explanatory. Change those values (possibly resizing the box, which will resize together with the example\textquotesingle{}s window) to get how size hints are honored by a container object, which in this case is the Evas box.

More on this smart object can be found on \mbox{\hyperlink{Example_Evas_Box}{Evas box example}}. The full code for this example follows.


\begin{DoxyCodeInclude}

\textcolor{preprocessor}{#ifdef HAVE\_CONFIG\_H}
\textcolor{preprocessor}{#include "config.h"}
\textcolor{preprocessor}{#else}
\textcolor{preprocessor}{#define PACKAGE\_EXAMPLES\_DIR "."}
\textcolor{preprocessor}{#endif}

\textcolor{preprocessor}{#include <Ecore.h>}
\textcolor{preprocessor}{#include <\mbox{\hyperlink{Ecore__Evas_8h}{Ecore\_Evas.h}}>}
\textcolor{preprocessor}{#include <stdlib.h>}
\textcolor{preprocessor}{#include <stdio.h>}
\textcolor{preprocessor}{#include <string.h>}
\textcolor{preprocessor}{#include "evas-common.h"}

\textcolor{preprocessor}{#define WIDTH  320}
\textcolor{preprocessor}{#define HEIGHT 480}

\textcolor{keyword}{static} \textcolor{keyword}{const} \textcolor{keywordtype}{char} commands[] = \(\backslash\)
  \textcolor{stringliteral}{"commands are:\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tShift + a - change alignment hints on top rectangle\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tShift + m - change min. size hint on top rectangle\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tShift + n - change max. size hint on top rectangle\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tShift + p - change padding hints on top rectangle\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tShift + w - change weight hints on top rectangle\(\backslash\)n\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tControl + a - change alignment hints on bottom rectangle\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tControl + m - change min. size hint on bottom rectangle\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tControl + n - change max. size hint on bottom rectangle\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tControl + p - change padding hints on bottom rectangle\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)tControl + w - change weight hints on bottom rectangle\(\backslash\)n\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)ts - print current hints information\(\backslash\)n"}
  \textcolor{stringliteral}{"\(\backslash\)th - print help\(\backslash\)n"};

\textcolor{keyword}{static} \textcolor{keyword}{const} \textcolor{keywordtype}{char} *border\_img\_path = PACKAGE\_EXAMPLES\_DIR EVAS\_IMAGE\_FOLDER \textcolor{stringliteral}{"/red.png"};

\textcolor{keyword}{struct }coord\_tuple
\{
   \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\_Coord}} w, h;
\};

\textcolor{keyword}{struct }weight\_tuple
\{
   \textcolor{keywordtype}{double} x, y;
\};

\textcolor{keyword}{struct }padding\_tuple
\{
   \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\_Coord}} l, r, t, b;
\};

\textcolor{keyword}{struct }rect\_data
\{
   \textcolor{keyword}{struct }coord\_tuple   *min\_ptr;
   \textcolor{keyword}{struct }coord\_tuple    min[4];

   \textcolor{keyword}{struct }coord\_tuple   *max\_ptr;
   \textcolor{keyword}{struct }coord\_tuple    max[4];

   \textcolor{keyword}{struct }weight\_tuple  *align\_ptr;
   \textcolor{keyword}{struct }weight\_tuple   align[3];

   \textcolor{keyword}{struct }weight\_tuple  *weight\_ptr;
   \textcolor{keyword}{struct }weight\_tuple   weight[3];

   \textcolor{keyword}{struct }padding\_tuple *padding\_ptr;
   \textcolor{keyword}{struct }padding\_tuple  padding[3];
\};

\textcolor{keyword}{struct }test\_data
\{
   Ecore\_Evas      *ee;
   \mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}}            *canvas;
   \textcolor{keyword}{struct }rect\_data t\_data, b\_data;
   \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}     *bg, *box, *t\_rect, *b\_rect, *border;
\};

\textcolor{keyword}{static} \textcolor{keyword}{struct }test\_data d = \{0\};

\textcolor{comment}{/* Keep the example's window size in sync with the background image's size */}
\textcolor{keyword}{static} \textcolor{keywordtype}{void}
\_canvas\_resize\_cb(Ecore\_Evas *ee)
\{
   \textcolor{keywordtype}{int} w, h;

   \mbox{\hyperlink{group__Ecore__Evas__Group_ga931aadf4603731e73e8a84e4b14f1493}{ecore\_evas\_geometry\_get}}(ee, NULL, NULL, &w, &h);
   evas\_object\_resize(d.bg, w, h);

   evas\_object\_move(d.box, (w / 4), (h / 4));
   evas\_object\_resize(d.box, (w / 2), (h / 2));

   evas\_object\_move(d.border, (w / 4) - 3, (h / 4) - 3);
   evas\_object\_resize(d.border, (w / 2) + 6, (h / 2) + 6);
\}

\textcolor{keyword}{static} \textcolor{keywordtype}{void}
\_print\_rect\_stats(\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *rect)
\{
   \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\_Coord}} w, h, l, r, t, b;
   \textcolor{keywordtype}{double} x, y;

   evas\_object\_size\_hint\_align\_get(rect, &x, &y);
   printf(\textcolor{stringliteral}{"\(\backslash\)talign hints: h(%f), v(%f)\(\backslash\)n"},
          x, y);

   efl\_gfx\_size\_hint\_combined\_min\_get(rect, &w, &h);
   printf(\textcolor{stringliteral}{"\(\backslash\)tmin. size hints: h(%d), v(%d)\(\backslash\)n"},
          w, h);

   evas\_object\_size\_hint\_max\_get(rect, &w, &h);
   printf(\textcolor{stringliteral}{"\(\backslash\)tmax. size hints: h(%d), v(%d)\(\backslash\)n"},
          w, h);

   evas\_object\_size\_hint\_padding\_get(rect, &l, &r, &t, &b);
   printf(\textcolor{stringliteral}{"\(\backslash\)tpadding hints: l(%d), r(%d), t(%d), b(%d)\(\backslash\)n"},
          l, r, t, b);

   evas\_object\_size\_hint\_weight\_get(rect, &x, &y);
   printf(\textcolor{stringliteral}{"\(\backslash\)tweight hints: h(%f), v(%f)\(\backslash\)n"},
          x, y);
\}

\textcolor{comment}{/* use the following commands to interact with this example - 'h' is}
\textcolor{comment}{ * the key for help */}
\textcolor{keyword}{static} \textcolor{keywordtype}{void}
\_on\_keydown(\textcolor{keywordtype}{void}        *data \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},
            \mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}}        *\mbox{\hyperlink{namespaceevas}{evas}} \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},
            \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *o \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},
            \textcolor{keywordtype}{void}        *einfo)
\{
   \mbox{\hyperlink{struct__Evas__Event__Key__Down}{Evas\_Event\_Key\_Down}} *ev = einfo;
   \textcolor{keyword}{struct }rect\_data *r\_data = NULL;
   \textcolor{keyword}{const} Evas\_Modifier *mods;
   \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *rect = NULL;
   \textcolor{keyword}{const} \textcolor{keywordtype}{char} *name = NULL;

   mods = \mbox{\hyperlink{group__Evas__Canvas_gaad42bb4caa43c1cfef4096f6ac2b99ec}{evas\_key\_modifier\_get}}(\mbox{\hyperlink{namespaceevas}{evas}});
   \textcolor{keywordflow}{if} (\mbox{\hyperlink{group__Evas__Keys_ga6cc24a5ea4b39b84c7a3e617de3db261}{evas\_key\_modifier\_is\_set}}(mods, \textcolor{stringliteral}{"Shift"}))
     \{
        rect = d.t\_rect;
        r\_data = &d.t\_data;
        name = \textcolor{stringliteral}{"top"};
     \}
   \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (\mbox{\hyperlink{group__Evas__Keys_ga6cc24a5ea4b39b84c7a3e617de3db261}{evas\_key\_modifier\_is\_set}}(mods, \textcolor{stringliteral}{"Control"}))
     \{
        rect = d.b\_rect;
        r\_data = &d.b\_data;
        name = \textcolor{stringliteral}{"bottom"};
     \}
   \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (strcmp(ev->\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"h"}) == 0) \textcolor{comment}{/* print help */}
     \{
        printf(commands);
        \textcolor{keywordflow}{return};
     \}
   \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (strcmp(ev->\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"s"}) == 0) \textcolor{comment}{/* get aspect status of the}
\textcolor{comment}{                                            * rectangles WRT size}
\textcolor{comment}{                                            * hints */}
     \{
        printf(\textcolor{stringliteral}{"Top rectangle:\(\backslash\)n"});
        \_print\_rect\_stats(d.t\_rect);

        printf(\textcolor{stringliteral}{"\(\backslash\)nBottom rectangle:\(\backslash\)n"});
        \_print\_rect\_stats(d.b\_rect);

        \textcolor{keywordflow}{return};
     \}

   \textcolor{keywordflow}{if} (!rect) \textcolor{keywordflow}{return};

   \textcolor{keywordflow}{if} (strcmp(ev->\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"a"}) == 0) \textcolor{comment}{/* alignment hints */}
     \{
        (r\_data->align\_ptr)++;

        \textcolor{keywordflow}{if} ((\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int})
            (((\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} *)(r\_data->align\_ptr)) - ((\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} *)(r\_data->align))) >=
            \textcolor{keyword}{sizeof}(r\_data->align))
          r\_data->align\_ptr = r\_data->align;

        evas\_object\_size\_hint\_align\_set(
          rect, r\_data->align\_ptr->x, r\_data->align\_ptr->y);

        printf(\textcolor{stringliteral}{"Changing align hints for %s rect. to (%f, %f)\(\backslash\)n"},
               name, r\_data->align\_ptr->x, r\_data->align\_ptr->y);
        \textcolor{keywordflow}{return};
     \}

   \textcolor{keywordflow}{if} (strcmp(ev->\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"m"}) == 0) \textcolor{comment}{/* min. size hints */}
     \{
        (r\_data->min\_ptr)++;

        \textcolor{keywordflow}{if} ((\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int})
            (((\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} *)(r\_data->min\_ptr)) - ((\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} *)(r\_data->min))) >=
            \textcolor{keyword}{sizeof}(r\_data->min))
          r\_data->min\_ptr = r\_data->min;

        evas\_object\_size\_hint\_min\_set(
          rect, r\_data->min\_ptr->w, r\_data->min\_ptr->h);

        printf(\textcolor{stringliteral}{"Changing min. size hints for %s rect. to (%d, %d)\(\backslash\)n"},
               name, r\_data->min\_ptr->w, r\_data->min\_ptr->h);
        \textcolor{keywordflow}{return};
     \}

   \textcolor{keywordflow}{if} (strcmp(ev->\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"n"}) == 0) \textcolor{comment}{/* max. size hints */}
     \{
        (r\_data->max\_ptr)++;

        \textcolor{keywordflow}{if} ((\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int})
            (((\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} *)(r\_data->max\_ptr)) - ((\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} *)(r\_data->max))) >=
            \textcolor{keyword}{sizeof}(r\_data->max))
          r\_data->max\_ptr = r\_data->max;

        evas\_object\_size\_hint\_max\_set(
          rect, r\_data->max\_ptr->w, r\_data->max\_ptr->h);

        printf(\textcolor{stringliteral}{"Changing max. size hints for %s rect. to (%d, %d)\(\backslash\)n"},
               name, r\_data->max\_ptr->w, r\_data->max\_ptr->h);
        \textcolor{keywordflow}{return};
     \}

   \textcolor{keywordflow}{if} (strcmp(ev->\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"p"}) == 0) \textcolor{comment}{/* padding size hints */}
     \{
        (r\_data->padding\_ptr)++;

        \textcolor{keywordflow}{if} ((\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int})
            (((\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} *)(r\_data->padding\_ptr)) - ((\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} *)(r\_data->padding))) >=
            \textcolor{keyword}{sizeof}(r\_data->padding))
          r\_data->padding\_ptr = r\_data->padding;

        evas\_object\_size\_hint\_padding\_set(
          rect, r\_data->padding\_ptr->l, r\_data->padding\_ptr->r,
          r\_data->padding\_ptr->t, r\_data->padding\_ptr->b);

        printf(\textcolor{stringliteral}{"Changing padding size hints for %s rect. to (%d, %d, %d, %d)\(\backslash\)n"},
               name, r\_data->padding\_ptr->l, r\_data->padding\_ptr->r,
               r\_data->padding\_ptr->t, r\_data->padding\_ptr->b);
        \textcolor{keywordflow}{return};
     \}

   \textcolor{comment}{/* experiment with weights here. keep in mind that, for the box}
\textcolor{comment}{    * object, only if all the children have non zero weights this hint}
\textcolor{comment}{    * will have an effect */}
   \textcolor{keywordflow}{if} (strcmp(ev->\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"w"}) == 0) \textcolor{comment}{/* weight hints */}
     \{
        (r\_data->weight\_ptr)++;

        \textcolor{keywordflow}{if} ((\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int})
            (((\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} *)(r\_data->weight\_ptr)) - ((\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} *)(r\_data->weight))) >=
            \textcolor{keyword}{sizeof}(r\_data->weight))
          r\_data->weight\_ptr = r\_data->weight;

        evas\_object\_size\_hint\_weight\_set(
          rect, r\_data->weight\_ptr->x, r\_data->weight\_ptr->y);

        printf(\textcolor{stringliteral}{"Changing weight hints for %s rect. to (%f, %f)\(\backslash\)n"},
               name, r\_data->weight\_ptr->x, r\_data->weight\_ptr->y);
        \textcolor{keywordflow}{return};
     \}
\}

\textcolor{keyword}{static} \textcolor{keywordtype}{void}
\_on\_destroy(Ecore\_Evas *ee \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})
\{
   \mbox{\hyperlink{group__Ecore__Main__Loop__Group_ga95cf8e97dff0716433c2c5474d606a98}{ecore\_main\_loop\_quit}}();
\}

\textcolor{keywordtype}{int}
main(\textcolor{keywordtype}{void})
\{
   \textcolor{keywordflow}{if} (!\mbox{\hyperlink{group__Ecore__Evas__Group_ga32ddbb6457033ad435a177eb0c4fe235}{ecore\_evas\_init}}())
     \textcolor{keywordflow}{return} EXIT\_FAILURE;

   \textcolor{comment}{/* init values one is going to cycle through while running this}
\textcolor{comment}{    * example */}
   \textcolor{keyword}{struct }rect\_data init\_data = \(\backslash\)
   \{
      .min = \{\{0, 0\}, \{30, 30\}, \{100, 70\}, \{200, 200\}\},
      .max = \{\{0, 0\}, \{100, 100\}, \{100, 70\}, \{300, 300\}\},
      .align = \{\{0.0, 0.0\}, \{0.5, 0.5\}, \{1.0, 0.5\}\},
      .weight = \{\{0.0, 0.0\}, \{3, 6\}, \{10, 100\}\},
      .padding = \{\{0, 0, 0, 0\}, \{3, 6, 9, 12\}, \{10, 20, 0, 30\}\}
   \};

   d.t\_data = init\_data;

   d.t\_data.min\_ptr = d.t\_data.min + 1;
   d.t\_data.max\_ptr = d.t\_data.max + 1;
   d.t\_data.align\_ptr = d.t\_data.align;
   d.t\_data.weight\_ptr = d.t\_data.weight;
   d.t\_data.padding\_ptr = d.t\_data.padding;

   d.b\_data = init\_data;

   d.b\_data.min\_ptr = d.b\_data.min + 1;
   d.b\_data.max\_ptr = d.b\_data.max + 1;
   d.b\_data.align\_ptr = d.b\_data.align;
   d.b\_data.weight\_ptr = d.b\_data.weight;
   d.b\_data.padding\_ptr = d.b\_data.padding;

   \textcolor{comment}{/* this will give you a window with an Evas canvas under the first}
\textcolor{comment}{    * engine available */}
   d.ee = \mbox{\hyperlink{group__Ecore__Evas__Group_gac7f2cdbcb79635c34317c1183dd04cb0}{ecore\_evas\_new}}(NULL, 0, 0, WIDTH, HEIGHT, NULL);
   \textcolor{keywordflow}{if} (!d.ee)
     \textcolor{keywordflow}{goto} \mbox{\hyperlink{namespaceefl_1_1eina_1_1log__level_a0eec9fe47d243634f680b56a7d768ec7}{error}};

   \mbox{\hyperlink{group__Ecore__Evas__Group_ga3680b5c89157167318192157a5d24ec4}{ecore\_evas\_callback\_destroy\_set}}(d.ee, \_on\_destroy);
   \mbox{\hyperlink{group__Ecore__Evas__Group_gaac67f679c9027059a34519fbdea360df}{ecore\_evas\_callback\_resize\_set}}(d.ee, \_canvas\_resize\_cb);
   \mbox{\hyperlink{group__Ecore__Evas__Group_ga4953047ff97d4f1b0d75a7d513d4f317}{ecore\_evas\_show}}(d.ee);

   \textcolor{comment}{/* the canvas pointer, de facto */}
   d.canvas = \mbox{\hyperlink{group__Ecore__Evas__Group_ga75a7cc694b6069e78df47dab0b0f2d20}{ecore\_evas\_get}}(d.ee);

   d.bg = \mbox{\hyperlink{group__Evas__Object__Rectangle_ga4d80fc32ad1cac28428cebd65d746751}{evas\_object\_rectangle\_add}}(d.canvas);
   \mbox{\hyperlink{group__Evas__Object__Group__Basic_gae34bdcfd7f5100151f6ea8ef4a392949}{evas\_object\_color\_set}}(d.bg, 255, 255, 255, 255); \textcolor{comment}{/* white bg */}
   evas\_object\_move(d.bg, 0, 0); \textcolor{comment}{/* at canvas' origin */}
   evas\_object\_resize(d.bg, WIDTH, HEIGHT); \textcolor{comment}{/* covers full canvas */}
   \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}}(d.bg);

   evas\_object\_focus\_set(d.bg, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});
   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(
     d.bg, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a336b86bad4f145f84c155e4922335584}{EVAS\_CALLBACK\_KEY\_DOWN}}, \_on\_keydown, NULL);

   \textcolor{comment}{/* Evas box with vertical layout */}
   d.box = \mbox{\hyperlink{group__Evas__Object__Box_gad413687e53adcbb70ced91d4a4218b45}{evas\_object\_box\_add}}(d.canvas);
   evas\_object\_box\_layout\_set(
     d.box, evas\_object\_box\_layout\_vertical, NULL, NULL);
   \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}}(d.box);

   \textcolor{comment}{/* this is a border around the box, container of the rectangles we}
\textcolor{comment}{    * are going to experiment with (changing some size hints). this}
\textcolor{comment}{    * way you can see how the container relates to the children */}
   d.border = evas\_object\_image\_filled\_add(d.canvas);
   evas\_object\_image\_file\_set(d.border, border\_img\_path, NULL);
   evas\_object\_image\_border\_set(d.border, 3, 3, 3, 3);
   evas\_object\_image\_border\_center\_fill\_set(d.border, EVAS\_BORDER\_FILL\_NONE);
   \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}}(d.border);

   d.t\_rect = \mbox{\hyperlink{group__Evas__Object__Rectangle_ga4d80fc32ad1cac28428cebd65d746751}{evas\_object\_rectangle\_add}}(d.canvas);
   \mbox{\hyperlink{group__Evas__Object__Group__Basic_gae34bdcfd7f5100151f6ea8ef4a392949}{evas\_object\_color\_set}}(d.t\_rect, 0, 0, 255, 255);

   evas\_object\_size\_hint\_min\_set(
          d.t\_rect, d.t\_data.min\_ptr->w, d.t\_data.min\_ptr->h);
   \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}}(d.t\_rect);
   evas\_object\_box\_append(d.box, d.t\_rect);

   d.b\_rect = \mbox{\hyperlink{group__Evas__Object__Rectangle_ga4d80fc32ad1cac28428cebd65d746751}{evas\_object\_rectangle\_add}}(d.canvas);
   \mbox{\hyperlink{group__Evas__Object__Group__Basic_gae34bdcfd7f5100151f6ea8ef4a392949}{evas\_object\_color\_set}}(d.b\_rect, 0, 255, 0, 255);

   evas\_object\_size\_hint\_min\_set(
          d.b\_rect, d.b\_data.min\_ptr->w, d.b\_data.min\_ptr->h);
   \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}}(d.b\_rect);
   evas\_object\_box\_append(d.box, d.b\_rect);

   \_canvas\_resize\_cb(d.ee);

   printf(commands);
   \mbox{\hyperlink{group__Ecore__Main__Loop__Group_gaf103b9f668bb3e4fed12e52c6180132d}{ecore\_main\_loop\_begin}}();
   \mbox{\hyperlink{group__Ecore__Evas__Group_gab8fa311077f749190c9b622f672b2214}{ecore\_evas\_shutdown}}();
   \textcolor{keywordflow}{return} 0;

\mbox{\hyperlink{namespaceefl_1_1eina_1_1log__level_a0eec9fe47d243634f680b56a7d768ec7}{error}}:
   fprintf(stderr, \textcolor{stringliteral}{"You got to have at least one evas engine built and linked"}
                   \textcolor{stringliteral}{" up to ecore-evas for this example to run properly.\(\backslash\)n"});
   \textcolor{keywordflow}{return} -1;
\}
\end{DoxyCodeInclude}
 