Edje Graphical Design Library.

These routines are used for Edje.

\begin{DoxyDate}{Date}
2003 (created)
\end{DoxyDate}
\hypertarget{edje_main_edje_toc}{}\doxysection{Table of Contents}\label{edje_main_edje_toc}
\begin{DoxyItemize}
\item \mbox{\hyperlink{edje_main_edje_main_intro}{Introduction}} \item \mbox{\hyperlink{edje_main_edje_main_work}{So how does this all work?}} \item \mbox{\hyperlink{edje_main_edje_main_compiling}{How to compile}} \item \mbox{\hyperlink{edje_main_edje_main_next_steps}{Next Steps}} \item \mbox{\hyperlink{edje_main_edje_main_intro_example}{Introductory Example}}\end{DoxyItemize}
\hypertarget{edje_main_edje_main_intro}{}\doxysection{Introduction}\label{edje_main_edje_main_intro}
Edje is a complex graphical design \& layout library.

It doesn\textquotesingle{}t intend to do containing and regular layout like a widget set, but it is the base for such components. Based on the requirements of Enlightenment 0.\+17, Edje should serve all the purposes of creating visual elements (borders of windows, buttons, scrollbars, etc.) and allow the designer the ability to animate, layout and control the look and feel of any program using Edje as its basic GUI constructor. This library allows for multiple collections of Layouts in one file, sharing the same image and font database and thus allowing a whole theme to be conveniently packaged into 1 file and shipped around.

Edje separates the layout and behavior logic. Edje files ship with an image and font database, used by all the parts in all the collections to source graphical data. It has a directory of logical part names pointing to the part collection entry ID in the file (thus allowing for multiple logical names to point to the same part collection, allowing for the sharing of data between display elements). Each part collection consists of a list of visual parts, as well as a list of programs. A program is a conditionally run program that if a particular event occurs (a button is pressed, a mouse enters or leaves a part) will trigger an action that may affect other parts. In this way a part collection can be \char`\"{}programmed\char`\"{} via its file as to highlight buttons when the mouse passes over them or show hidden parts when a button is clicked somewhere etc. The actions performed in changing from one state to another are also allowed to transition over a period of time, allowing animation. Programs and animations can be run in \char`\"{}parallel\char`\"{}.

This separation and simplistic event driven style of programming can produce almost any look and feel one could want for basic visual elements. Anything more complex is likely the domain of an application or widget set that may use Edje as a convenient way of being able to configure parts of the display.

For details of Edje\textquotesingle{}s history, see the \mbox{\hyperlink{edje_main_edje_history}{Edje History}} section.\hypertarget{edje_main_edje_main_work}{}\doxysubsection{So how does this all work?}\label{edje_main_edje_main_work}
Edje internally holds a geometry state machine and state graph of what is visible, not, where, at what size, with what colors etc. This is described to Edje from an Edje .edj file containing this information. These files can be produced by using edje\+\_\+cc to take a text file (a .edc file) and \char`\"{}compile\char`\"{} an output .edj file that contains this information, images and any other data needed.

The application using Edje will then create an object in its Evas canvas and set the bundle file to use, specifying the {\bfseries{group}} name to use. Edje will load such information and create all the required children objects with the specified properties as defined in each {\bfseries{part}} of the given group. See the example at \mbox{\hyperlink{edje_main_edje_main_intro_example}{Introductory Example}}.

Although simple, this example illustrates that animations and state changes can be done from the Edje file itself without any requirement in the C application.

Before digging into changing or creating your own Edje source (edc) files, read the \mbox{\hyperlink{edcref}{Edje Data Collection reference}}.\hypertarget{edje_main_edje_history}{}\doxysubsection{Edje History}\label{edje_main_edje_history}
It\textquotesingle{}s a sequel to \char`\"{}\+Ebits\char`\"{} which has serviced the needs of Enlightenment development for early version 0.\+17. The original design parameters under which Ebits came about were a lot more restricted than the resulting use of them, thus Edje was born.

Edje is a more complex layout engine compared to Ebits. It doesn\textquotesingle{}t pretend to do containing and regular layout like a widget set. It still inherits the more simplistic layout ideas behind Ebits, but it now does them a lot more cleanly, allowing for easy expansion, and the ability to cover much more ground than Ebits ever could. For the purposes of Enlightenment 0.\+17, Edje was conceived to serve all the purposes of creating visual elements (borders of windows, buttons, scrollbars, etc.) and allow the designer the ability to animate, layout and control the look and feel of any program using Edje as its basic GUI constructor.

Unlike Ebits, Edje separates the layout and behavior logic.\hypertarget{edje_main_edje_main_compiling}{}\doxysection{How to compile}\label{edje_main_edje_main_compiling}
Edje is a library your application links to. The procedure for this is very simple. You simply have to compile your application with the appropriate compiler flags that the {\ttfamily pkg-\/config} script outputs. For example\+:

Compiling C or C++ files into object files\+:

\begin{DoxyVerb}gcc -c -o main.o main.c `pkg-config --cflags edje`
\end{DoxyVerb}


Linking object files into a binary executable\+:

\begin{DoxyVerb}gcc -o my_application main.o `pkg-config --libs edje`
\end{DoxyVerb}


See \mbox{\hyperlink{pkgconfig}{pkgconfig}}\hypertarget{edje_main_edje_main_next_steps}{}\doxysection{Next Steps}\label{edje_main_edje_main_next_steps}
After you understood what Edje is and installed it in your system you should proceed understanding the programming interface for all objects, then see the specific for the most used elements. We\textquotesingle{}d recommend you to take a while to learn \mbox{\hyperlink{group__Ecore}{Ecore}}, \mbox{\hyperlink{group__Evas}{Evas}}, \mbox{\hyperlink{group__Eo}{Eo}} and \mbox{\hyperlink{group__Eina}{Eina}} as they are the building blocks for Edje. There is a widget set built on top of Edje providing high level elements such as buttons, lists and selectors called Elementary (\href{http://docs.enlightenment.org/auto/elementary/}{\texttt{ http\+://docs.\+enlightenment.\+org/auto/elementary/}}) as they will likely save you tons of work compared to using just Evas directly.

Recommended reading\+: \begin{DoxyItemize}
\item \mbox{\hyperlink{edcref}{Edje Data Collection reference}} \item \mbox{\hyperlink{group__Edje__General__Group}{Edje General}} \item \mbox{\hyperlink{group__Edje__Object__Group}{Edje Object}} \item \mbox{\hyperlink{group__Edje__External__Group}{Edje External}} \item \mbox{\hyperlink{luaref}{Edje Lua scripting}}\end{DoxyItemize}
\hypertarget{edje_main_edje_main_intro_example}{}\doxysection{Introductory Example}\label{edje_main_edje_main_intro_example}
What follows is a list with various commented examples, covering a great part of Edje\textquotesingle{}s API\+:


\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{comment}{//Compile\ with:}}
\DoxyCodeLine{\textcolor{comment}{//\ edje\_cc\ edje\_example.edc\ \&\&\ gcc\ -\/o\ edje\_example\ edje\_example.c\ `pkg-\/config\ -\/-\/libs\ -\/-\/cflags\ eina\ ecore\ evas\ ecore-\/evas\ edje`}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{preprocessor}{\#include\ <\mbox{\hyperlink{Eina_8h}{Eina.h}}>}}
\DoxyCodeLine{\textcolor{preprocessor}{\#include\ <Evas.h>}}
\DoxyCodeLine{\textcolor{preprocessor}{\#include\ <Ecore.h>}}
\DoxyCodeLine{\textcolor{preprocessor}{\#include\ <\mbox{\hyperlink{Ecore__Evas_8h}{Ecore\_Evas.h}}>}}
\DoxyCodeLine{\textcolor{preprocessor}{\#include\ <\mbox{\hyperlink{Edje_8h}{Edje.h}}>}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{preprocessor}{\#ifndef\ PACKAGE\_DATA\_DIR}}
\DoxyCodeLine{\textcolor{preprocessor}{\#define\ PACKAGE\_DATA\_DIR\ "{}."{}}}
\DoxyCodeLine{\textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{preprocessor}{\#define\ WIDTH\ 320}}
\DoxyCodeLine{\textcolor{preprocessor}{\#define\ HEIGHT\ 240}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *create\_my\_group(\mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}}\ *canvas,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *text)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *edje;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ edje\ =\ \mbox{\hyperlink{group__Edje__Object__Group_ga5548cef32568746f40df9bd0be339bea}{edje\_object\_add}}(canvas);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (!edje)}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eina__Log__Group_ga5b50827f35399f9ff87f5d9d817c764a}{EINA\_LOG\_CRIT}}(\textcolor{stringliteral}{"{}could\ not\ create\ edje\ object!"{}});}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ NULL;}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (!\mbox{\hyperlink{group__Edje__Object__Group_gaec1edd24b5bd8e82823759a8dddc1996}{edje\_object\_file\_set}}(edje,\ PACKAGE\_DATA\_DIR\textcolor{stringliteral}{"{}/edje\_example.edj"{}},}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}my\_group"{}}))}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordtype}{int}\ err\ =\ \mbox{\hyperlink{group__Edje__Object__Group_ga4d244ed455a48b9cbf286b6d8b802df3}{edje\_object\_load\_error\_get}}(edje);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *errmsg\ =\ \mbox{\hyperlink{group__Edje__Object__Group_gaa26fe971d6817a0db649480b63eb3791}{edje\_load\_error\_str}}(err);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{EINA\_LOG\_ERR}}(\textcolor{stringliteral}{"{}could\ not\ load\ 'my\_group'\ from\ edje\_example.edj:\ \%s"{}},}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ errmsg);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9217cf1d90690dbd1960db155d1c7476}{evas\_object\_del}}(edje);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ NULL;}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (text)}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (!\mbox{\hyperlink{group__Edje__Object__Part_gafd2241781aedc44a0f4cdc63bb029784}{edje\_object\_part\_text\_set}}(edje,\ \textcolor{stringliteral}{"{}text"{}},\ text))}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eina__Log__Group_ga21c44f66537533db16ee8f475ae2ae70}{EINA\_LOG\_WARN}}(\textcolor{stringliteral}{"{}could\ not\ set\ the\ text.\ "{}}}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}Maybe\ part\ 'text'\ does\ not\ exist?"{}});}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_ga335c8ee6eaeaac9710656af4f8b0db91}{evas\_object\_move}}(edje,\ 0,\ 0);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_gacad94595f83580c18908cb3b69b08d1a}{evas\_object\_resize}}(edje,\ WIDTH,\ HEIGHT);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga07208fcafd4739de606bc35fff684bf5}{evas\_object\_show}}(edje);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ edje;}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keywordtype}{int}\ main(\textcolor{keywordtype}{int}\ argc,\ \textcolor{keywordtype}{char}\ *argv[])}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ Ecore\_Evas\ *window;}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}}\ *canvas;}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *edje;}
\DoxyCodeLine{\ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *text;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Ecore__Evas__Group_ga32ddbb6457033ad435a177eb0c4fe235}{ecore\_evas\_init}}();}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Edje__General__Group_ga1c9c6594f38023c29fbfb2d0c8c675db}{edje\_init}}();}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ window\ =\ \mbox{\hyperlink{group__Ecore__Evas__Group_gaaa770b6f2f1395f9eeb0e50e26c3f933}{ecore\_evas\_new}}(NULL,\ 0,\ 0,\ WIDTH,\ HEIGHT,\ NULL);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (!window)}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eina__Log__Group_ga5b50827f35399f9ff87f5d9d817c764a}{EINA\_LOG\_CRIT}}(\textcolor{stringliteral}{"{}could\ not\ create\ window."{}});}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ -\/1;}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ canvas\ =\ \mbox{\hyperlink{group__Ecore__Evas__Group_ga6f8d214cd55bc940d7cc62fecd8dbc06}{ecore\_evas\_get}}(window);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ text\ =\ (argc\ >\ 1)\ ?\ argv[1]\ :\ NULL;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ edje\ =\ create\_my\_group(canvas,\ text);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (!edje)}
\DoxyCodeLine{\ \ \ \ \ \textcolor{keywordflow}{return}\ -\/2;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Ecore__Evas__Group_ga4953047ff97d4f1b0d75a7d513d4f317}{ecore\_evas\_show}}(window);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Ecore__Main__Loop__Group_gaf103b9f668bb3e4fed12e52c6180132d}{ecore\_main\_loop\_begin}}();}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9217cf1d90690dbd1960db155d1c7476}{evas\_object\_del}}(edje);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Ecore__Evas__Group_gad3ec61f2aa03df4d3dbfd0d311e0c8dc}{ecore\_evas\_free}}(window);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Edje__General__Group_ga01041f6702f2d81bf10c3e41899805cb}{edje\_shutdown}}();}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Ecore__Evas__Group_gab8fa311077f749190c9b622f672b2214}{ecore\_evas\_shutdown}}();}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ 0;}
\DoxyCodeLine{\}}

\end{DoxyCodeInclude}


The above example requires the following annotated source Edje file\+: 
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{//\ compile:\ edje\_cc\ edje\_example.edc}
\DoxyCodeLine{collections\ \{}
\DoxyCodeLine{\ \ \ group\ \{}
\DoxyCodeLine{\ \ \ \ \ \ name:\ "{}my\_group"{};\ //\ must\ be\ the\ same\ as\ in\ edje\_example.c}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ parts\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ part\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ name:\ "{}background"{};}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ type:\ RECT;\ //\ plain\ boring\ rectangle}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ mouse\_events:\ 0;\ //\ we\ don't\ need\ any\ mouse\ event\ on\ the\ background}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ //\ just\ one\ state\ "{}default"{}}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ description\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ state:\ "{}default"{}\ 0.0;\ //\ must\ always\ exist}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ color:\ 255\ 255\ 255\ 255;\ //\ white}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ //\ define\ part\ coordinates:}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ rel1\ \{\ //\ top-\/left\ point\ at\ (0,\ 0)\ [WIDTH\ *\ 0\ +\ 0,\ HEIGHT\ *\ 0\ +\ 0]}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ relative:\ 0.0\ 0.0;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ offset:\ 0\ 0;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ rel2\ \{\ //\ bottom-\/right\ point\ at\ (WIDTH\ *\ 1.0\ -\/\ 1,\ HEIGHT\ *\ 1.0\ -\/\ 1)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ relative:\ 1.0\ 1.0;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ offset:\ -\/1\ -\/1;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ part\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ name:\ "{}text"{};}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ type:\ TEXT;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ mouse\_events:\ 1;\ //\ we\ want\ to\ change\ the\ color\ on\ mouse-\/over}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ //\ 2\ states,\ one\ "{}default"{}\ and\ another\ "{}over"{}\ to\ be\ used}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ //\ on\ mouse\ over\ effect}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ description\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ state:\ "{}default"{}\ 0.0;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ color:\ 255\ 0\ 0\ 255;\ //\ red}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ //\ define\ part\ coordinates:}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ rel1\ \{\ //\ top-\/left\ at\ (WIDTH\ *\ 0.1\ +\ 5,\ HEIGHT\ *\ 0.2\ +\ 10)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ relative:\ 0.1\ 0.2;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ offset:\ 5\ 10;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ rel2\ \{\ //\ bottom-\/right\ at\ (WIDTH\ *\ 0.9\ -\/\ 6,\ HEIGHT\ *\ 0.8\ -\/\ 11)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ relative:\ 0.9\ 0.8;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ offset:\ -\/6\ -\/11;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ //\ define\ text\ specific\ state\ details}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ text\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ font:\ "{}Sans"{};\ //\ using\ fontconfig\ name!}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ size:\ 10;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ text:\ "{}hello\ world"{};}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ description\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ state:\ "{}over"{}\ 0.0;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ inherit:\ "{}default"{}\ 0.0;\ //\ copy\ everything\ from\ "{}default"{}\ at\ this\ point}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ color:\ 0\ 255\ 0\ 255;\ //\ override\ color,\ now\ it\ is\ green}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ //\ do\ programs\ to\ change\ color\ on\ text\ mouse\ in/out\ (over)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ programs\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ program\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ //\ what\ triggers\ this\ program:}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ signal:\ "{}mouse,in"{};}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ source:\ "{}text"{};}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ //\ what\ this\ program\ does:}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ action:\ STATE\_SET\ "{}over"{}\ 0.0;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ target:\ "{}text"{};}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ //\ do\ the\ state-\/set\ in\ a\ nice\ interpolation\ animation}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ //\ using\ linear\ time\ in\ 0.1\ second}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ transition:\ LINEAR\ 0.1;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ program\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ //\ what\ triggers\ this\ program:}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ signal:\ "{}mouse,out"{};}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ source:\ "{}text"{};}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ //\ what\ this\ program\ does:}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ action:\ STATE\_SET\ "{}default"{}\ 0.0;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ target:\ "{}text"{};}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ //\ do\ the\ state-\/set\ in\ a\ nice\ interpolation\ animation}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ //\ using\ linear\ time\ in\ 0.1\ second}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ transition:\ LINEAR\ 0.1;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \}}
\DoxyCodeLine{\}}

\end{DoxyCodeInclude}


More examples can be found at \mbox{\hyperlink{edje_examples}{Edje Examples}}. 