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 \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 <\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
\{
   \hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\_Coord} w, h;
\};

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

\textcolor{keyword}{struct }padding\_tuple
\{
   \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;
   \hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}            *canvas;
   \textcolor{keyword}{struct }rect\_data t\_data, b\_data;
   \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}{/* here just to keep our example's window size and background image's}
\textcolor{comment}{ * size in synchrony */}
\textcolor{keyword}{static} \textcolor{keywordtype}{void}
\_canvas\_resize\_cb(Ecore\_Evas *ee)
\{
   \textcolor{keywordtype}{int} w, h;

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

   \hyperlink{group__Evas__Font__Group_ga02da8091bbac768b8e86c7b74b2a94f9}{evas\_object\_move}(d.box, (w / 4), (h / 4));
   \hyperlink{group__Evas__Font__Group_ga21e8604c0e4a93e469bff4bd069e82b5}{evas\_object\_resize}(d.box, (w / 2), (h / 2));

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

\textcolor{keyword}{static} \textcolor{keywordtype}{void}
\_print\_rect\_stats(\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object} *rect)
\{
   \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);
   fprintf(stdout, \textcolor{stringliteral}{"\(\backslash\)talign hints: h(%f), v(%f)\(\backslash\)n"}, x, y);

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

   evas\_object\_size\_hint\_max\_get(rect, &w, &h);
   fprintf(stdout, \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);
   fprintf(stdout, \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);
   fprintf(stdout, \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 EINA\_UNUSED,
            \hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}        *evas EINA\_UNUSED,
            \hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object} *o EINA\_UNUSED,
            \textcolor{keywordtype}{void}        *einfo)
\{
   \hyperlink{struct__Evas__Event__Key__Down}{Evas\_Event\_Key\_Down} *ev = einfo;
   \textcolor{keyword}{struct }rect\_data *r\_data = NULL;
   \textcolor{keyword}{const} \hyperlink{Evas__Common_8h_a198d0b10861c1da456004688d3443e96}{Evas\_Modifier} *mods;
   \hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object} *rect = NULL;
   \textcolor{keyword}{const} \textcolor{keywordtype}{char} *name = NULL;

   mods = evas\_key\_modifier\_get(evas);
   \textcolor{keywordflow}{if} (\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} (\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->\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}, \textcolor{stringliteral}{"h"}) == 0) \textcolor{comment}{/* print help */}
     \{
        fprintf(stdout, commands);
        \textcolor{keywordflow}{return};
     \}
   \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (strcmp(ev->\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 */}
     \{
        fprintf(stdout, \textcolor{stringliteral}{"Top rectangle:\(\backslash\)n"});
        \_print\_rect\_stats(d.t\_rect);

        fprintf(stdout, \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->\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);

        fprintf(stdout, \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->\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);

        fprintf(stdout, \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->\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);

        fprintf(stdout, \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->\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);

        fprintf(stdout, \textcolor{stringliteral}{"Changing padding size hints for %s rect."}
                        \textcolor{stringliteral}{" 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->\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);

        fprintf(stdout, \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 EINA\_UNUSED)
\{
   \hyperlink{group__Ecore__Main__Loop__Group_ga95cf8e97dff0716433c2c5474d606a98}{ecore\_main\_loop\_quit}();
\}

\textcolor{keywordtype}{int}
main(\textcolor{keywordtype}{void})
\{
   \textcolor{keywordflow}{if} (!\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 = \hyperlink{group__Ecore__Evas__Group_gac7f2cdbcb79635c34317c1183dd04cb0}{ecore\_evas\_new}(NULL, 0, 0, WIDTH, HEIGHT, NULL);
   \textcolor{keywordflow}{if} (!d.ee)
     \textcolor{keywordflow}{goto} error;

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

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

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

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

   \textcolor{comment}{/* Evas box with vertical layout */}
   d.box = \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);
   \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 = \hyperlink{group__Evas__Object__Image_ga0e8cb83d31d02bf583c75925b7cd14d7}{evas\_object\_image\_filled\_add}(d.canvas);
   \hyperlink{group__Evas__Object__Image_gac27fd0ceabe5f56607b7a86d71577df1}{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, \hyperlink{Evas__Common_8h_a4a05f0fd82f51c6b330e349457cdc7e2a2ad856ac6aab5e2659c3a584a37aec70}{EVAS\_BORDER\_FILL\_NONE});
   \hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}(d.border);

   d.t\_rect = \hyperlink{group__Evas__Object__Rectangle_ga4d80fc32ad1cac28428cebd65d746751}{evas\_object\_rectangle\_add}(d.canvas);
   \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);
   \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 = \hyperlink{group__Evas__Object__Rectangle_ga4d80fc32ad1cac28428cebd65d746751}{evas\_object\_rectangle\_add}(d.canvas);
   \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);
   \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);

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

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}
 