

In this example, we have three images on the canvas, but one of them is special -- we\textquotesingle{}re using it as a {\bfseries{proxy image object}}. It will mirror the contents of the other two images (which are the ones on the top of the canvas), one at a time\+: 
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{   d.proxy\_img = evas\_object\_image\_filled\_add(d.evas);}
\DoxyCodeLine{   evas\_object\_image\_source\_set(d.proxy\_img, d.logo);}
\DoxyCodeLine{   evas\_object\_move(d.proxy\_img, WIDTH / 2, HEIGHT / 2);}
\DoxyCodeLine{   evas\_object\_resize(d.proxy\_img, WIDTH / 2, HEIGHT / 2);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}}(d.proxy\_img);}

\end{DoxyCodeInclude}
 As in other examples, we have a command line interface on it.  
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{keyword}{static} \textcolor{keyword}{const} \textcolor{keywordtype}{char} *commands = \(\backslash\)}
\DoxyCodeLine{  \textcolor{stringliteral}{"commands are:\(\backslash\)n"}}
\DoxyCodeLine{  \textcolor{stringliteral}{"\(\backslash\)tp -\/ change proxy image's source\(\backslash\)n"}}
\DoxyCodeLine{  \textcolor{stringliteral}{"\(\backslash\)ts -\/ print noise image's stride value\(\backslash\)n"}}
\DoxyCodeLine{  \textcolor{stringliteral}{"\(\backslash\)ta -\/ save noise image to disk (/tmp dir)\(\backslash\)n"}}
\DoxyCodeLine{  \textcolor{stringliteral}{"\(\backslash\)tv -\/ change source visibility\(\backslash\)n"}}
\DoxyCodeLine{  \textcolor{stringliteral}{"\(\backslash\)te -\/ enable/disable source events\(\backslash\)n"}}
\DoxyCodeLine{  \textcolor{stringliteral}{"\(\backslash\)th -\/ print help\(\backslash\)n"};}

\end{DoxyCodeInclude}
 The \textquotesingle{}p\textquotesingle{} one will change the source of the proxy image to one of the other two, as seem above. 
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{   \textcolor{keywordflow}{if} (strcmp(ev-\/>\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"p"}) == 0) \textcolor{comment}{/* change proxy's source */}}
\DoxyCodeLine{     \{}
\DoxyCodeLine{        \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *source = evas\_object\_image\_source\_get(d.proxy\_img);}
\DoxyCodeLine{}
\DoxyCodeLine{        \textcolor{keywordflow}{if} (source == d.logo) source = d.noise\_img;}
\DoxyCodeLine{        \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (source == d.noise\_img) source = d.text\_obj;}
\DoxyCodeLine{        \textcolor{keywordflow}{else} source = d.logo;}
\DoxyCodeLine{}
\DoxyCodeLine{        evas\_object\_image\_source\_set(d.proxy\_img, source);}
\DoxyCodeLine{}
\DoxyCodeLine{        printf(\textcolor{stringliteral}{"Proxy image's source changed\(\backslash\)n"});}
\DoxyCodeLine{}
\DoxyCodeLine{        \textcolor{keywordflow}{return};}
\DoxyCodeLine{     \}}

\end{DoxyCodeInclude}
 Note the top right image, the smaller one\+:  
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{   d.noise\_img = \mbox{\hyperlink{group__Evas__Object__Image_gadd901a6b181c38dc040537b3fd76fcc6}{evas\_object\_image\_add}}(d.evas);}
\DoxyCodeLine{   evas\_object\_image\_size\_set(d.noise\_img, WIDTH / 4, HEIGHT / 4);}
\DoxyCodeLine{   evas\_object\_image\_data\_set(d.noise\_img, pixels);}
\DoxyCodeLine{   evas\_object\_image\_filled\_set(d.noise\_img, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});}
\DoxyCodeLine{   evas\_object\_move(d.noise\_img, (WIDTH * 5) / 8, HEIGHT / 8);}
\DoxyCodeLine{   evas\_object\_resize(d.noise\_img, WIDTH / 4, HEIGHT / 4);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}}(d.noise\_img);}

\end{DoxyCodeInclude}
 Since we are creating the data for its pixel buffer ourselves, we have to set its size with evas\+\_\+object\+\_\+image\+\_\+size\+\_\+set(), first. We set our data with the function evas\+\_\+object\+\_\+image\+\_\+data\+\_\+set(), where the second argument is a buffer with random data. There\textquotesingle{}s a last command to print it\textquotesingle{}s {\bfseries{stride}} value. Since its created with one quarter of the canvas\textquotesingle{}s original width  
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{preprocessor}{\#define WIDTH  (320)}}
\DoxyCodeLine{\textcolor{preprocessor}{\#define HEIGHT (240)}}

\end{DoxyCodeInclude}
 you can check this value.

The image on the top left also has a subtlety\+: it is {\bfseries{pre-\/loaded}} on this example.  
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{   d.logo = evas\_object\_image\_filled\_add(d.evas);}
\DoxyCodeLine{}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(}
\DoxyCodeLine{       d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a5cd5ca5f4dcd51dd2429f020cb2dfa9e}{EVAS\_CALLBACK\_IMAGE\_PRELOADED}}, \_on\_preloaded, NULL);}
\DoxyCodeLine{   evas\_object\_image\_preload(d.logo, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});}
\DoxyCodeLine{}
\DoxyCodeLine{   evas\_object\_image\_file\_set(d.logo, img\_path, NULL);}
\DoxyCodeLine{   evas\_object\_resize(d.logo, WIDTH / 2, HEIGHT / 2);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a9fa52651ccf7e47cd3b7785fc4cf393f}{EVAS\_CALLBACK\_MOUSE\_DOWN}}, \_mouse\_down, 0);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a23fb97fb7cbccded54ccf3fc4e1dab8a}{EVAS\_CALLBACK\_MOUSE\_MOVE}}, \_mouse\_move, 0);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a8c1b22c99dd0231cd9ba1fecbffffac7}{EVAS\_CALLBACK\_MOUSE\_UP}}, \_mouse\_up, 0);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a598c57bc146639618157159a319f11af}{EVAS\_CALLBACK\_MOUSE\_IN}}, \_mouse\_in, 0);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a91aaa30a57047d0ee8a734e603751c25}{EVAS\_CALLBACK\_MOUSE\_OUT}}, \_mouse\_out, 0);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968ab5bb0de31eaeed655255e71ffe518b80}{EVAS\_CALLBACK\_MULTI\_DOWN}}, \_multi\_down, 0);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a4328f52cfb700b5c705edf7173afdd94}{EVAS\_CALLBACK\_MULTI\_UP}}, \_multi\_up, 0);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a6d0ade7e69dc62f728fa2e29168e923f}{EVAS\_CALLBACK\_MULTI\_MOVE}}, \_multi\_move, 0);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a585e05307b99c361e54df68a4f341a85}{EVAS\_CALLBACK\_HOLD}}, \_hold, 0);}
\DoxyCodeLine{}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}}(d.logo);}

\end{DoxyCodeInclude}
 On real use cases we wouldn\textquotesingle{}t be just printing something like this  
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_mouse\_down(\textcolor{keywordtype}{void} *data \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}} *e \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *obj,}
\DoxyCodeLine{            \textcolor{keywordtype}{void} *event\_info)}
\DoxyCodeLine{\{}
\DoxyCodeLine{   \mbox{\hyperlink{struct__Evas__Event__Mouse__Down}{Evas\_Event\_Mouse\_Down}} *ev = event\_info;}
\DoxyCodeLine{   printf(\textcolor{stringliteral}{"Mouse Down -\/ obj(\%p), coords(\%d \%d)\(\backslash\)n"},}
\DoxyCodeLine{          obj, ev-\/>\mbox{\hyperlink{struct__Evas__Event__Mouse__Down_adcaa4cd5eadd8c04cc5510a5b2514eb5}{canvas}}.\mbox{\hyperlink{struct__Evas__Coord__Point_ad809771faf3700a1492e4465336e6b1e}{x}}, ev-\/>\mbox{\hyperlink{struct__Evas__Event__Mouse__Down_adcaa4cd5eadd8c04cc5510a5b2514eb5}{canvas}}.\mbox{\hyperlink{struct__Evas__Coord__Point_ad7450d6ad43e6a7394af6807721144f7}{y}});}
\DoxyCodeLine{\}}

\end{DoxyCodeInclude}
 naturally.

The \textquotesingle{}s\textquotesingle{} command will save one of the images on the disk, in the png format\+:  
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{   \textcolor{keywordflow}{if} (strcmp(ev-\/>\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"a"}) == 0) \textcolor{comment}{/* save noise image to disk */}}
\DoxyCodeLine{     \{}
\DoxyCodeLine{        \textcolor{keywordflow}{if} (!evas\_object\_image\_save(d.noise\_img, file\_path, NULL, quality\_str))}
\DoxyCodeLine{          fprintf(stderr, \textcolor{stringliteral}{"Cannot save image to '\%s' (flags '\%s')\(\backslash\)n"},}
\DoxyCodeLine{                  file\_path, quality\_str);}
\DoxyCodeLine{        \textcolor{keywordflow}{else}}
\DoxyCodeLine{          printf(\textcolor{stringliteral}{"Image saved to '\%s' (flags '\%s'), check it out with "}}
\DoxyCodeLine{                 \textcolor{stringliteral}{"an image viewer\(\backslash\)n"}, file\_path, quality\_str);}
\DoxyCodeLine{}
\DoxyCodeLine{        \textcolor{keywordflow}{return};}
\DoxyCodeLine{     \}}

\end{DoxyCodeInclude}


The full example follows.


\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{preprocessor}{\#ifdef HAVE\_CONFIG\_H}}
\DoxyCodeLine{\textcolor{preprocessor}{\#include "config.h"}}
\DoxyCodeLine{\textcolor{preprocessor}{\#else}}
\DoxyCodeLine{\textcolor{preprocessor}{\#define PACKAGE\_EXAMPLES\_DIR "."}}
\DoxyCodeLine{\textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{preprocessor}{\#include <Ecore.h>}}
\DoxyCodeLine{\textcolor{preprocessor}{\#include <\mbox{\hyperlink{Ecore__Evas_8h}{Ecore\_Evas.h}}>}}
\DoxyCodeLine{\textcolor{preprocessor}{\#include <stdio.h>}}
\DoxyCodeLine{\textcolor{preprocessor}{\#include <errno.h>}}
\DoxyCodeLine{\textcolor{preprocessor}{\#include "evas-\/common.h"}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{preprocessor}{\#define WIDTH  (320)}}
\DoxyCodeLine{\textcolor{preprocessor}{\#define HEIGHT (240)}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static} \textcolor{keyword}{const} \textcolor{keywordtype}{char} *img\_path = PACKAGE\_EXAMPLES\_DIR EVAS\_IMAGE\_FOLDER \textcolor{stringliteral}{"/enlightenment.png"};}
\DoxyCodeLine{\textcolor{keyword}{static} \textcolor{keyword}{const} \textcolor{keywordtype}{char} *commands = \(\backslash\)}
\DoxyCodeLine{  \textcolor{stringliteral}{"commands are:\(\backslash\)n"}}
\DoxyCodeLine{  \textcolor{stringliteral}{"\(\backslash\)tp -\/ change proxy image's source\(\backslash\)n"}}
\DoxyCodeLine{  \textcolor{stringliteral}{"\(\backslash\)ts -\/ print noise image's stride value\(\backslash\)n"}}
\DoxyCodeLine{  \textcolor{stringliteral}{"\(\backslash\)ta -\/ save noise image to disk (/tmp dir)\(\backslash\)n"}}
\DoxyCodeLine{  \textcolor{stringliteral}{"\(\backslash\)tv -\/ change source visibility\(\backslash\)n"}}
\DoxyCodeLine{  \textcolor{stringliteral}{"\(\backslash\)te -\/ enable/disable source events\(\backslash\)n"}}
\DoxyCodeLine{  \textcolor{stringliteral}{"\(\backslash\)th -\/ print help\(\backslash\)n"};}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{const} \textcolor{keywordtype}{char} *file\_path = \textcolor{stringliteral}{"/tmp/evas-\/images2-\/example.png"};}
\DoxyCodeLine{\textcolor{keyword}{const} \textcolor{keywordtype}{char} *quality\_str = \textcolor{stringliteral}{"quality=100"};}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{struct }test\_data}
\DoxyCodeLine{\{}
\DoxyCodeLine{   Ecore\_Evas  *ee;}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}}        *evas;}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *logo, *noise\_img, *proxy\_img, *text\_obj, *bg;}
\DoxyCodeLine{\};}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static} \textcolor{keyword}{struct }test\_data d = \{0\};}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_mouse\_down(\textcolor{keywordtype}{void} *data \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}} *e \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *obj,}
\DoxyCodeLine{            \textcolor{keywordtype}{void} *event\_info)}
\DoxyCodeLine{\{}
\DoxyCodeLine{   \mbox{\hyperlink{struct__Evas__Event__Mouse__Down}{Evas\_Event\_Mouse\_Down}} *ev = event\_info;}
\DoxyCodeLine{   printf(\textcolor{stringliteral}{"Mouse Down -\/ obj(\%p), coords(\%d \%d)\(\backslash\)n"},}
\DoxyCodeLine{          obj, ev-\/>\mbox{\hyperlink{struct__Evas__Event__Mouse__Down_adcaa4cd5eadd8c04cc5510a5b2514eb5}{canvas}}.\mbox{\hyperlink{struct__Evas__Coord__Point_ad809771faf3700a1492e4465336e6b1e}{x}}, ev-\/>\mbox{\hyperlink{struct__Evas__Event__Mouse__Down_adcaa4cd5eadd8c04cc5510a5b2514eb5}{canvas}}.\mbox{\hyperlink{struct__Evas__Coord__Point_ad7450d6ad43e6a7394af6807721144f7}{y}});}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_mouse\_move(\textcolor{keywordtype}{void} *data \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}} *e \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *obj,}
\DoxyCodeLine{            \textcolor{keywordtype}{void} *event\_info)}
\DoxyCodeLine{\{}
\DoxyCodeLine{   \mbox{\hyperlink{struct__Evas__Event__Mouse__Move}{Evas\_Event\_Mouse\_Move}} *ev = event\_info;}
\DoxyCodeLine{   printf(\textcolor{stringliteral}{"Mouse Move -\/ obj(\%p), coords(\%d \%d)\(\backslash\)n"},}
\DoxyCodeLine{          obj, ev-\/>\mbox{\hyperlink{struct__Evas__Event__Mouse__Move_a652812079b71cc4c52053a75c4b574e2}{cur}}.\mbox{\hyperlink{struct__Evas__Position_a7e8e1417868ef65b1c2cee1f9f02e4eb}{canvas}}.\mbox{\hyperlink{struct__Evas__Coord__Point_ad809771faf3700a1492e4465336e6b1e}{x}}, ev-\/>\mbox{\hyperlink{struct__Evas__Event__Mouse__Move_a652812079b71cc4c52053a75c4b574e2}{cur}}.\mbox{\hyperlink{struct__Evas__Position_a7e8e1417868ef65b1c2cee1f9f02e4eb}{canvas}}.\mbox{\hyperlink{struct__Evas__Coord__Point_ad7450d6ad43e6a7394af6807721144f7}{y}});}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_mouse\_up(\textcolor{keywordtype}{void} *data \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}} *e \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *obj,}
\DoxyCodeLine{          \textcolor{keywordtype}{void} *event\_info)}
\DoxyCodeLine{\{}
\DoxyCodeLine{   \mbox{\hyperlink{struct__Evas__Event__Mouse__Up}{Evas\_Event\_Mouse\_Up}} *ev = event\_info;}
\DoxyCodeLine{   printf(\textcolor{stringliteral}{"Mouse Up -\/ obj(\%p), coords(\%d \%d)\(\backslash\)n"},}
\DoxyCodeLine{          obj, ev-\/>\mbox{\hyperlink{struct__Evas__Event__Mouse__Up_a6da4d82e2ec11b37fe971b17c5ac01dc}{canvas}}.\mbox{\hyperlink{struct__Evas__Coord__Point_ad809771faf3700a1492e4465336e6b1e}{x}}, ev-\/>\mbox{\hyperlink{struct__Evas__Event__Mouse__Up_a6da4d82e2ec11b37fe971b17c5ac01dc}{canvas}}.\mbox{\hyperlink{struct__Evas__Coord__Point_ad7450d6ad43e6a7394af6807721144f7}{y}});}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_multi\_down(\textcolor{keywordtype}{void} *data \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}} *e \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *obj,}
\DoxyCodeLine{            \textcolor{keywordtype}{void} *event\_info)}
\DoxyCodeLine{\{}
\DoxyCodeLine{   \mbox{\hyperlink{struct__Evas__Event__Multi__Down}{Evas\_Event\_Multi\_Down}} *ev = event\_info;}
\DoxyCodeLine{   printf(\textcolor{stringliteral}{"Multi Down -\/ obj(\%p), coords(\%d \%d)\(\backslash\)n"},}
\DoxyCodeLine{          obj, ev-\/>canvas.\mbox{\hyperlink{struct__Evas__Coord__Precision__Point_a8cab3483eece4600b298d56f4a46fc60}{x}}, ev-\/>canvas.\mbox{\hyperlink{struct__Evas__Coord__Precision__Point_a76cb7d78f6840bcad39739cbe26227d2}{y}});}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_multi\_move(\textcolor{keywordtype}{void} *data \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}} *e \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *obj,}
\DoxyCodeLine{             \textcolor{keywordtype}{void} *event\_info)}
\DoxyCodeLine{\{}
\DoxyCodeLine{   \mbox{\hyperlink{struct__Evas__Event__Multi__Move}{Evas\_Event\_Multi\_Move}} *ev = event\_info;}
\DoxyCodeLine{   printf(\textcolor{stringliteral}{"Multi Move -\/ obj(\%p), coords(\%d \%d)\(\backslash\)n"},}
\DoxyCodeLine{          obj, ev-\/>cur.\mbox{\hyperlink{struct__Evas__Precision__Position_a4ee2ba8991b6657d668397b75f939eb7}{canvas}}.\mbox{\hyperlink{struct__Evas__Coord__Precision__Point_a8cab3483eece4600b298d56f4a46fc60}{x}}, ev-\/>cur.\mbox{\hyperlink{struct__Evas__Precision__Position_a4ee2ba8991b6657d668397b75f939eb7}{canvas}}.\mbox{\hyperlink{struct__Evas__Coord__Precision__Point_a76cb7d78f6840bcad39739cbe26227d2}{y}});}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_multi\_up(\textcolor{keywordtype}{void} *data \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}} *e \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *obj,}
\DoxyCodeLine{          \textcolor{keywordtype}{void} *event\_info)}
\DoxyCodeLine{\{}
\DoxyCodeLine{   \mbox{\hyperlink{struct__Evas__Event__Multi__Up}{Evas\_Event\_Multi\_Up}} *ev = event\_info;}
\DoxyCodeLine{   printf(\textcolor{stringliteral}{"Multi Up -\/ obj(\%p), coords(\%d \%d)\(\backslash\)n"},}
\DoxyCodeLine{          obj, ev-\/>canvas.\mbox{\hyperlink{struct__Evas__Coord__Precision__Point_a8cab3483eece4600b298d56f4a46fc60}{x}}, ev-\/>canvas.\mbox{\hyperlink{struct__Evas__Coord__Precision__Point_a76cb7d78f6840bcad39739cbe26227d2}{y}});}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_mouse\_in(\textcolor{keywordtype}{void} *data \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}} *e \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *obj,}
\DoxyCodeLine{          \textcolor{keywordtype}{void} *event\_info)}
\DoxyCodeLine{\{}
\DoxyCodeLine{   \mbox{\hyperlink{struct__Evas__Event__Mouse__In}{Evas\_Event\_Mouse\_In}} *ev = event\_info;}
\DoxyCodeLine{   printf(\textcolor{stringliteral}{"Mouse In -\/ obj(\%p), coords(\%d \%d)\(\backslash\)n"},}
\DoxyCodeLine{          obj, ev-\/>\mbox{\hyperlink{struct__Evas__Event__Mouse__In_a8b899409a50a9caf027cb195bf68683f}{canvas}}.\mbox{\hyperlink{struct__Evas__Coord__Point_ad809771faf3700a1492e4465336e6b1e}{x}}, ev-\/>\mbox{\hyperlink{struct__Evas__Event__Mouse__In_a8b899409a50a9caf027cb195bf68683f}{canvas}}.\mbox{\hyperlink{struct__Evas__Coord__Point_ad7450d6ad43e6a7394af6807721144f7}{y}});}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_mouse\_out(\textcolor{keywordtype}{void} *data \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}} *e \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *obj,}
\DoxyCodeLine{           \textcolor{keywordtype}{void} *event\_info)}
\DoxyCodeLine{\{}
\DoxyCodeLine{   \mbox{\hyperlink{struct__Evas__Event__Mouse__Out}{Evas\_Event\_Mouse\_Out}} *ev = event\_info;}
\DoxyCodeLine{   printf(\textcolor{stringliteral}{"Mouse Out -\/ obj(\%p), coords(\%d \%d)\(\backslash\)n"},}
\DoxyCodeLine{          obj, ev-\/>\mbox{\hyperlink{struct__Evas__Event__Mouse__Out_abd681a1b6fc7f555c30ac86c664de696}{canvas}}.\mbox{\hyperlink{struct__Evas__Coord__Point_ad809771faf3700a1492e4465336e6b1e}{x}}, ev-\/>\mbox{\hyperlink{struct__Evas__Event__Mouse__Out_abd681a1b6fc7f555c30ac86c664de696}{canvas}}.\mbox{\hyperlink{struct__Evas__Coord__Point_ad7450d6ad43e6a7394af6807721144f7}{y}});}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_hold(\textcolor{keywordtype}{void} *data \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}} *e \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *obj,}
\DoxyCodeLine{      \textcolor{keywordtype}{void} *event\_info)}
\DoxyCodeLine{\{}
\DoxyCodeLine{   \mbox{\hyperlink{struct__Evas__Event__Hold}{Evas\_Event\_Hold}} *ev = event\_info;}
\DoxyCodeLine{   printf(\textcolor{stringliteral}{"Hold -\/ obj(\%p), hold(\%d)\(\backslash\)n"}, obj, ev-\/>\mbox{\hyperlink{struct__Evas__Event__Hold_a21f7238382ebd994e083623f777853f3}{hold}});}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_on\_preloaded(\textcolor{keywordtype}{void}        *data \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},}
\DoxyCodeLine{              \mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}}        *e \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},}
\DoxyCodeLine{              \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *obj \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},}
\DoxyCodeLine{              \textcolor{keywordtype}{void}        *event\_info \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{    printf(\textcolor{stringliteral}{"Image has been pre-\/loaded!\(\backslash\)n"});}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_on\_destroy(Ecore\_Evas *ee \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{   \mbox{\hyperlink{group__Ecore__Main__Loop__Group_ga95cf8e97dff0716433c2c5474d606a98}{ecore\_main\_loop\_quit}}();}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{comment}{/* Keep the example's window size in sync with the background image's size */}}
\DoxyCodeLine{\textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_canvas\_resize\_cb(Ecore\_Evas *ee)}
\DoxyCodeLine{\{}
\DoxyCodeLine{   \textcolor{keywordtype}{int} w, h;}
\DoxyCodeLine{}
\DoxyCodeLine{   \mbox{\hyperlink{group__Ecore__Evas__Group_ga931aadf4603731e73e8a84e4b14f1493}{ecore\_evas\_geometry\_get}}(ee, NULL, NULL, \&w, \&h);}
\DoxyCodeLine{   evas\_object\_resize(d.bg, w, h);}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_on\_keydown(\textcolor{keywordtype}{void}        *data \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},}
\DoxyCodeLine{            \mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}}        *evas \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},}
\DoxyCodeLine{            \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *o \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},}
\DoxyCodeLine{            \textcolor{keywordtype}{void}        *einfo)}
\DoxyCodeLine{\{}
\DoxyCodeLine{   \mbox{\hyperlink{struct__Evas__Event__Key__Down}{Evas\_Event\_Key\_Down}} *ev = einfo;}
\DoxyCodeLine{}
\DoxyCodeLine{   \textcolor{keywordflow}{if} (strcmp(ev-\/>\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"h"}) == 0) \textcolor{comment}{/* print help */}}
\DoxyCodeLine{     \{}
\DoxyCodeLine{        puts(commands);}
\DoxyCodeLine{        \textcolor{keywordflow}{return};}
\DoxyCodeLine{     \}}
\DoxyCodeLine{}
\DoxyCodeLine{   \textcolor{keywordflow}{if} (strcmp(ev-\/>\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"s"}) == 0) \textcolor{comment}{/* print proxy image' stride value */}}
\DoxyCodeLine{     \{}
\DoxyCodeLine{        \textcolor{keywordtype}{int} stride = evas\_object\_image\_stride\_get(d.noise\_img);}
\DoxyCodeLine{}
\DoxyCodeLine{        printf(\textcolor{stringliteral}{"Image has row stride value of \%d, which accounts"}}
\DoxyCodeLine{               \textcolor{stringliteral}{" for \%d pixels\(\backslash\)n"}, stride, stride / 4);}
\DoxyCodeLine{}
\DoxyCodeLine{        \textcolor{keywordflow}{return};}
\DoxyCodeLine{     \}}
\DoxyCodeLine{}
\DoxyCodeLine{   \textcolor{keywordflow}{if} (strcmp(ev-\/>\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"p"}) == 0) \textcolor{comment}{/* change proxy's source */}}
\DoxyCodeLine{     \{}
\DoxyCodeLine{        \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *source = evas\_object\_image\_source\_get(d.proxy\_img);}
\DoxyCodeLine{}
\DoxyCodeLine{        \textcolor{keywordflow}{if} (source == d.logo) source = d.noise\_img;}
\DoxyCodeLine{        \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (source == d.noise\_img) source = d.text\_obj;}
\DoxyCodeLine{        \textcolor{keywordflow}{else} source = d.logo;}
\DoxyCodeLine{}
\DoxyCodeLine{        evas\_object\_image\_source\_set(d.proxy\_img, source);}
\DoxyCodeLine{}
\DoxyCodeLine{        printf(\textcolor{stringliteral}{"Proxy image's source changed\(\backslash\)n"});}
\DoxyCodeLine{}
\DoxyCodeLine{        \textcolor{keywordflow}{return};}
\DoxyCodeLine{     \}}
\DoxyCodeLine{}
\DoxyCodeLine{   \textcolor{keywordflow}{if} (strcmp(ev-\/>\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"a"}) == 0) \textcolor{comment}{/* save noise image to disk */}}
\DoxyCodeLine{     \{}
\DoxyCodeLine{        \textcolor{keywordflow}{if} (!evas\_object\_image\_save(d.noise\_img, file\_path, NULL, quality\_str))}
\DoxyCodeLine{          fprintf(stderr, \textcolor{stringliteral}{"Cannot save image to '\%s' (flags '\%s')\(\backslash\)n"},}
\DoxyCodeLine{                  file\_path, quality\_str);}
\DoxyCodeLine{        \textcolor{keywordflow}{else}}
\DoxyCodeLine{          printf(\textcolor{stringliteral}{"Image saved to '\%s' (flags '\%s'), check it out with "}}
\DoxyCodeLine{                 \textcolor{stringliteral}{"an image viewer\(\backslash\)n"}, file\_path, quality\_str);}
\DoxyCodeLine{}
\DoxyCodeLine{        \textcolor{keywordflow}{return};}
\DoxyCodeLine{     \}}
\DoxyCodeLine{}
\DoxyCodeLine{   \textcolor{keywordflow}{if} (strcmp(ev-\/>\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"v"}) == 0) \textcolor{comment}{/* change source visibility */}}
\DoxyCodeLine{     \{}
\DoxyCodeLine{        \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\_Bool}} src\_visible =}
\DoxyCodeLine{           evas\_object\_image\_source\_visible\_get(d.proxy\_img);}
\DoxyCodeLine{        evas\_object\_image\_source\_visible\_set(d.proxy\_img, !src\_visible);}
\DoxyCodeLine{        \textcolor{keywordflow}{return};}
\DoxyCodeLine{     \}}
\DoxyCodeLine{}
\DoxyCodeLine{   \textcolor{keywordflow}{if} (strcmp(ev-\/>\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"e"}) == 0) \textcolor{comment}{/* change source events */}}
\DoxyCodeLine{     \{}
\DoxyCodeLine{        \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\_Bool}} src\_events = evas\_object\_image\_source\_events\_get(d.proxy\_img);}
\DoxyCodeLine{        evas\_object\_image\_source\_events\_set(d.proxy\_img, !src\_events);}
\DoxyCodeLine{        \textcolor{keywordflow}{return};}
\DoxyCodeLine{     \}}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keywordtype}{int}}
\DoxyCodeLine{main(\textcolor{keywordtype}{void})}
\DoxyCodeLine{\{}
\DoxyCodeLine{   \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} i;}
\DoxyCodeLine{   \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} pixels[(WIDTH / 4) * (HEIGHT / 4)];}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Textblock_ga0936b029caf5493691f7fd523f8b885c}{Evas\_Textblock\_Style}} *st;}
\DoxyCodeLine{}
\DoxyCodeLine{   srand(time(NULL));}
\DoxyCodeLine{}
\DoxyCodeLine{   \textcolor{keywordflow}{if} (!\mbox{\hyperlink{group__Ecore__Evas__Group_ga32ddbb6457033ad435a177eb0c4fe235}{ecore\_evas\_init}}())}
\DoxyCodeLine{     \textcolor{keywordflow}{return} EXIT\_FAILURE;}
\DoxyCodeLine{}
\DoxyCodeLine{   \textcolor{comment}{/* this will give you a window with an Evas canvas under the first}}
\DoxyCodeLine{\textcolor{comment}{    * engine available */}}
\DoxyCodeLine{   d.ee = \mbox{\hyperlink{group__Ecore__Evas__Group_gac7f2cdbcb79635c34317c1183dd04cb0}{ecore\_evas\_new}}(NULL, 10, 10, WIDTH, HEIGHT, NULL);}
\DoxyCodeLine{   \textcolor{keywordflow}{if} (!d.ee)}
\DoxyCodeLine{     \textcolor{keywordflow}{goto} error;}
\DoxyCodeLine{}
\DoxyCodeLine{   \mbox{\hyperlink{group__Ecore__Evas__Group_ga3680b5c89157167318192157a5d24ec4}{ecore\_evas\_callback\_destroy\_set}}(d.ee, \_on\_destroy);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Ecore__Evas__Group_gaac67f679c9027059a34519fbdea360df}{ecore\_evas\_callback\_resize\_set}}(d.ee, \_canvas\_resize\_cb);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Ecore__Evas__Group_ga4953047ff97d4f1b0d75a7d513d4f317}{ecore\_evas\_show}}(d.ee);}
\DoxyCodeLine{}
\DoxyCodeLine{   \textcolor{comment}{/* the canvas pointer, de facto */}}
\DoxyCodeLine{   d.evas = \mbox{\hyperlink{group__Ecore__Evas__Group_ga75a7cc694b6069e78df47dab0b0f2d20}{ecore\_evas\_get}}(d.ee);}
\DoxyCodeLine{}
\DoxyCodeLine{   d.bg = \mbox{\hyperlink{group__Evas__Object__Rectangle_ga4d80fc32ad1cac28428cebd65d746751}{evas\_object\_rectangle\_add}}(d.evas);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Basic_gae34bdcfd7f5100151f6ea8ef4a392949}{evas\_object\_color\_set}}(d.bg, 255, 255, 255, 255); \textcolor{comment}{/* white bg */}}
\DoxyCodeLine{   evas\_object\_move(d.bg, 0, 0); \textcolor{comment}{/* at canvas' origin */}}
\DoxyCodeLine{   evas\_object\_resize(d.bg, WIDTH, HEIGHT); \textcolor{comment}{/* covers full canvas */}}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}}(d.bg);}
\DoxyCodeLine{}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group_ga4405e118e1fb762987af1269b6848db5}{evas\_object\_focus\_set}}(d.bg, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(}
\DoxyCodeLine{     d.bg, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a336b86bad4f145f84c155e4922335584}{EVAS\_CALLBACK\_KEY\_DOWN}}, \_on\_keydown, NULL);}
\DoxyCodeLine{}
\DoxyCodeLine{   d.logo = evas\_object\_image\_filled\_add(d.evas);}
\DoxyCodeLine{}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(}
\DoxyCodeLine{       d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a5cd5ca5f4dcd51dd2429f020cb2dfa9e}{EVAS\_CALLBACK\_IMAGE\_PRELOADED}}, \_on\_preloaded, NULL);}
\DoxyCodeLine{   evas\_object\_image\_preload(d.logo, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});}
\DoxyCodeLine{}
\DoxyCodeLine{   evas\_object\_image\_file\_set(d.logo, img\_path, NULL);}
\DoxyCodeLine{   evas\_object\_resize(d.logo, WIDTH / 2, HEIGHT / 2);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a9fa52651ccf7e47cd3b7785fc4cf393f}{EVAS\_CALLBACK\_MOUSE\_DOWN}}, \_mouse\_down, 0);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a23fb97fb7cbccded54ccf3fc4e1dab8a}{EVAS\_CALLBACK\_MOUSE\_MOVE}}, \_mouse\_move, 0);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a8c1b22c99dd0231cd9ba1fecbffffac7}{EVAS\_CALLBACK\_MOUSE\_UP}}, \_mouse\_up, 0);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a598c57bc146639618157159a319f11af}{EVAS\_CALLBACK\_MOUSE\_IN}}, \_mouse\_in, 0);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a91aaa30a57047d0ee8a734e603751c25}{EVAS\_CALLBACK\_MOUSE\_OUT}}, \_mouse\_out, 0);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968ab5bb0de31eaeed655255e71ffe518b80}{EVAS\_CALLBACK\_MULTI\_DOWN}}, \_multi\_down, 0);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a4328f52cfb700b5c705edf7173afdd94}{EVAS\_CALLBACK\_MULTI\_UP}}, \_multi\_up, 0);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a6d0ade7e69dc62f728fa2e29168e923f}{EVAS\_CALLBACK\_MULTI\_MOVE}}, \_multi\_move, 0);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(d.logo, \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a585e05307b99c361e54df68a4f341a85}{EVAS\_CALLBACK\_HOLD}}, \_hold, 0);}
\DoxyCodeLine{}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}}(d.logo);}
\DoxyCodeLine{}
\DoxyCodeLine{   \textcolor{comment}{/* creating noise image */}}
\DoxyCodeLine{   \textcolor{keywordflow}{for} (i = 0; i < \textcolor{keyword}{sizeof}(pixels) / \textcolor{keyword}{sizeof}(pixels[0]); i++)}
\DoxyCodeLine{     pixels[i] = rand();}
\DoxyCodeLine{}
\DoxyCodeLine{   d.noise\_img = \mbox{\hyperlink{group__Evas__Object__Image_gadd901a6b181c38dc040537b3fd76fcc6}{evas\_object\_image\_add}}(d.evas);}
\DoxyCodeLine{   evas\_object\_image\_size\_set(d.noise\_img, WIDTH / 4, HEIGHT / 4);}
\DoxyCodeLine{   evas\_object\_image\_data\_set(d.noise\_img, pixels);}
\DoxyCodeLine{   evas\_object\_image\_filled\_set(d.noise\_img, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});}
\DoxyCodeLine{   evas\_object\_move(d.noise\_img, (WIDTH * 5) / 8, HEIGHT / 8);}
\DoxyCodeLine{   evas\_object\_resize(d.noise\_img, WIDTH / 4, HEIGHT / 4);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}}(d.noise\_img);}
\DoxyCodeLine{   printf(\textcolor{stringliteral}{"Creating noise image with size \%d, \%d\(\backslash\)n"},}
\DoxyCodeLine{          WIDTH / 4, HEIGHT / 4);}
\DoxyCodeLine{}
\DoxyCodeLine{   d.text\_obj = \mbox{\hyperlink{group__Evas__Object__Textblock_ga5059cda84291080e59bcc72ead81ca93}{evas\_object\_textblock\_add}}(d.evas);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Textblock_gac35fdf7b795b08a884f62cf479b9901b}{evas\_object\_textblock\_text\_markup\_set}}(d.text\_obj, \textcolor{stringliteral}{"Hello world! :)"});}
\DoxyCodeLine{   st = \mbox{\hyperlink{group__Evas__Object__Textblock_ga5047d80b99150342ce3cd5518b474df8}{evas\_textblock\_style\_new}}();}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Textblock_gaf536f7e63f652e36a125006e31cf5457}{evas\_textblock\_style\_set}}(st, \textcolor{stringliteral}{"DEFAULT='font=Sans font\_size=16 color=\#114 wrap=word'"});}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Textblock_ga14c222cd68f4c101dc9e52361c47c35e}{evas\_object\_textblock\_style\_set}}(d.text\_obj, st);}
\DoxyCodeLine{   evas\_object\_move(d.text\_obj, WIDTH / 16, HEIGHT * 9 / 16);}
\DoxyCodeLine{   evas\_object\_resize(d.text\_obj, WIDTH / 4, 0);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}}(d.text\_obj);}
\DoxyCodeLine{}
\DoxyCodeLine{   d.proxy\_img = evas\_object\_image\_filled\_add(d.evas);}
\DoxyCodeLine{   evas\_object\_image\_source\_set(d.proxy\_img, d.logo);}
\DoxyCodeLine{   evas\_object\_move(d.proxy\_img, WIDTH / 2, HEIGHT / 2);}
\DoxyCodeLine{   evas\_object\_resize(d.proxy\_img, WIDTH / 2, HEIGHT / 2);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}}(d.proxy\_img);}
\DoxyCodeLine{}
\DoxyCodeLine{   puts(commands);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Ecore__Main__Loop__Group_gaf103b9f668bb3e4fed12e52c6180132d}{ecore\_main\_loop\_begin}}();}
\DoxyCodeLine{}
\DoxyCodeLine{   \mbox{\hyperlink{group__Ecore__Evas__Group_gad3ec61f2aa03df4d3dbfd0d311e0c8dc}{ecore\_evas\_free}}(d.ee);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Ecore__Evas__Group_gab8fa311077f749190c9b622f672b2214}{ecore\_evas\_shutdown}}();}
\DoxyCodeLine{   \textcolor{keywordflow}{return} 0;}
\DoxyCodeLine{}
\DoxyCodeLine{error:}
\DoxyCodeLine{   fprintf(stderr, \textcolor{stringliteral}{"error: Requires at least one Evas engine built and linked"}}
\DoxyCodeLine{                   \textcolor{stringliteral}{" to ecore-\/evas for this example to run properly.\(\backslash\)n"});}
\DoxyCodeLine{   \mbox{\hyperlink{group__Ecore__Evas__Group_gab8fa311077f749190c9b622f672b2214}{ecore\_evas\_shutdown}}();}
\DoxyCodeLine{   \textcolor{keywordflow}{return} -\/1;}
\DoxyCodeLine{\}}
\end{DoxyCodeInclude}
 