\hypertarget{theme_example_8edc-example}{}\doxysection{theme\+\_\+example.\+edc}

\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{collections \{}
\DoxyCodeLine{   group \{ name: "elm/button/base/chucknorris";}
\DoxyCodeLine{      alias: "elm/button/base/default";}
\DoxyCodeLine{      parts \{}
\DoxyCodeLine{         part \{ name: "border";}
\DoxyCodeLine{            type: RECT;}
\DoxyCodeLine{            description \{ state: "default" 0.0;}
\DoxyCodeLine{               color: 0 0 0 255;}
\DoxyCodeLine{            \}}
\DoxyCodeLine{            description \{ state: "in" 0.0;}
\DoxyCodeLine{               color: 50 180 180 255;}
\DoxyCodeLine{            \}}
\DoxyCodeLine{         \}}
\DoxyCodeLine{         part \{ name: "base";}
\DoxyCodeLine{            type: RECT;}
\DoxyCodeLine{            mouse\_events: 1;}
\DoxyCodeLine{            description \{ state: "default" 0.0;}
\DoxyCodeLine{               rel1.to: "border";}
\DoxyCodeLine{               rel1.offset: 1 1;}
\DoxyCodeLine{               rel2.to: "border";}
\DoxyCodeLine{               rel2.offset: -\/2 -\/2;}
\DoxyCodeLine{            \}}
\DoxyCodeLine{            description \{ state: "disabled" 0.0;}
\DoxyCodeLine{               inherit: "default" 0.0;}
\DoxyCodeLine{               color: 230 230 230 255;}
\DoxyCodeLine{            \}}
\DoxyCodeLine{         \}}
\DoxyCodeLine{         part \{ name: "elm.swallow.content";}
\DoxyCodeLine{            type: SWALLOW;}
\DoxyCodeLine{            mouse\_events: 0;}
\DoxyCodeLine{            description \{ state: "default" 0.0;}
\DoxyCodeLine{               fixed: 1 0;}
\DoxyCodeLine{               visible: 0;}
\DoxyCodeLine{               align: 0.0 0.5;}
\DoxyCodeLine{               rel1.offset: 4 4;}
\DoxyCodeLine{               rel2.offset: 3 -\/5;}
\DoxyCodeLine{               rel2.relative: 0.0 1.0;}
\DoxyCodeLine{            \}}
\DoxyCodeLine{            description \{ state: "visible" 0.0;}
\DoxyCodeLine{               inherit: "default" 0.0;}
\DoxyCodeLine{               visible: 1;}
\DoxyCodeLine{               aspect: 1.0 1.0;}
\DoxyCodeLine{               aspect\_preference: VERTICAL;}
\DoxyCodeLine{               rel2.offset: 4 -\/5;}
\DoxyCodeLine{            \}}
\DoxyCodeLine{            description \{ state: "icononly" 0.0;}
\DoxyCodeLine{               inherit: "default" 0.0;}
\DoxyCodeLine{               fixed: 0 0;}
\DoxyCodeLine{               visible: 1;}
\DoxyCodeLine{               align: 0.5 0.5;}
\DoxyCodeLine{               aspect: 1.0 1.0;}
\DoxyCodeLine{               aspect\_preference: VERTICAL;}
\DoxyCodeLine{               rel2.offset: -\/5 -\/5;}
\DoxyCodeLine{               rel2.relative: 1.0 1.0;}
\DoxyCodeLine{            \}}
\DoxyCodeLine{         \}}
\DoxyCodeLine{         part \{ name: "elm.text";}
\DoxyCodeLine{            type: TEXT;}
\DoxyCodeLine{            mouse\_events: 0;}
\DoxyCodeLine{            scale: 1;}
\DoxyCodeLine{            description \{ state: "default" 0.0;}
\DoxyCodeLine{               visible: 0;}
\DoxyCodeLine{               rel1.to\_x: "elm.swallow.content";}
\DoxyCodeLine{               rel1.relative: 1.0 0.0;}
\DoxyCodeLine{               rel1.offset: 0 4;}
\DoxyCodeLine{               rel2.offset: -\/5 -\/5;}
\DoxyCodeLine{               color: 0 0 0 255;}
\DoxyCodeLine{               text \{}
\DoxyCodeLine{                  font: "Sans";}
\DoxyCodeLine{                  size: 10;}
\DoxyCodeLine{                  min: 0 0;}
\DoxyCodeLine{                  text\_class: "button";}
\DoxyCodeLine{               \}}
\DoxyCodeLine{            \}}
\DoxyCodeLine{            description \{ state: "visible" 0.0;}
\DoxyCodeLine{               inherit: "default" 0.0;}
\DoxyCodeLine{               visible: 1;}
\DoxyCodeLine{               text.min: 1 1;}
\DoxyCodeLine{               text.ellipsis: -\/1;}
\DoxyCodeLine{            \}}
\DoxyCodeLine{            description \{ state: "disabled" 0.0;}
\DoxyCodeLine{               inherit: "default" 0.0;}
\DoxyCodeLine{            \}}
\DoxyCodeLine{            description \{ state: "disabled\_visible" 0.0;}
\DoxyCodeLine{               inherit: "default" 0.0;}
\DoxyCodeLine{               visible: 1;}
\DoxyCodeLine{               text.min: 1 1;}
\DoxyCodeLine{               text.ellipsis: -\/1;}
\DoxyCodeLine{         \}}
\DoxyCodeLine{      \}}
\DoxyCodeLine{      programs \{}
\DoxyCodeLine{         program \{ name: "button\_mouse\_in";}
\DoxyCodeLine{            signal: "mouse,in";}
\DoxyCodeLine{            source: "base";}
\DoxyCodeLine{            action: STATE\_SET "in" 0.0;}
\DoxyCodeLine{            target: "border";}
\DoxyCodeLine{         \}}
\DoxyCodeLine{         program \{ name: "button\_mouse\_out";}
\DoxyCodeLine{            signal: "mouse,out";}
\DoxyCodeLine{            source: "base";}
\DoxyCodeLine{            action: STATE\_SET "default" 0.0;}
\DoxyCodeLine{            target: "border";}
\DoxyCodeLine{         \}}
\DoxyCodeLine{         program \{ name: "button\_unclick";}
\DoxyCodeLine{            signal: "mouse,up,1";}
\DoxyCodeLine{            source: "base";}
\DoxyCodeLine{            action: SIGNAL\_EMIT "elm,action,click" "";}
\DoxyCodeLine{         \}}
\DoxyCodeLine{         program \{ name: "button\_click";}
\DoxyCodeLine{            signal: "mouse,down,1";}
\DoxyCodeLine{            source: "base";}
\DoxyCodeLine{         \}}
\DoxyCodeLine{         program \{ name: "text\_show";}
\DoxyCodeLine{            signal: "elm,state,text,visible";}
\DoxyCodeLine{            source: "elm";}
\DoxyCodeLine{            script \{}
\DoxyCodeLine{               new st[31];}
\DoxyCodeLine{               new Float:vl;}
\DoxyCodeLine{               get\_state(PART:"elm.swallow.content", st, 30, vl);}
\DoxyCodeLine{               if (!strcmp(st, "icononly"))}
\DoxyCodeLine{                 set\_state(PART:"elm.swallow.content", "visible", 0.0);}
\DoxyCodeLine{               set\_state(PART:"elm.text", "visible", 0.0);}
\DoxyCodeLine{            \}}
\DoxyCodeLine{         \}}
\DoxyCodeLine{         program \{ name: "text\_hide";}
\DoxyCodeLine{            signal: "elm,state,text,hidden";}
\DoxyCodeLine{            source: "elm";}
\DoxyCodeLine{            script \{}
\DoxyCodeLine{               new st[31];}
\DoxyCodeLine{               new Float:vl;}
\DoxyCodeLine{               get\_state(PART:"elm.swallow.content", st, 30, vl);}
\DoxyCodeLine{               if (!strcmp(st, "visible"))}
\DoxyCodeLine{                 set\_state(PART:"elm.swallow.content", "icononly", 0.0);}
\DoxyCodeLine{               set\_state(PART:"elm.text", "default", 0.0);}
\DoxyCodeLine{            \}}
\DoxyCodeLine{         \}}
\DoxyCodeLine{         program \{ name: "icon\_show";}
\DoxyCodeLine{            signal: "elm,state,icon,visible";}
\DoxyCodeLine{            source: "elm";}
\DoxyCodeLine{            script \{}
\DoxyCodeLine{               new st[31];}
\DoxyCodeLine{               new Float:vl;}
\DoxyCodeLine{               get\_state(PART:"elm.text", st, 30, vl);}
\DoxyCodeLine{               if (!strcmp(st, "visible"))}
\DoxyCodeLine{                 set\_state(PART:"elm.swallow.content", "visible", 0.0);}
\DoxyCodeLine{               else}
\DoxyCodeLine{                 set\_state(PART:"elm.swallow.content", "icononly", 0.0);}
\DoxyCodeLine{            \}}
\DoxyCodeLine{         \}}
\DoxyCodeLine{         program \{ name: "icon\_hide";}
\DoxyCodeLine{            signal: "elm,state,icon,hidden";}
\DoxyCodeLine{            source: "elm";}
\DoxyCodeLine{            action: STATE\_SET "default" 0.0;}
\DoxyCodeLine{            target: "elm.swallow.content";}
\DoxyCodeLine{         \}}
\DoxyCodeLine{         program \{ name: "disable";}
\DoxyCodeLine{            signal: "elm,state,disabled";}
\DoxyCodeLine{            source: "elm";}
\DoxyCodeLine{            action: STATE\_SET "disabled" 0.0;}
\DoxyCodeLine{            target: "base";}
\DoxyCodeLine{            after: "disable\_text";}
\DoxyCodeLine{         \}}
\DoxyCodeLine{         program \{ name: "disable\_text";}
\DoxyCodeLine{            script \{}
\DoxyCodeLine{               new st[31];}
\DoxyCodeLine{               new Float:vl;}
\DoxyCodeLine{               get\_state(PART:"elm.text", st, 30, vl);}
\DoxyCodeLine{               if (!strcmp(st, "visible"))}
\DoxyCodeLine{                 set\_state(PART:"elm.text", "disabled\_visible", 0.0);}
\DoxyCodeLine{               else if (!strcmp(st, "default"))}
\DoxyCodeLine{                 set\_state(PART:"elm.text", "disabled", 0.0);}
\DoxyCodeLine{            \}}
\DoxyCodeLine{         \}}
\DoxyCodeLine{         program \{ name: "enable";}
\DoxyCodeLine{            signal: "elm,state,enabled";}
\DoxyCodeLine{            source: "elm";}
\DoxyCodeLine{            action: STATE\_SET "default" 0.0;}
\DoxyCodeLine{            target: "base";}
\DoxyCodeLine{            after: "enable\_text";}
\DoxyCodeLine{         \}}
\DoxyCodeLine{         program \{ name: "enable\_text";}
\DoxyCodeLine{            script \{}
\DoxyCodeLine{               new st[31];}
\DoxyCodeLine{               new Float:vl;}
\DoxyCodeLine{               get\_state(PART:"elm.text", st, 30, vl);}
\DoxyCodeLine{               if (!strcmp(st, "disabled\_visible"))}
\DoxyCodeLine{                 set\_state(PART:"elm.text", "visible", 0.0);}
\DoxyCodeLine{               else if (!strcmp(st, "disabled"))}
\DoxyCodeLine{                 set\_state(PART:"elm.text", "default", 0.0);}
\DoxyCodeLine{            \}}
\DoxyCodeLine{         \}}
\DoxyCodeLine{      \}}
\DoxyCodeLine{   \}}
\DoxyCodeLine{\}}
\end{DoxyCodeInclude}
 