Edje Menu


Group Block

group
{
   name: "nameusedbytheapplication";
   alias: "anothername";
   min: width height;
   max: width height;
   parts
   {
      <definitions of parts>
   }
   script
   {
      <embryo script>
   }
   limits
   {
      vertical: "limit_name" height_barrier;
      horizontal: "limit_name" width_barrier;
   }
   data
   {
      items: "key" "value";
      file: "key" "file";
   }
   programs {}
}

Table of Contents

Group

A group block contains the list of parts and programs that compose a given Edje Object.

When inheriting any parts, descriptions without state names are not allowed.

Group.parts

parts
{
   part {}
   part {}
   part {}
}

The parts group contain one or more part. Each part describes a visual element and has a type: text, image, table, etc.

For complete documentation, see the Part Block guide.

Group.script

group
{
   script
   {
      <embryo script>
   }
   program
   {
      script
      {
         <embryo script>
      }
   }
}

This block is used to inject embryo scripts to a given Edje theme and it functions in two modalities. When it is included inside a program block, the script is executed every time the program is run, on the other hand, when included directly into a group, part, or description block, it is executed once at the load time, in the load order.

For more information, see the Program guide.

Group.limits

limits
{
   vertical: "limit_name" height_barrier;
   horizontal: "limit_name" width_barrier;
}

This block is used to trigger signals when the Edje object is resized.

Group.data

data
{
   item: "key" "value";
   file: "key2" "somefile";
}

The data block is used to pass arbitrary parameters from the theme to the application. Unlike the images and fonts blocks, additional data blocks can only be included inside the group block.

For genlist item styles, keys must be texts and icons, respectively for text parts and swallow parts; values must the names of the parts, separated with spaces.

Group.programs

programs
{
   program {}
   program {}
   program {}
}

The programs group contain one or more program.

For more information about the program structure, see the Program guide.


Edje Menu