collections {
   base_scale: 1.0;
   group { name: "main";
      /* TODO: Please replace embedded image files to your application image files. */
      images {
         image: "EDC_EDITOR_EMBEDDED_BUTTON_BG.png" COMP;
         image: "EDC_EDITOR_EMBEDDED_BUTTON_BG_HOVER.png" COMP;
         image: "EDC_EDITOR_EMBEDDED_BUTTON_BG_DOWN.png" COMP;
      }
      parts {
         part { name:  "button_shadow";
            type: RECT;
            scale: 1;
            description { state: "default" 0.0;
               color: 0 0 0 155;
               rel1.to: "button_bg";
               rel1.offset: 5 5;
               rel2.to: "button_bg";
               rel2.offset: 4 4;
            }
         }
         part { name:  "button_bg";
            type: IMAGE;
            scale: 1;
            description { state: "default" 0.0;
               /* TODO: Please replace embedded image files to your application image files. */
               image.normal: "EDC_EDITOR_EMBEDDED_BUTTON_BG.png";
               image.border: 3 3 3 3;
               min: 50 20;
               max: 200 50;
            }
            description { state: "hovered" 0.0;
               inherit: "default";
               image.normal: "EDC_EDITOR_EMBEDDED_BUTTON_BG_HOVER.png";
            }
            description { state: "clicked" 0.0;
               inherit: "default";
               image.normal: "EDC_EDITOR_EMBEDDED_BUTTON_BG_DOWN.png";
            }
         }
         part { name: "button_text";
            type: TEXT;
            scale: 1;
            mouse_events: 0;
            description { state: "default" 0.0;
               color: 70 70 70 255;
               text {
                  size: 15;
                  font: "Sans";
                  text: "Mouse Event Example";
               }
               rel1.to: "button_bg";
               rel2.to: "button_bg";
            }
         }
      }
      programs {
         program { name: "mouse_down";
            signal: "mouse,down,1";
            source: "button_bg";
            action: STATE_SET "clicked" 0.0;
            target: "button_bg";
         }
         program { name: "mouse_up";
            signal: "mouse,up,1";
            source: "button_bg";
            action: STATE_SET "hovered" 0.0;
            target: "button_bg";
         }
         program { name: "mouse_in";
            signal: "mouse,in";
            source: "button_bg";
            action: STATE_SET "hovered" 0.0;
            target: "button_bg";
         }
         program { name: "mouse_out";
            signal: "mouse,out";
            source: "button_bg";
            action: STATE_SET "default" 0.0;
            target: "button_bg";
         }
      }
   }
}
