Edje Data Collection reference

 

An Edje Data Collection, it's a plain text file (normally identified with the .edc extension), consisting of instructions for the Edje Compiler.

The syntax for the edje data collection files follows a simple structure of "blocks { .. }" that can contain "properties: ..", more blocks, or both.

Quick access to block descriptions:

Author
Andres Blanc (dresb) andre.nosp@m.sbla.nosp@m.nc@gm.nosp@m.ail..nosp@m.com
LazEDC
LazEDC Intro
LazEDC
..
collections.group { "test";
parts {
rect { "clip"; }
rect { "test"; nomouse; repeat; precise;
clip: "clip";
desc { "default";
color: 255 0 0 255;
rel2.relative: 0.5 1;
}
}
rect { "test2"; inherit: "test";
clip: "clip";
desc { "default";
rel1.relative: 0.5 0;
rel2.relative: 1 1;
}
desc { "t2";
inherit: "default";
color: 0 255 0 255;
}
desc { "t3";
inherit; // "default" can be omitted.
color: 0 0 255 255;
}
}
program { signal: "load"; name: "start";
sequence {
action: STATE_SET "t2";
target: "test2";
transition: LINEAR 0.6;
in: 0.5 0;
action: STATE_SET "t3";
target: "test2";
transition: LINEAR 0.3;
name: "del";
}
}
}
}
..
 LazEDC is an advanced form of EDC which allows the developer to leave out or shorten various forms. Parts can be created by using their type names, and the "name" and "state" keywords can be omitted entirely. Additionally, default description blocks will be automatically created with default values even if the description isn't explicitly specified.
Note
Failing to use quotes for block names will trigger syntax errors if a block name is the same as an existing EDC keyword.
Since
1.10

LazEDC Synonyms

Synonyms
group {
parts {
part {
before -> insert_before
after -> insert_after
ignore -> ignore_flags
mask -> mask_flags
pointer -> pointer_mode
alt_font -> use_alternate_font_metrics
clip -> clip_to
desc {
clip -> clip_to
}
}
}
}
color_class {
desc -> description
@since 1.14
}
 These statements on the left are identical to their original keywords on the right.
Since
1.10

LazEDC Shorthand

Shorthand
group {
broadcast; -> broadcast_signal: 1;
nobroadcast; -> broadcast_signal: 0;
mouse; -> mouse_events: 1;
nomouse; -> mouse_events: 0;
inherit_script; -> inherit_script: 1;
noinherit_script; -> inherit_script: 0;
parts {
part {
mouse; -> mouse_events: 1;
nomouse; -> mouse_events: 0;
repeat; -> repeat_events: 1;
norepeat; -> repeat_events: 0;
precise; -> precise_is_inside: 1;
noprecise; -> precise_is_inside: 0;
render; -> no_render: 0;
norender; -> no_render: 1;
required; -> required: 1;
norequired; -> required: 0;
scale; -> scale: 1;
noscale; -> scale: 0;
desc {
vis; -> visible: 1;
hid; -> visible: 0;
offscale; -> offset_scale: 1;
}
}
}
}
 These statements on the left have the same meaning as statements on the right, but they are shorter.
Since
1.10

LazEDC Group.Parts.External.Desc.Params

params
...
external {
desc { "default";
params {
number: 10; -> int: "number" 10;
number2: 1.1; -> double: "number2" 1.1;
label: "OK"; -> string: "label" "OK";
check: true; -> bool: "check" 1;
check2: false; -> bool: "check2" 0;
text_wrap: mixed; -> choice: "text_wrap" "mixed";
}
}
}
...
 The name of parameter can be used as a statement keyword in params block. The type of parameter is determined automatically by the value, so it should follow the next rules. Number without decimal point is considered as an integer. Number with decimal point is considered as a double. Double-quoted string is considered as a string. 'true' or 'false' without quotes is considred as a boolean. String without quotes except for 'true' or 'false' is considered as a choice.
Since
1.18

LazEDC Blocks

Blocks
parts {
rect{}
text{}
image{}
swallow{}
textblock{}
group{}
box{}
table{}
external{}
proxy{}
spacer{}
snapshot{}
vector{}
part {
desc {
}
}
}
 

Lowercase part types can be specified as blocks with the same effect as part { type: TYPE; } The "description" block can also be shortened to "desc".

Since
1.10
Top-Level blocks

Efl_version

 
efl_version [major] [minor]
 Used to show which version of EFL is used for developing a edje file.

id

 
id [name]
 A string which is used to identify the edje file.
Since
1.21

requires

 
requires [name]
 Specifying this property informs edje not to close the file with the corresponding id property for as long as this file is open. Multiple requires properties can be individually specified.
Since
1.21

Externals

externals
externals {
external: "name";
}
 

The "externals" block is used to list each external module file that will be used in others programs.

 
external [external filename]
 Used to add a file to the externals list.

Images

images
images {
image: "filename1.ext" COMP;
image: "filename2.ext" LOSSY 99;
image: "filename2.ext" LOSSY_ETC1 50;
set { }
set { }
..
}
 The "images" block is used to list each image file that will be used in the theme along with its compression method (if any). Besides the document's root, additional "images" blocks can be included inside other blocks, normally "collections", "group" and "part", easing maintenance of the file list when the theme is split among multiple files.
Note
if svg file use as image, not vector, it will be converted to bitmap and '.png' will be add to file name.
 
image [image file] [compression method] (compression level)(edje file id)
 Used to include each image file. The full path to the directory holding the images can be defined later with edje_cc's "-id" option. Compression methods:
  • RAW: Uncompressed.
  • COMP: Lossless compression.
  • LOSSY [0-100]: JPEG lossy compression with quality from 0 to 100.
  • LOSSY_ETC1 [0-100]: ETC1 lossy texture compression with quality from 0 to 100.
  • LOSSY_ETC2 [0-100]: ETC2 lossy texture compression with quality from 0 to 100 (supports alpha).
  • USER: Do not embed the file, refer to the external file instead.
  • EXTERNAL: The file exists in the edje file with the specified id.
Defaults: compression level for lossy methods is 90.

Images

images
images {
vector: "filename1.svg";
vector: "filename2.svg";
vector: "filename3.svg";
..
}
 

The "vector" context in the "images" block is used to list each svg image file that will be used in the theme.

 
vector [image file]

Images.Set

set
images {
..
set {
name: "image_name_used";
image { }
image { }
...
}
}
 

The "set" block is used to define an image with different content depending on their size. Besides the document's root, additional "set" blocks can be included inside other blocks, normally "collections", "group" and "part", easing maintenance of the file list when the theme is split among multiple files.

 

name [image name]
 Define the name that refer to this image description.

Images.Set.Image

image
images {
..
set {
..
image {
image: "filename4.ext" COMP;
size: 51 51 200 200;
border: 0 0 0 0;
border_scale_by: 0.0;
}
..
}
}
 

The "image" block inside a "set" block define the characteristic of an image. Every block will describe one image and the size rule to use it.

 

image [image file] [compression method] (compression level)(edje file id)
 Used to include each image file. The full path to the directory holding the images can be defined later with edje_cc's "-id" option. Compression methods:
  • RAW: Uncompressed.
  • COMP: Lossless compression.
  • LOSSY [0-100]: JPEG lossy compression with quality from 0 to 100.
  • LOSSY_ETC1 [0-100]: ETC1 lossy texture compression with quality from 0 to 100.
  • LOSSY_ETC2 [0-100]: ETC2 lossy texture compression with quality from 0 to 100 (supports alpha).
  • USER: Do not embed the file, refer to the external file instead.
  • EXTERNAL: The file exists in the edje file with the specified id.
Defaults: compression level for lossy methods is 90.

 

size [minw] [minh] [maxw] [maxh]
 

Define the minimal and maximal size that will select the specified image.

Defaults: 0 0 0 0

 

border [left] [right] [top] [bottom]
 

If set, the area (in pixels) of each side of the image will be displayed as a fixed size border, from the side -> inwards, preventing the corners from being changed on a resize.

Defaults: 0 0 0 0

Since
1.8

 

border_scale_by [value]
 

If border scaling is enabled then normally the OUTPUT border sizes (e.g. if 3 pixels on the left edge are set as a border, then normally at scale 1.0, those 3 columns will always be the exact 3 columns of output, or at scale 2.0 they will be 6 columns, or 0.33 they will merge into a single column). This property multiplies the input scale factor by this multiplier, allowing the creation of "supersampled" borders to make much higher resolution outputs possible by always using the highest resolution artwork and then runtime scaling it down.

Valid values are: 0.0 or bigger (0.0 or 1.0 to turn it off)

Defaults: 0.0

Since
1.8

Fonts

fonts
fonts {
font: "filename1.ext" "fontname";
font: "filename2.ext" "otherfontname";
..
}
 

The "fonts" block is used to list each font file with an alias used later in the theme. As with the "images" block, additional "fonts" blocks can be included inside other blocks.

 

font [font filename] [font alias]
 Defines each font "file" and "alias", the full path to the directory holding the font files can be defined with edje_cc's "-fd" option.

Data

data
data {
item: "key" "value";
file: "otherkey" "filename.ext";
..
}
 

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.

 

item [parameter name] [parameter value]
 Defines a new parameter, the value will be the string specified next to it.

 

file [parameter name] [parameter filename]
 Defines a new parameter, the value will be the contents of the specified file formatted as a single string of text. This property only works with plain text files.

Color Tree

color_tree
color_tree {
"color_class_0" {
"color_class_3";
"color_class_4" {
"color_class_5";
"color_class_6";
}
}
"color_class_1";
"color_class_2";
..
}
 

The "color_tree" block contains color tree node blocks. Each node block begins with the name of color class and enclosed with braces. Node block can be placed within another node block.

Color Classes

color_classes
color_classes {
color_class {
name: "colorclassname";
color: 255 0 0 255;
color2: "#0F0F";
color3: "#0000FFFF";
}
..
}
 

The "color_classes" block contains a list of one or more "color_class" blocks. Each "color_class" allows the designer to name an arbitrary group of colors to be used in the theme, the application can use that name to alter the color values at runtime.

 

name [color class name]
 Sets the name for the color class, used as reference by both the theme and the application.

 

color [red] [green] [blue] [alpha] or "#[RR][GG][BB](AA)" or "#[R][G][B](A)"
 

The main color.

Format:

  • [red] [green] [blue] [alpha]: one integer [0-255] for each RGBA channel, i.e. 255 0 0 255
  • "#[RR][GG][BB](AA)": string with two hex values per RGBA channel, i.e "#FF0000FF" or "#FF0000"
  • "#[R][G][B](A)": string with one hex value per RGBA channel, i.e "#F00F" or "#F00".
    In string format you can omit alpha channel and it will be set to FF.

Defaults: 0 0 0 0

 

color2 [red] [green] [blue] [alpha] or "#[RR][GG][BB](AA)" or "#[R][G][B](A)"
 

Used as outline in text and textblock parts.

Format:

  • [red] [green] [blue] [alpha]: one integer [0-255] for each RGBA channel, i.e. 255 0 0 255
  • "#[RR][GG][BB](AA)": string with two hex values per RGBA channel, i.e "#FF0000FF" or "#FF0000"
  • "#[R][G][B](A)": string with one hex value per RGBA channel, i.e "#F00F" or "#F00".
    In string format you can omit alpha channel and it will be set to FF.

Defaults: 0 0 0 0

 

color3 [red] [green] [blue] [alpha] or "#[RR][GG][BB](AA)" or "#[R][G][B](A)"
 

Used as shadow in text and textblock parts.

Format:

  • [red] [green] [blue] [alpha]: one integer [0-255] for each RGBA channel, i.e. 255 0 0 255
  • "#[RR][GG][BB](AA)": string with two hex values per RGBA channel, i.e "#FF0000FF" or "#FF0000"
  • "#[R][G][B](A)": string with one hex value per RGBA channel, i.e "#F00F" or "#F00".
    In string format you can omit alpha channel and it will be set to FF.

Defaults: 0 0 0 0

 

description [color class description]
 Provides a descriptive name for the effect of the color class
Since
1.14

Styles

styles
styles {
style {
name: "stylename";
base: "..default style properties..";
tag: "tagname" "..style properties..";
..
}
..
}
 

The "styles" block contains a list of one or more "style" blocks. A "style" block is used to create style <tags> for advanced TEXTBLOCK formatting.

 

name [style name]
 The name of the style to be used as reference later in the theme.

 

base [style properties string]
 The default style properties that will be applied to the complete text.

 

tag [tag name] [style properties string]
 Style to be applied only to text between style <tags>..</tags>. When creating "paired" tags, like <bold></bold>, A '+' should be added at the start of the style properties of the first part (<bold>). If the second part (</bold>) is also defined, a '-' should be prepended to it's style properties. This only applies to paired tags; Single tags, like <tab>, must not include a starting '+'.

Text Classes

text_classes
text_classes {
text_class {
name: "text_class name";
font: "font name";
size: SIZE";
}
..
}
 

The "text_classes" block contains a list of one or more "text_class" blocks. Each "text_class" allows the designer to name an arbitrary group of font and size to be used in the theme, the application can use that name to alter the font and its size at runtime.

 

name [text class name]
 Sets the name for the text class, used as reference by both the theme and the application.

 

font [font name]
 Sets the font family for the text class.

 

size [font size in points (pt)]
 

Sets the font size for the text class.

Defaults: 0

Size Classes

size_classes
size_classes {
size_class {
name: "sizeclassname";
min: width height;
max: width height;
}
..
}
 

The "size_classes" block contains a list of one or more "size_class" blocks. Each "size_class" allows the designer to name an arbitrary group of size to be used in the theme, the application can use that name to alter the min and max size values at runtime.

 

name [size class name]
 Sets the name for the size class, used as reference by both the theme and the application.

 

min [width] [height]
 

The minimum size.

Defaults: 0 0

 

max [width] [height]
 

The maximum size.

Defaults: -1 -1

Collections Blocks
Collections
collections
collections {
base_scale: 1.2;
sounds { }
vibrations { }
group { }
group { }
..
}
 

The "collections" block is used to list the groups that compose the theme. Additional "collections" blocks do not prevent overriding group names. The "sounds" block comprises of all sound definitions. The "vibrations" block compriese all vibration definitions.

 

base_scale [scale val]
 

The base_scale is the standard scale value of the collection. The default base_scale is 1.0. It means the collection is made in the environment which is same with a desktop(The monitor has 96 dpi). If you make a collection in another environment(ex: 115 dpi), you have to set the base_scale(ex: 1.2). Then it will be shown same size in the desktop.

Defaults: 1.0

Since
1.11

Sounds

sounds
sounds {
tone: "tone-1" 2300;
tone: "tone-2" 2300;
sample { }
sample { }
..
}
 

The "sounds" block contains a list of one or more sound sample and tones items.

 

tone [tone name] [frequency]
 sound of specific frequency
Since
1.1

Sounds.Sample

sample
sounds {
..
sample {
name: "sound_file1" RAW;
source: "sound_file1.wav";
}
sample {
name: "sound_file2" LOSSY 0.5;
source: "sound_file2.wav";
}
}
 The sample block defines the sound sample.
 
name [sample name] [compression type] (quality)
 Used to include each sound file. The full path to the directory holding the sounds can be defined later with edje_cc's "-sd" option. Valid types are:
  • RAW: Uncompressed.
  • COMP: Lossless compression.
  • LOSSY [45.0 - 1000.0]: Lossy compression with quality from 45.0 to 1000.0.
  • AS_IS: Check for re-encoding, no compression/encoding, just write the file information as it is.
Since
1.1

 

source [sound file name]
 The Sound source file name (Source can be mono/stereo WAV file. Only files with 44.1 KHz sample rate supported now)
Since
1.1

Vibrations

vibrations
vibrations {
sample { }
sample { }
..
}
 The "vibrations" block contains a list of one or more vibration sample.
Since
1.10

Vibrations.Sample

sample
vibrations {
sample {
name: "vibration_file1";
source: "vibration_file1.xxx";
}
..
}
 The sample block defines the vibration sample.
 
name [sample name]
 Used to include each vibration file. The full path to the directory holding the vibrations can be defined later with edje_cc's "-vd" option.
Since
1.10

 

source [vibration file name]
 The Vibration source file name
Since
1.10

translation.file

file
translation {
..
file {
locale: "en_IN";
source: "domain_name.po";
}
file {
locale: "en_US";
source: "domain_name.po";
}
}
 The file block defines the po or mo file.
 
name [locale name]
 

Used to include each po or mo file. The full path to the directory holding the po or mo file can be defined later with edje_cc's "-md" option.

Since
1.15

 

source [po file name or Mo file name]
 The po or mo source file name (Source should be a valid po or mo file. Only po or mo files are supported now)
Since
1.15

Group

group
collections {
..
group {
name: "nameusedbytheapplication";
alias: "anothername";
min: width height;
max: width height;
script { }
limits { }
data { }
parts { }
programs { }
}
..
}
 

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

 

name [group name]
 The name that will be used by the application to load the resulting Edje object and to identify the group to swallow in a GROUP part. If group with the same name exists already, it won't be compiled. Only a single name statement is valid for group, use alias instead if you want to give additional names.

 

skip_namespace_validation [1 or 0]
 

This disables namespace validation for the current group if validation has been enabled with edje_cc's -N option. This property can be inherited. Defaults: 0

Warning
Your edc file should always wrap this keyword with #ifdef HAVE_SKIP_NAMESPACE_VALIDATION
Since
1.21

 

inherit_only [1 or 0]
 

This flags a group as being used only for inheriting, which will inhibit edje_cc resolving of programs and parts that may not exist in this group, but are located in the group which is inheriting this group.

Defaults: 0

Since
1.10

 

use_custom_seat_names [1 or 0]
 

This flags a group as designed to listen for multiseat signals following a custom naming instead of default Edje naming. Seats are named on Edje as "seat1", "seat2", etc, in an incremental way and never are changed.

But on Evas, names may be set on different places (Evas, Ecore Evas backends, the application itself) and name changes are allowed. So custom names come from system at first, but can be overriden with evas_device_name_set(). Also Evas seat names don't need to follow any pattern.

It's useful for cases where there is control of the system, as seat names, or when the application sets the devices names to guarantee they'll match seat names on EDC.

Defaults: 0

Since
1.19

 

part_remove [part name] (part name) (part name) ...
 Removes the listed parts from an inherited group. Removing nonexistent parts is not allowed.
Since
1.10

 

program_remove [program name] (program name) (program name) ...
 Removes the listed programs from an inherited group. Removing nonexistent programs is not allowed. This will break program sequences if a program in the middle of the sequence is removed.
Since
1.10

 

target_group [name] [part or program] (part or program) (part or program) ...
 This creates a group of parts/programs which can then be referenced by a single 'groups' or 'target_groups' statement inside a program. The resulting program will have all of the parts/programs within the specified group added as targets.
Since
1.10

 

inherit [parent group name]
 Parent group name for inheritance. Group "inherit" is used to inherit any predefined group and change some property which belongs to "part", "description", "items" or "program". The child group has the same property as parent group. If you specify the type again in an inherited part, it will cause an error (unless you plan to fix that).
Warning
When inheriting any parts, descriptions without state names are NOT allowed.
Since
1.10

 

lua_script_only [on/off]
 

The flag (on/off) as to if this group is defined ONLY by script callbacks such as init(), resize() and shutdown()

Defaults: off

 

script_recursion [1/0]
 

This flag (1/0) determines whether to error on unsafe calls when recursively running Embryo programs. For example, running an Embryo script which calls EDC which has a script{} block is unsafe, and the outer-most (first) Embryo stack is GUARANTEED to be corrupted. Only use this flag if you are sure that you know what you are doing.

Defaults: 0

Since
1.10

 

alias [aditional group name]
 Additional name to serve as identifier. Defining multiple aliases is supported.

 

min [width] [height]
 

The minimum size for the container defined by the composition of the parts. It is not enforced.

Defaults: 0 0

 

max [width] [height]
 

The maximum size for the container defined by the totality of the parts. It is not enforced.

Defaults: 0 0

 

broadcast_signal [on/off]
 

Signal got automatically broadcasted to all sub group part.

Defaults: true

Since
1.1

 

orientation [AUTO/LTR/RTL]
 This defines GROUP orientation. This is useful if you want match interface orientation with language.
  • AUTO - Follow system defs.
  • LTR - suitable for Left To Right Languages (latin)
  • RTL - suitable for Right To Left Languages (Hebrew, Arabic interface)
Defaults: AUTO

 

mouse_events [1 or 0]
 

Change the default value of mouse_events for every part in this group.

Defaults: 1 (to maintain compatibility)

 

inherit_script [1 or 0]
 Determine whether to inherit script block from parent group. If it is set to 0, script from parent group will be replaced with new script block. Defaults to 0 if not set, to maintain compatibility.

 

program_source [source name]
 

Change the default value of source for every program in the current group which is declared after this value is set.

Defaults: an unset value (to maintain compatibility)

Since
1.10

Group.Script

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's included inside a "program" block, the script will be executed every time the program is run, on the other hand, when included directly into a "group", "part" or "description" block, it will be executed once at load time, in the load order.

Group.Data

data
data {
item: "key" "value";
..
}
 

The "data" block is used to pass arbitrary parameters from the theme to the application. Unlike the toplevel data block, this block Group.Data can only store inline items (not files). See also the toplevel Data section.

 
item [parameter name] [parameter value]
 Defines a new parameter, the value will be the string specified next to it.

Group.Filters

filters
// (toplevel)
// collections
// collections.group
filters {
// Inline as script block:
filter {
name: "myfilter1";
script {
-- Some Lua code here, eg:
blend { color = 'red' }
}
// Imported from an external file:
filter {
name: "myfilter2";
file: "filename.lua";
}
}
 

The "filter" block lets you embed filter scripts into an EDC group, that can then be referred to in the Text.Filter or Image.Filter statements.

In a similar way to the toplevel Data section, it is possible to embed filters from a external file inside the final EDJ.

Note that filters are defined globally, even if they appear inside a specific group (as of EFL 1.19).

Please also refer to Evas filters reference.

 
name [name]
 Creates a new named filter. This filter can then be used in image, text or textblock parts by name.

 
script [Lua script]
 A block of Lua code contained inside {}. Example: script { blur{5} }

 
file [Path to Lua file]
 Includes an external file to define a new Lua script used for filtering. The file must be in the data path passed to edje_cc (-dd argument).

Group.Limits

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

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

 

vertical [name] [height barrier]
 It will send a signal: "limit,name,over" when the object is resized and pass the limit by growing over it. And it will send: "limit,name,below" when it pass below that limit. This limit will be applied on the y absis and is expressed in pixels.

 

horizontal [name] [width barrier]
 It will send a signal: "limit,name,over" when the object is resized and pass the limit by growing over it. And it will send: "limit,name,below" when it pass below that limit. This limit will be applied on the x axis and is expressed in pixels.

Group.Parts

parts
group {
parts {
alias: "theme_part_path" "somegroup:real_part_path";
part { "theme_part_path"; }
part { }
..
}
}
 

The parts block is the container for all the parts in the group.

 
alias [alias name] [other_group:part name]
 Allows for a part to be referenced externally as though it had the name of the alias. In the above example, swallowing an object into part "theme_part_path" will result in the object actually being swallowed into the part "real_part_path" in the "somegroup" group.

Group.Parts.Part

part
group {
parts {
..
part {
name: "partname";
type: IMAGE;
mouse_events: 1;
repeat_events: 0;
ignore_flags: NONE;
mask_flags: NONE;
clip_to: "anotherpart";
source: "groupname";
pointer_mode: AUTOGRAB;
use_alternate_font_metrics: 0;
no_render: 0;
dragable { }
items { }
description { }
}
..
}
}
 

Parts are used to represent the most basic design elements of the theme, for example, a part can represent a line in a border or a label on a button.

 

inherit [part name]
 Copies all attributes except part name from referenced part into current part. ALL existing attributes, except part name, are overwritten.
Warning
When inheriting any parts, descriptions without state names are NOT allowed.
Since
1.10

 

name [part name]
 The part's name will be used as reference in the theme's relative positioning system, by programs and in some cases by the application. It must be unique within the group.

 

type [TYPE]
 Set the type (all caps) from among the available types, it's set to IMAGE by default. Valid types:
  • RECT
  • TEXT
  • IMAGE
  • SWALLOW
  • TEXTBLOCK
  • GROUP
  • BOX
  • TABLE
  • EXTERNAL
  • PROXY
  • SPACER
  • SNAPSHOT
Defaults: IMAGE

 

physics_body [TYPE]
 Set the type (all caps) from among the available types of physics body, it's set to NONE by default. If type is NONE no physics will be applied and physics block inside part will be discarded. Valid types:
  • NONE
  • RIGID_BOX
  • RIGID_SPHERE
  • RIGID_CYLINDER
  • SOFT_BOX
  • SOFT_SPHERE
  • SOFT_CYLINDER
  • CLOTH
  • BOUNDARY_TOP
  • BOUNDARY_BOTTOM
  • BOUNDARY_RIGHT
  • BOUNDARY_LEFT
  • BOUNDARY_FRONT
  • BOUNDARY_BACK
Defaults: NONE
Since
1.8

 

part [part declaration]
 
group {
parts {
part {
name: "parent_rect";
type: RECT;
description { }
part {
name: "nested_rect";
type: RECT;
description { }
}
}
..
}
}
Nested parts adds hierarchy to edje. Nested part inherits it's location relatively to the parent part. To declare a nested part just start a new part within current part decl. You must define parent part name before adding nested parts.
Since
1.7

 

insert_before [another part's name]
 The part's name which this part is inserted before. One part cannot have both insert_before and insert_after. One part cannot refer more than one by insert_before.
Since
1.1

 

insert_after [another part's name]
 The part's name which this part is inserted after. One part cannot have both insert_before and insert_after. One part cannot refer more than one by insert_after.
Since
1.1

 

mouse_events [1 or 0]
 

Specifies whether the part will emit signals, although it is named "mouse_events", disabling it (0) will prevent the part from emitting any type of signal at all.

Defaults: group.mouse_events

 

anti_alias [1 or 0]
 

Takes a boolean value specifying whether part is anti_alias (1) or not (0).

Defaults: 1

 

repeat_events [1 or 0]
 

Specifies whether a part echoes a mouse event to other parts below the pointer (1), or not (0)

Defaults: 0

 

ignore_flags [FLAG] ...
 Specifies whether events with the given flags should be ignored, i.e., will not have the signals emitted to the parts. Multiple flags must be separated by spaces, the effect will be ignoring all events with one of the flags specified. Possible flags:
  • NONE (no event will be ignored)
  • ON_HOLD
Defaults: NONE

 

mask_flags [FLAG] ...
 Masks event flags with the given value, so that the event can be repeated to the lower object along with masked event flags. Possible flags:
  • NONE (no event will be masked)
  • ON_HOLD
Defaults: NONE

 

scale [1 or 0]
 

Specifies whether the part will scale its size with an edje scaling factor. By default scale is off (0) and the default scale factor is 1.0 - that means no scaling. This would be used to scale properties such as font size, min/max size of the part, and possibly can be used to scale based on DPI of the target device. The reason to be selective is that some things work well being scaled, others do not, so the designer gets to choose what works best. For MESH_NODE parts three parameters specify how much the part will stretched along each axis.

Defaults: 0

 

pointer_mode [MODE]
 Sets the mouse pointer behavior for a given part. Aviable modes:
  • AUTOGRAB, when the part is clicked and the button remains pressed, the part will be the source of all future mouse signals emitted, even outside the object, until the button is released.
  • NOGRAB, the effect will be limited to the part's container.
Defaults: AUTOGRAB

 

precise_is_inside [1 or 0]
 

Enables precise point collision detection for the part, which is more resource intensive.

Defaults: 0

 

use_alternate_font_metrics [1 or 0]
 

Only affects text and textblock parts, when enabled Edje will use different size measurement functions. Disabled by default. (note from the author: I don't know what this is exactly useful for?)

Defaults: 0

 

clip_to [another part's name]
 Only renders the area of part that coincides with another part's container. Overflowing content will not be displayed. Note that the part being clipped to can only be a rectangle part.

 

no_render [1 or 0]
 

Setting the no_render flag on an object will make it never render directly on the canvas, regardless of the visible and color properties. But the object will still be rendered in a dedicated surface when required if it is a proxy source or a mask (clipper). Strongly recommended for use with mask objects and proxy sources (instead of setting "source_visible" on the proxy itself).

Defaults: 0

 

required [1 or 0]
 

If the required flag is set, this part will be considered stable and it is safe to use by any application."

Defaults: 0

Since
1.18

 

source [another group's name]
 Only available to GROUP or TEXTBLOCK parts. Swallows the specified group into the part's container if a GROUP. If TEXTBLOCK it is used for the group to be loaded and used for selection display UNDER the selected text. source2 is used for on top of the selected text, if source2 is specified.

 

source2 [another group's name]
 Only available to TEXTBLOCK parts. It is used for the group to be loaded and used for selection display OVER the selected text. source is used for under of the selected text, if source is specified.

 

source3 [another group's name]
 Only available to TEXTBLOCK parts. It is used for the group to be loaded and used for cursor display UNDER the cursor position. source4 is used for over the cursor text, if source4 is specified.

 

source4 [another group's name]
 Only available to TEXTBLOCK parts. It is used for the group to be loaded and used for cursor display OVER the cursor position. source3 is used for under the cursor text, if source4 is specified.

 

source5 [another group's name]
 Only available to TEXTBLOCK parts. It is used for the group to be loaded and used for anchors display UNDER the anchor position. source6 is used for over the anchors text, if source6 is specified.

 

source6 [another group's name]
 Only available to TEXTBLOCK parts. It is used for the group to be loaded and used for anchor display OVER the anchor position. source5 is used for under the anchor text, if source6 is specified.

 

effect [effect] (shadow direction)
 Causes Edje to draw the selected effect among:
  • PLAIN
  • OUTLINE
  • SOFT_OUTLINE
  • SHADOW
  • SOFT_SHADOW
  • OUTLINE_SHADOW
  • OUTLINE_SOFT_SHADOW
  • FAR_SHADOW
  • FAR_SOFT_SHADOW
  • GLOW
Shadow directions (default if not given is BOTTOM_RIGHT):
  • BOTTOM_RIGHT
  • BOTTOM
  • BOTTOM_LEFT
  • LEFT
  • TOP_LEFT
  • TOP
  • TOP_RIGHT
  • RIGHT
Defaults: PLAIN

 

entry_mode [mode]
 

Sets the edit mode for a textblock part to one of:

  • NONE
  • PLAIN
  • EDITABLE
  • PASSWORD

It causes the part be editable if the edje object has the keyboard focus AND the part has the edje focus (or selectable always regardless of focus) and in the event of password mode, not selectable and all text chars replaced with *'s but editable and pastable.

Defaults: NONE

 

select_mode [mode]
 Sets the selection mode for a textblock part to one of:
  • DEFAULT selection mode is what you would expect on any desktop. Press mouse, drag and release to end.
  • EXPLICIT mode requires the application controlling the edje object has to explicitly begin and end selection modes, and the selection itself is draggable at both ends.

 

cursor_mode [mode]
 Sets the cursor mode for a textblock part to one of:
  • UNDER cursor mode means the cursor will draw below the character pointed at.
  • BEFORE cursor mode means the cursor is drawn as a vertical line before the current character, just like many other GUI toolkits handle it.
Defaults: UNDER

 

multiline [1 or 0]
 

It causes a textblock that is editable to allow multiple lines for editing.

Defaults: 0

 

access [1 or 0]
 

Specifies whether the part will use accessibility feature (1), or not (0).

Defaults: 0

Group.Parts.Part.Dragable

dragable
part {
..
dragable {
confine: "another part";
threshold: "another part";
events: "another dragable part";
x: 0 0 0;
y: 0 0 0;
}
..
}
 

When this block is used the resulting part can be dragged around the interface, do not confuse with external drag & drop. By default Edje (and most applications) will attempt to use the minimal size possible for a dragable part. If the min property is not set in the description the part will be (most likely) set to 0px width and 0px height, thus invisible.

 
x [enable/disable] [step] [count]
 

Used to setup dragging events for the X axis. The first parameter is used to enable (1 or -1) and disable (0) dragging along the axis. When enabled, 1 will set the starting point at 0.0 and -1 at 1.0. The second parameter takes any integer and will limit movement to values divisible by it, causing the part to jump from position to position. If step is set to 0 it is calculated as width of confine part divided by count.

Defaults: 0 0 0

 

y [enable/disable] [step] [count]
 

Used to setup dragging events for the Y axis. The first parameter is used to enable (1 or -1) and disable (0) dragging along the axis. When enabled, 1 will set the starting point at 0.0 and -1 at 1.0. The second parameter takes any integer and will limit movement to values divisible by it, causing the part to jump from position to position. If step is set to 0 it is calculated as height of confine part divided by count.

Defaults: 0 0 0

 

confine [another part's name]
 When set, limits the movement of the dragged part to another part's container. When you use confine don't forget to set a min size for the part, or the draggie will not show up.

 

threshold [another part's name]
 When set, the movement of the dragged part can only start when it get moved enough to be outside of the threshold part.

 

events [another dragable part's name]
 It causes the part to forward the drag events to another part, thus ignoring them for itself.

 

allowed_seats [seat1] [seat2] [seat3] ...
 

List of seat names allowed to interact with the part.

If no list is defined all seats are allowed. It's the default behaviour.

If a seat isn't allowed, no signals will be emitted related to its actions, as mouse and focus events. Also it won't be able to focus this part.

Since
1.19

Group.Parts.Part.Box/Table.Items

items
part {
..
box/table {
items {
item {
type: TYPE;
source: "some source";
min: 1 1;
max: 100 100;
padding: 1 1 2 2;
}
item {
type: TYPE;
source: "some other source";
name: "some name";
align: 1.0 0.5;
}
..
}
}
..
}
 

On a part of type BOX, this block can be used to set other groups as elements of the box. These can be mixed with external objects set by the application through the edje_object_part_box_* API.

 

type [item type]
 Sets the type of the object this item will hold. Supported types are:
  • GROUP

 

name [name for the object]
 Sets the name of the object via evas_object_name_set().

 

source [another group's name]
 Sets the group this object will be made from.

 

min [width] [height]
 

Sets the minimum size hints for this object.

Defaults: 0 0

 

spread [width] [height]
 

Will replicate the item in a rectangle of size width x height box starting from the defined position of this item.

Defaults: 1 1

 

prefer [width] [height]
 

Sets the preferred size hints for this object.

Defaults: 0 0

 

max [width] [height]
 

Sets the maximum size hints for this object.

Defaults: -1 -1

 

padding [left] [right] [top] [bottom]
 

Sets the padding hints for this object.

Defaults: 0 0 0 0

 

align [x] [y]
 

Sets the alignment [-1.0 - 1.0] hints for this object.

Defaults: 0.5

 

weight [x] [y]
 

Sets the weight hints for this object.

Defaults: 0.0 0.0

 

aspect [w] [h]
 

Sets the aspect width and height hints for this object.

Defaults: 0 0

 

aspect_mode [mode]
 Sets the aspect control hints for this object. Mode can be one of:
  • NONE
  • NEITHER
  • HORIZONTAL
  • VERTICAL
  • BOTH
Defaults: NONE

 

options [extra options]
 Sets extra options for the object. Unused for now.

 

position [col] [row]
 Sets the position this item will have in the table. This is required for parts of type TABLE.

 

span [col] [row]
 

Sets how many columns/rows this item will use.

Defaults: 1 1

Group.Parts.Part.Description

description
description {
inherit: "another_description" INDEX;
state: "description_name" INDEX;
visible: 1;
min: 0 0;
max: -1 -1;
align: 0.5 0.5;
fixed: 0 0;
step: 0 0;
aspect: 1 1;
clip_to: "clip_override_part_name";
no_render: 0;
offset_scale: 0;
rel1 {
..
}
rel2 {
..
}
}
 

Every part can have one or more description blocks. Each description is used to define style and layout properties of a part in a given "state".

 

inherit [another description's name] [another description's index]
 When set, the description will inherit all the properties from the named description. The properties defined in this part will override the inherited properties, reducing the amount of necessary code for simple state changes. Note: inheritance in Edje is single level only.
Since
1.14 omitting both the description name and index will inherit the default 0.0 description.

 

source [another part's name]
 Causes the part to use another part content as the content of this part. Only work with PROXY part.

 

state [name for the description] [index]
 

Sets a name used to identify a description inside a given part. Multiple descriptions are used to declare different states of the same part, like "clicked" or "invisible". All states declarations are also coupled with an index number between 0.0 and 1.0. First description in part must always be "default" 0.0.

Warning
state name "custom" is reserved and can't be used in edc.

Defaults: "default" 0.0

 

visible [0 or 1]
 

Takes a boolean value specifying whether part is visible (1) or not (0). Non-visible parts do not emit signals.

Defaults: 1

 

no_render [0 or 1]
 

Same as setting no_render in part, but can be changed in different states.

Defaults: 0

Since
1.19

 

limit [mode]
 Emit a signal when the part size change from zero or to a zero size ('limit,width,over', 'limit,width,zero'). By default no signal are emitted. Valid values are:
  • NONE
  • WIDTH
  • HEIGHT
  • BOTH
Defaults: NONE
Since
1.7

 

align [X axis] [Y axis]
 

When the displayed object's size is smaller (or bigger) than its container, this property moves it relatively along both axis inside its container. "0.0" means left/top edges of the object touching container's respective ones, while "1.0" stands for right/bottom edges of the object (on horizontal/vertical axis, respectively).

Defaults: 0.5 0.5

 

fixed [width, 0 or 1] [height, 0 or 1]
 

This affects the minimum size calculation. See edje_object_size_min_calc() and edje_object_size_min_restricted_calc(). This tells the min size calculation routine that this part does not change group size in width or height (1 for it doesn't, 0 for it does), so the routine should not try and expand or contract the group.

Defaults: 0 0

 

min [width] [height] or SOURCE
 

The minimum size of the state.

When min is defined to SOURCE, it will look at the original image size and enforce it minimal size to match at least the original one. The part must be an IMAGE or a GROUP part.

Defaults: 0 0

 

minmul [width multiplier] [height multiplier]
 

A multiplier FORCIBLY applied to whatever minimum size is only during minimum size calculation.

Defaults: 1.0 1.0

Since
1.2

 

max [width] [height] or SOURCE
 

The maximum size of the state. A size of -1 means that it will be ignored in one direction.

When max is set to SOURCE, edje will enforce the part to be not more than the original image size. The part must be an IMAGE part.

Defaults: -1 -1

 

size_class [size class name]
 The part will have the min and max size defined in the size class. "min" and "max" property in description can be overridden by the size class at runtime.

 

step [width] [height]
 

Restricts resizing of each dimension to values divisible by its value. This causes the part to jump from value to value while resizing. The default value is "0 0" disabling stepping.

Defaults: 0.0 0.0

 

aspect [min] [max]
 

Normally width and height can be resized to any values independently. The aspect property forces the width to height ratio to be kept between the minimum and maximum set. For example, "1.0 1.0" will increase the width a pixel for every pixel added to height. The default value is "0.0 0.0" disabling aspect.

Defaults: 0.0 0.0

 

aspect_preference [DIMENSION]
 

Sets the scope of the "aspect" property to a given dimension. Available options are BOTH, VERTICAL, HORIZONTAL, SOURCE and NONE

Defaults: NONE

 

color_class [color class name]
 The part will use the color values of the named color_class, these values can be modified by the "color", "color2" and "color3" properties set below.

 

color [red] [green] [blue] [alpha] or "#[RR][GG][BB](AA)" or "#[R][G][B](A)"
 

Sets the main color.

Format:

  • [red] [green] [blue] [alpha]: one integer [0-255] for each RGBA channel, i.e. 255 0 0 255
  • "#[RR][GG][BB](AA)": string with two hex values per RGBA channel, i.e "#FF0000FF" or "#FF0000"
  • "#[R][G][B](A)": string with one hex value per RGBA channel, i.e "#F00F" or "#F00".
    In string format you can omit alpha channel and it will be set to FF.

If color_class is set resulting color channel values will be (color * color_class / 255)

Defaults: 255 255 255 255

 

color2 [red] [green] [blue] [alpha] or "#[RR][GG][BB](AA)" or "#[R][G][B](A)"
 

Sets the text outline color.

Format:

  • [red] [green] [blue] [alpha]: one integer [0-255] for each RGBA channel, i.e. 255 0 0 255
  • "#[RR][GG][BB](AA)": string with two hex values per RGBA channel, i.e "#FF0000FF" or "#FF0000"
  • "#[R][G][B](A)": string with one hex value per RGBA channel, i.e "#F00F" or "#F00".
    In string format you can omit alpha channel and it will be set to FF.

If color_class is set resulting color channel values will be (color * color_class / 255)

Defaults: 0 0 0 255

 

color3 [red] [green] [blue] [alpha] or "#[RR][GG][BB](AA)" or "#[R][G][B](A)"
 

Sets the text shadow color.

Format:

  • [red] [green] [blue] [alpha]: one integer [0-255] for each RGBA channel, i.e. 255 0 0 255
  • "#[RR][GG][BB](AA)": string with two hex values per RGBA channel, i.e "#FF0000FF" or "#FF0000"
  • "#[R][G][B](A)": string with one hex value per RGBA channel, i.e "#F00F" or "#F00".
    In string format you can omit alpha channel and it will be set to FF.

If color_class is set resulting color channel values will be (color * color_class / 255)

Defaults: 0 0 0 128

 

clip_to [another part's name]
 Overrides the 'clip_to' property of this part. This allows switching clippers (or masks) at runtime by changing this part's state. When transitioning between two states, the switch of the clipper shall happen at the end of the animation, when the new state is finally set (this is similar to the 'visible' flag).

 

offset_scale [1 or 0]
 

Makes rel1/2 offset values scale by scale factor like min/max if set to 1, otherwise 0 means they will not scale. Note that the part as a whole has to be set to scale too like:

part { name: "partname"; scale: 1;
...

Defaults: 0

Group.Parts.Part.Description.Relatives (rel1/rel2)

rel1/rel2/rel
description {
..
rel1 {
relative: 0.0 0.0;
offset: 0 0;
}
..
rel2 {
relative: 1.0 1.0;
offset: -1 -1;
}
..
rel {
to: "somepart";
}
..
}
 

The rel1 and rel2 blocks are used to define the position of each corner of the part's container. With rel1 being the left-up corner and rel2 being the right-down corner; rel (no number) is equivalent to setting both rel1 AND rel2 since 1.14.

 
relative [X axis] [Y axis]
 

Moves a corner to a relative position inside the container of the relative "to" part. Values from 0.0 (0%, beginning) to 1.0 (100%, end) of each axis.

Defaults:

  • rel1.relative: 0.0 0.0
  • rel2.relative: 1.0 1.0

 

offset [X axis] [Y axis]
 

Affects the corner position a fixed number of pixels along each axis.

Defaults:

  • rel1.offset: 0 0
  • rel2.offset: -1 -1

 

to [another part's name]
 Causes a corner to be positioned relatively to another part's container. Setting to "" will unset this value for inherited parts.

 

to_x [another part's name]
 Causes a corner to be positioned relatively to the X axis of another part's container. Simply put affects the first parameter of "relative". Setting to "" will unset this value for inherited parts.

 

to_y [another part's name]
 Causes a corner to be positioned relatively to the Y axis of another part's container. Simply put, affects the second parameter of "relative". Setting to "" will unset this value for inherited parts.

Group.Parts.Part.Description.Anchors

anchors
// This part will be expanded from the top-left corner of edje group
part { name : "part1";
description { state: "default" 0.0;
anchors {
top: GROUP TOP;
left: GROUP; // This means 'left: GROUP LEFT;'
}
min: 50 50;
}
}
// This part will be expanded from the bottom-right corner of "part1"
// to the bottom-right
part { name: "part2";
description { state: "default" 0.0;
anchors {
top: "part1" BOTTOM;
left: "part1"; // This means 'left: "part1" RIGHT;'
}
min: 50 50;
}
}
// This part will be expanded from the right edje of "part2" to the right
part { name: "part3";
description { state: "default" 0.0;
anchors {
left: "part2";
fill: "part2" VERTICAL;
}
min: 100 0; // The height will be determined by the height of "part2"
}
}
// This part will be expanded from the center of right edge of "part3"
// to the bottom-right corner of edje group
part { name: "part4";
description { state: "default" 0.0;
anchors {
top: "part3" VERTICAL_CENTER;
left: "part3";
right: GROUP;
bottom: GROUP;
}
}
}
 

The anchors blocks are used to define the position of each edge of the part's container. Anchors will change relative, align and fixed attributes internally, so setting both of them is not allowed. When the second parameter of position enumeration is omitted, anchoring a part to the other part will put the part adjacent to the given part. However, if the part is anchored to edje group, the part will be contained inside the group.

 
anchors [partname] [the edge of other part]
 Moves an edge of the part to the position of the edge of given part or whole edje group. (GROUP means edje group that the part belong to)

 

top [partname] [TOP/BOTTOM/VERTICAL_CENTER]
 Causes top edge to be positioned to the edge of another part's container. Setting to GROUP will indicate edje group instead of another part. If bottom anchor is not set, edje part will be expanded to the bottom. The second parameter of position enumeration can be omitted. (Default value is BOTTOM, but TOP when the part is anchored to edje group)

 

bottom [partname] [TOP/BOTTOM/VERTICAL_CENTER]
 Causes bottom edge to be positioned to the edge of another part's container. Setting to GROUP will indicate edje group instead of another part. If top anchor is not set, edje part will be expanded to the top. The second parameter of position enumeration can be omitted. (Default value is TOP, but BOTTOM when the part is anchored to edje group)

 

left [partname] [LEFT/RIGHT/HORIZONTAL_CENTER]
 Causes left edge to be positioned to the edge of another part's container. Setting to GROUP will indicate edje group instead of another part. If right anchor is not set, edje part will be expanded to the right. The second parameter of position enumeration can be omitted. (Default value is RIGHT, but LEFT when the part is anchored to edje group)

 

right [partname] [LEFT/RIGHT/HORIZONTAL_CENTER]
 Causes right edge to be positioned to the edge of another part's container. Setting to GROUP will indicate edje group instead of another part. If left anchor is not set, edje part will be expanded to the left. The second parameter of position enumeration can be omitted. (Default value is LEFT, but RIGHT when the part is anchored to edje group)

 

vertical_center [partname] [TOP/BOTTOM/VERTICAL_CENTER]
 Causes (virtual) vertical center line to be positioned to the edge of another part's container. Setting to GROUP will indicate edje group instead of another part. This part will be expanded vertically in both directions, so do not set top or bottom anchor with vertical_center anchor. The second parameter of position enumeration can be omitted. (Default value is VERTICAL_CENTER)

 

horizontal_center [partname] [LEFT/RIGHT/HORIZONTAL_CENTER]
 Causes (virtual) horizontal center line to be positioned to the edge of another part's container. Setting to GROUP will indicate edje group instead of another part. This part will be expanded horizontally in both directions, so do not set left or right anchor with vertical_center anchor. The second parameter of position enumeration can be omitted. (Default value is HORIZONTAL_CENTER)

 

fill [partname] [BOTH/HORIZONTAL/VERTICAL]
 Causes the part's container to expand to the width or height of another part's container. Setting to GROUP will indicate edje group instead of another part. Setting horizontal fill has same effect to setting top and bottom anchors to the same part. (setting vertical fill means left and right anchors to the same part) The second parameter of direction enumeration can be omitted. (Default value is BOTH)

 

margin [left] [right] [top] [bottom]
 Affects the edge position a fixed number of pixels along each direction. Margins will scale its size with an edje scaling factor.

Group.Parts.Part.Description.Image

image
description {
..
image {
normal: "filename.ext";
normal: "filename.svg";
tween: "filename2.ext";
..
tween: "filenameN.ext";
border: left right top bottom;
middle: 0/1/NONE/DEFAULT/SOLID;
fill { }
}
..
}
 

 
normal [image's filename]
 Name of image to be used as previously declared in the images block. In an animation, this is the first and last image displayed. It's required in any image part

 

tween [image's filename]
 Name of an image to be used in an animation loop, an image block can have none, one or multiple tween declarations. Images are displayed in the order they are listed, during the transition to the state they are declared in; the "normal" image is the final state.

 

border [left] [right] [top] [bottom]
 

If set, the area (in pixels) of each side of the image will be displayed as a fixed size border, from the side -> inwards, preventing the corners from being changed on a resize.

Defaults: 0 0 0 0

 

middle [mode]
 If border is set, this value tells Edje if the rest of the image (not covered by the defined border) will be displayed or not or be assumed to be solid (without alpha). The default is 1/DEFAULT. Valid values are:
  • 0 or NONE
  • 1 or DEFAULT
  • SOLID

 

border_scale_by [value]
 

If border scaling is enabled then normally the OUTPUT border sizes (e.g. if 3 pixels on the left edge are set as a border, then normally at scale 1.0, those 3 columns will always be the exact 3 columns of output, or at scale 2.0 they will be 6 columns, or 0.33 they will merge into a single column). This property multiplies the input scale factor by this multiplier, allowing the creation of "supersampled" borders to make much higher resolution outputs possible by always using the highest resolution artwork and then runtime scaling it down.

value can be: 0.0 or bigger (0.0 or 1.0 to turn it off)

Defaults: 0.0

 

border_scale [0/1]
 

If border is set, this value tells Edje if the border should be scaled by the object/global edje scale factors

Defaults: 0

 

scale_hint [mode]
 Sets the evas image scale hint letting the engine more effectively save cached copies of the scaled image if it makes sense. Valid values are:
  • 0 or NONE
  • DYNAMIC
  • STATIC
Defaults: NONE

Group.Parts.Part.Description.Fill

fill
part { type: [IMAGE or PROXY];
description {
..
fill {
type: SCALE;
smooth: 0-1;
origin { }
size { }
}
..
}
..
}
 

The fill method is an optional block that defines the way an IMAGE or PROXY part is going to be displayed inside its container. It can be used for tiling (repeating the image) or displaying only part of an image. See evas_object_image_fill_set() documentation for more details.

 
smooth [0 or 1]
 

The smooth property takes a boolean value to decide if the image will be smoothed on scaling (1) or not (0).

Defaults: 1

 

type [fill type]
 

Sets the image fill type. SCALE - image will be scaled accordingly params value 'relative' and 'offset' from 'origin' and 'size' blocks. TILE - image will be tiled accordingly params value 'relative' and 'offset' from 'origin' and 'size' blocks. Important: the part parameter 'min' must be setted, it's size of tiled image. If parameter 'max' setted tiled area will has the size accordingly 'max' values.

Valid values are:

  • SCALE
  • TILE

Defaults: SCALE

Group.Parts.Part.Description.Fill.Origin

origin
image {
..
fill {
..
origin {
relative: 0.0 0.0;
offset: 0 0;
}
..
}
..
}
 

The origin block is used to place the starting point, inside the displayed element, that will be used to render the tile. By default, the origin is set at the element's left-up corner.

 
relative [X axis] [Y axis]
 

Sets the starting point relatively to displayed element's content.

Defaults: 0.0 0.0

 

offset [X axis] [Y axis]
 

Affects the starting point a fixed number of pixels along each axis.

Defaults: 0 0

Group.Parts.Part.Description.Fill.Size

size
image {
..
fill {
..
size {
relative: 1.0 1.0;
offset: -1 -1;
}
..
}
..
}
 

The size block defines the tile size of the content that will be displayed.

 
relative [width] [height]
 

Takes a pair of decimal values that represent the percentual value of the original size of the element. For example, "0.5 0.5" represents half the size, while "2.0 2.0" represents the double.

Defaults: 1.0 1.0

 

offset [X axis] [Y axis]
 

Affects the size of the tile a fixed number of pixels along each axis.

Defaults: 0 0

Group.Parts.Part.Description.Text

text
part {
description {
..
text {
text: "some string of text to display";
domain: "domain_name";
font: "font_name";
size: SIZE;
text_class: "class_name";
fit: horizontal vertical;
min: horizontal vertical;
max: horizontal vertical;
align: X-axis Y-axis;
source: "part_name";
text_source: "text_part_name";
ellipsis: -1.0 (since 1.8), 0.0-1.0;
style: "stylename";
}
..
}
}
 

 
text [a string of text, or nothing]
 Sets the default content of a text part, normally the application is the one changing its value.

 

domain [domain name]
 This is the domain name of the .mo file which has to be checked for translation.

 

text_class [text class name]
 Similar to color_class, this is the name used by the application to alter the font family and size at runtime.

 

font [font alias]
 This sets the font family to one of the aliases set up in the "fonts" block. Can be overridden by the application.

 

style [the style name]
 Causes the part to use the default style and tags defined in the "style" block with the specified name.

 

repch [the replacement character string]
 If this is a textblock and is in PASSWORD mode this string is used to replace every character to hide the details of the entry. Normally you would use a "*", but you can use anything you like.

 

size [font size in points (pt) 0 - 255]
 

Sets the default font size for the text part. Can be overridden by the application.

Defaults: 0

 

size_range [font min size in points (pt) 0 - 255] [font max size in points (pt) 0 - 255]
 

Sets the allowed font size for the text part. Setting min and max to 0 means we won't restrict the sizing.

Defaults: 0 0

Since
1.1

 

fit [horizontal] [vertical]
 

When any of the parameters is set to 1 edje will resize the text for it to fit in it's container. Both are disabled by default.

Defaults: 0 0

 

fit_step [font step size in points (pt)]
 

Sets the font step size for the text part. when fitting text

Defaults: 1

Since
1.24.0

 

fit [Array of font sizes in points]
 Sets the allowed font sizes array for the text part.
Since
1.24.0

 

min [horizontal] [vertical]
 

When any of the parameters is enabled (1) it forces the minimum size of the container to be equal to the minimum size of the text.

Defaults: 0 0

 

max [horizontal] [vertical]
 

When any of the parameters is enabled (1) it forces the maximum size of the container to be equal to the maximum size of the text.

Defaults: 0 0

 

align [horizontal] [vertical]
 

Change the alignment of the text [0.0(left) - 1.0(right)]. You can set horizontal alignment to -1.0 to use bidirectional based alignment( 0.0 for LTR content or 1.0 for RTL)

Defaults: 0.5 0.5

 

source [another TEXT part's name]
 Causes the part to use the text properties (like font and size) of another part and update them as they change.

 

text_source [another TEXT part's name]
 Causes the part to display the text content of another part and update them as they change.

 

ellipsis [point of balance]
 

Used to balance the text in a relative point from 0.0 to 1.0, this point is the last section of the string to be cut out in case of a resize that is smaller than the text itself. Setting -1.0 will disable text cutting.

Defaults: 0.0

Group.Parts.Part.Description.Box

box
part {
description {
..
box {
layout: "vertical";
padding: 0 2;
align: 0.5 0.5;
min: 0 0;
}
..
}
}
 

A box block can contain other objects and display them in different layouts, any of the predefined set, or a custom one, set by the application.

 
layout [primary layout] (fallback layout)
 Sets the layout for the box:
  • horizontal
  • vertical
  • horizontal_homogeneous
  • vertical_homogeneous
  • horizontal_max (homogeneous to the max sized child)
  • vertical_max
  • horizontal_flow
  • vertical_flow
  • stack
  • some_other_custom_layout_set_by_the_application You could set a custom layout as fallback, it makes very very little sense though, and if that one fails, it will default to horizontal.
Defaults: "horizontal"

 

align [horizontal] [vertical]
 

Change the position of the point of balance inside the box [-1.0 - 1.0].

Defaults: 0.5 0.5

 

padding [horizontal] [vertical]
 

Sets the space between box items in pixels.

Defaults: 0 0

 

min [horizontal] [vertical]
 

When any of the parameters is enabled (1) it forces the minimum size of the box to be equal to the minimum size of the items.

Defaults: 0 0

Group.Parts.Part.Description.Table

table
part {
description {
..
table {
homogeneous: TABLE;
padding: 0 2;
align: 0.5 0.5;
min: 0 0;
}
..
}
}
 

A table block can contain other objects packed in multiple columns and rows, and each item can span across more than one column and/or row.

 
homogeneous [homogeneous mode]
 Sets the homogeneous mode for the table:
  • NONE
  • TABLE
  • ITEM
Defaults: NONE

 

align [horizontal] [vertical]
 

Change the position of the point of balance inside the table [-1.0 - 1.0].

Defaults: 0.5 0.5

 

padding [horizontal] [vertical]
 

Sets the space between table cells in pixels.

Defaults: 0 0

 

min [horizontal] [vertical]
 

When any of the parameters is enabled (1) it forces the minimum size of the table to be equal to the minimum size of the items.

Defaults: 0 0

Group.Parts.Part.Description.Proxy

proxy
part { type: PROXY;
description {
..
proxy {
source_clip: 1;
source_visible: 1;
}
..
}
}
 

State flags used for proxy objects.

 
source_clip [0 or 1]
 

Sets the 'source_clip' property on this PROXY object. True by default, this means the proxy will be clipped by its source clipper. False means the source clipper is ignored when rendering the proxy.

Defaults: 1

 
source_visible [0 or 1]
 

Sets the 'source_visible' property on this PROXY object. True by default, meaning both the proxy and its source object will be visible. If false, the source object will not be visible. False is equivalent to setting the 'no_render' flag on the source object itself.

Defaults: 1

Group.Parts.Part.Description.Physics

physics
description {
..
physics {
ignore_part_pos: 1;
mass: 5.31;
friction: 0.5;
restitution: 0.82;
damping: 0.4 0.24;
sleep: 32 18.9;
material: IRON;
density: 3.2;
hardness: 0.42;
light_on: 1;
z: -15;
depth: 30;
movement_freedom { }
faces { }
}
..
}
 

Physics block should be used to configure the body associated to the part. The part's property physics_body needs to be set to something different from NONE, otherwise the properties inside physics block won't have any effect. It's possible to set body's material, mass, restitution, friction, allow / disallow movement in specific axes, etc.

 
mass [body's mass in kilograms]
 Double value used to set inertial mass of the body. It is a quantitative measure of an object's resistance to the change of its speed. If mass is set to 0 the body will have infinite mass, so it will be immovable, static.
Since
1.8

 

restitution [body's restitution]
 

The coefficient of restitution is proporcion between speed after and before a collision. It's 0 by default.

COR = relative speed after collision / relative speed before collision

  • elastically collide for COR == 1;
  • inelastically collide for 0 < COR < 1;
  • completelly stop (no bouncing at all) for COR == 0.
Since
1.8

 

friction [body's friction]
 

Friction is used to make objects slide along each ot

The friction parameter is usually set between 0 and 1, but can be any non-negative value. A friction value of 0 turns off friction and a value of 1 makes the friction strong.

By default friction value is 0.5 and simulation resulsts will be better when friction in non-zero.

Since
1.8

 

ignore_part_pos [1 or 0]
 If enabled, the body won't be positioned following rel1/rel2. It will keep its position updated only by physics calculations. If disabled, when the state is set, the body will be moved to the position described by the blocks rel1/rel2. Default is 1 (enabled).
Since
1.8

 

damping [linear damping] [angular damping]
 Damping(linear and angular) values are applied to body's linear and angular velocity. By applying a bodies damping factor the user will face a velocity reduction, with a force applied to it - "like" air resistance. The force is applied to slow it down. Values should be between 0.0 and 1.0, and are set to 0 by default.
Since
1.8

 

sleep [linear sleeping threshold] [angular sleeping threshold]
 Sleeping threshold factors are used to determine whenever a rigid body is supposed to increment the sleeping time. Linear threshold is measured in Evas coordinates per second and angular threshold is measured in degrees per second. After every tick the sleeping time is incremented, if the body's linear and angular speed is less than the respective thresholds the sleeping time is incremented by the current time step (delta time). Reaching the max sleeping time the body is marked to sleep, that means the rigid body is to be deactivated. By default linear threshold is 24 pixels / second and angular is 57.29 degrees / sec (1 rad/sec).
Since
1.8

 

material [body's material]
 Set the type (all caps) from among the available material types, it's set to CUSTOM by default. Each material has specific properties to be applied on the body, as density, friction and restitution. So if a material different of CUSTOM is set, the properties cited above won't be considered. Valid types:
  • CUSTOM
  • CONCRETE
  • IRON
  • PLASTIC
  • POLYSTYRENE
  • RUBBER
  • WOOD
Since
1.8

 

density [body's material density]
 It will set the body mass considering its volume. While a density is set, resizing a body will always recalculate its mass. When a mass is explicitely set the density will be unset.
Since
1.8

 

hardness [soft body or cloth hardness]
 The hardness is set with a double value (0.0 - 1.0), defining how the soft body is supposed to deform. Its default is set to 1.0. The soft body mass will also interfere on soft body deformation, so bare in mind that the bodies mass must also be changed to have different deformation results. Valid values vary from 0.0 to 1.0. Only works on soft bodies and cloths.
Since
1.8

 

light_on [1 or 0]
 Set body to be affected by world's light or not. It won't be respected if world's property "all_bodies" is enabled. Disabled by default (0).
Since
1.8

 

z [body position in z axis]
 Defines body position in z axis. It's set to -15 by default.
Since
1.8

 

depth [body's depth]
 Defines body's depth (z axis). It's set to 30 by default.
Since
1.8

 

backface_cull [1 or 0]
 This enables backface culling (when the rotated part that normally faces the camera is facing away after being rotated etc.). This means that the object will be hidden when "backface culled".
Since
1.8

Group.Parts.Part.Description.Physics.Movement_Freedom

movement_freedom
physics {
...
movement_freedom {
linear: 1 1 0;
angular: 0 0 1;
}
}
..
 

The "movement_freedom" block consists of two blocks to describe all the allowed movements for a body. It's set by default to allow just 2D movement (linear moves on x and y axis and rotations on x-y plane).

 
linear [x-axis (1 or 0)] [y-axis (1 or 0)] [z-axis (1 or 0)]
 Block "linear" can be used to allow linear movements in the three axes. Allowed values are 0 or 1. Axes x and y are enabled by default.
Since
1.8

 

angular [x-axis (1 or 0)] [y-axis (1 or 0)] [z-axis (1 or 0)]
 Block "angular" can be used to allow angular movements around the three axes. Allowed values are 0 or 1. Z axis is enabled by default.
Since
1.8

Group.Parts.Part.Description.Physics.Faces

faces
physics {
...
faces {
face {
type: BOX_FRONT;
source: "groupname";
}
..
}
..
}
 

The "faces" block contains a list of one or more "face" blocks. The "faces" block is used to list the faces that compose the body. Each face is described by a "face" block, that associates a part to a specific face of the body's shape. Only the "faces" block declared in the "default" description will be considered.

 

type [FACE]
 Set the face (all caps) from among the available body's shape faces. Valid faces:
  • BOX_MIDDLE_FRONT
  • BOX_MIDDLE_BACK
  • BOX_FRONT
  • BOX_BACK
  • BOX_LEFT
  • BOX_RIGHT
  • BOX_TOP
  • BOX_BOTTOM
  • CLOTH_FRONT
  • CLOTH_BACK
  • CYLINDER_MIDDLE_FRONT
  • CYLINDER_MIDDLE_BACK
  • CYLINDER_FRONT
  • CYLINDER_BACK
  • CYLINDER_CURVED
  • SPHERE_FRONT
  • SPHERE_BACK

 

source [another group's name]
 This sets the group that is used as the object representing the physics body face.

Group.Parts.Part.Description.Map

map
description {
..
map {
perspective: "name";
light: "name";
on: 1;
smooth: 1;
perspective_on: 1;
backface_cull: 1;
alpha: 1;
rotation {
..
}
}
..
}
 

 
perspective [another part's name]
 This sets the part that is used as the "perspective point" for giving a part a "3d look". The perspective point should have a perspective section that provides zplane and focal properties. The center of this part will be used as the focal point, so size, color and visibility etc. are not relevant just center point, zplane and focal are used. This also implicitly enables perspective transforms (see the on parameter for the map section).

 

light [another part's name]
 This sets the part that is used as the "light" for calculating the brightness (based on how directly the part's surface is facing the light source point). Like the perspective point part, the center point is used and zplane is used for the z position (0 being the zero-plane where all 2D objects normally live) and positive values being further away into the distance. The light part color is used as the light color (alpha not used for light color). The color2 color is used for the ambient lighting when calculating brightness (alpha also not used).

Group.Parts.Part.Description.Map.Zoom

rotation
map {
..
zoom {
center: "name";
x: 1.0;
y: 1.0;
}
..
}
 

Zooms the part, optionally from the center on another part.

 
center [another part's name]
 This sets the part that is used as the center of zoom when zooming the part with this description. The part's center point is used as the zoom center when applying zoom from the x and y axes. If no center is given, the parts original center itself is used for the zoom center.

 

on [1 or 0]
 

This enables mapping for the part.

Defaults: 0

 

smooth [1 or 0]
 

This enable smooth map rendering. This may be linear interpolation, anisotropic filtering or anything the engine decides is "smooth". This is a best-effort hint and may not produce precisely the same results in all engines and situations.

Defaults: 1

 

alpha [1 or 0]
 

This enable alpha channel when map rendering.

Defaults: 1

 

backface_cull [1 or 0]
 

This enables backface culling (when the rotated part that normally faces the camera is facing away after being rotated etc.). This means that the object will be hidden when "backface culled".

Defaults: 0

 

perspective_on [1 or 0]
 

Enable perspective when rotating even without a perspective point object. This would use perspective set for the object itself or for the canvas as a whole as the global perspective with edje_perspective_set() and edje_perspective_global_set().

Defaults: 0

 

color [point] [red] [green] [blue] [alpha] or [point] "#[RR][GG][BB](AA)" or "#[R][G][B](A)"
 Set the color of a vertex in the map. Colors will be linearly interpolated between vertex points through the map. The default color of a vertex in a map is white solid (255, 255, 255, 255) which means it will have no affect on modifying the part pixels. Currently only four points are supported:
  • 0 - Left-Top point of a part.
  • 1 - Right-Top point of a part.
  • 2 - Left-Bottom point of a part.
  • 3 - Right-Bottom point of a part.
Color format:
  • [red] [green] [blue] [alpha]: one integer [0-255] for each RGBA channel, i.e. 255 0 0 255
  • "#[RR][GG][BB](AA)": string with two hex values per RGBA channel, i.e "#FF0000FF" or "#FF0000"
  • "#[R][G][B](A)": string with one hex value per RGBA channel, i.e "#F00F" or "#F00".
    In string format you can omit alpha channel and it will be set to FF.
Defaults: 255 255 255 255

 

zoom.x [X horizontal zoom to use]
 

This sets the zoom rate of the horizontal

Defaults: 1.0

 

zoom.y [Y vertical zoom to use]
 

This sets the zoom rate of vertical

Defaults: 1.0

Group.Parts.Part.Description.Map.Rotation

rotation
map {
..
rotation {
center: "name";
x: 45.0;
y: 45.0;
z: 45.0;
}
..
}
 

Rotates the part, optionally with the center on another part.

 
center [another part's name]
 This sets the part that is used as the center of rotation when rotating the part with this description. The part's center point is used as the rotation center when applying rotation around the x, y and z axes. If no center is given, the parts original center itself is used for the rotation center.

 

x [X degrees]
 

This sets the rotation around the x axis of the part considering the center set. In degrees.

Defaults: 0.0

 

y [Y degrees]
 

This sets the rotation around the y axis of the part considering the center set. In degrees.

Defaults: 0.0

 

z [Z degrees]
 

This sets the rotation around the z axis of the part considering the center set. In degrees.

Defaults: 0.0

Group.Parts.Part.Description.Perspective

perspective
description {
..
perspective {
zplane: 0;
focal: 1000;
}
..
}
 

Adds focal and plane perspective to the part. Active if perspective_on is true. Must be provided if the part is being used by other part as it's perspective target.

 
zplane [unscaled Z value]
 

This sets the z value that will not be scaled. Normally this is 0 as that is the z distance that all objects are at normally.

Defaults: 0

 

focal [distance]
 

This sets the distance from the focal z plane (zplane) and the camera - i.e. very much equating to focal length of the camera

Defaults: 1000

Group.Parts.Part.Description.Filter

filter
part {
type: [IMAGE or TEXT or PROXY or SNAPSHOT];
..
description {
..
filter {
code: "blend {}";
// or:
code: "filter_name";
source: "part1" "buf";
source: "part2" "otherbuf";
source: "part3";
..
data: "the_answer" "42";
data: "something" "anything";
data: "mycc" "color_class('my_color_class')";
..
}
// or:
text.filter: "blend {} -- ...";
..
}
}
 

Applies a series of image filters to a TEXT, IMAGE, PROXY or SNAPSHOT part. For more information, please refer to the page Evas filters reference.

 
filter.code [filter script or filter name]
 The argument to this field is the source code of a Lua script as defined here or a filter name defined in the Filters section.

 

filter.source [another part's name] [(optional) buffer name for filter program]
 Binds another part as an image source (like a proxy source) for a text or image filter operation. Optionally, a buffer name may be specified, so the same filter code can be used with different sources.

 

filter.data [name] [content]
 Pass extra data to the Lua filter program. All data passed will be strings, except for the special case of color classes:
filter.data: "mycc" "color_class('my_color_class')";
Those will appear to Lua as a table of the following structure:
-- Lua code
mycc = { r = 255, g = 0, b, a, r2, g2, b2, a2, r3, g3, b3, a3 }

Group.Parts.Part.Description.Params

params
description {
..
params {
int: "name" 0;
double: "other_name" 0.0;
string: "another_name" "some text";
bool: "name" 1;
choice: "some_name" "value";
}
..
}
 

Set parameters for EXTERNAL parts. The value overwrites previous definitions with the same name.

 

int [param_name] [int_value]
 Adds an integer parameter for an external object

 

double [param_name] [double_value]
 Adds a double parameter for an external object

 

string [param_name] [string_value]
 Adds a string parameter for an external object

 

bool [param_name] [bool_value]
 Adds an boolean parameter for an external object.

 

choice [param_name] [choice_string]
 Adds a choice parameter for an external object. The possible choice values are defined by external type at their register time and will be validated at runtime.

Group.Parts.Part.Description.Links

link
description {
..
link {
base: "edje,signal" "edje";
transition: LINEAR 0.2;
in: 0.5 0.1;
after: "some_program";
}
..
}
 The link block can be used to create transitions to the enclosing part description state. The result of the above block is identical to creating a program with action: STATE_SET "default"; signal: "edje,signal"; source: "edje";
Since
1.10
 

base [signal] [source]
 Defines the signal and source which will trigger the transition to this state. The source parameter is optional here and will be filled with the current group's default value if it is not provided.
Since
1.10

Group.Programs

programs
group {
programs {
..
program { }
program { }
program { }
..
}
}
 

The programs group contain one ore more program.

Group.Programs.Program

program
programs {
..
program {
name: "programname";
signal: "signalname";
source: "partname";
filter: "partname" "statename";
in: 0.3 0.0;
action: STATE_SET "statename" state_value;
transition: LINEAR 0.5;
target: "partname";
target: "anotherpart";
after: "programname";
after: "anotherprogram";
}
..
}
 

Programs define how your interface reacts to events. Programs can change the state of parts, react to events or trigger other events.

 

name [program name]
 Symbolic name of program as a unique identifier.

 

signal [signal name]
 Specifies signal(s) that should cause the program to run. The signal received must match the specified source to run. Signals may be globbed, but only one signal keyword per program may be used. ex: signal: "mouse,clicked,*"; (clicking any mouse button that matches source starts program). A list of global signal, that edje provide:
  • hold,on;
  • hold,off;
  • mouse,in;
  • mouse,out;
  • mouse,pressed,in;
  • mouse,pressed,out;
  • mouse,down,N: where N - mouse button number;
  • mouse,down,N,double: where N - mouse button number;
  • mouse,down,N,triple: where N - mouse button number;
  • mouse,up,N: where N - mouse button number;
  • mouse,clicked,N: where N - mouse button number;
  • mouse,move;
  • mouse,wheel,N,M: where N - the direction (by default is 0), M - 1 if wheel scrolled up and -1 if down;
  • drag,start;
  • drag;
  • drag,stop;
  • focus,part,in;
  • focus,part,out.

 

source [source name]
 Source of accepted signal. Sources may be globbed, but only one source keyword per program may be used. ex: source: "button-*"; (Signals from any part or program named "button-*" are accepted).

 

filter [part] [state]
 Filter signals to be only accepted if the part [part] is in state named [state]. Only one filter per program can be used. If [part] is not given, the source of the event will be used instead.

 

in [from] [range]
 

Wait 'from' seconds before executing the program. And add a random number of seconds (from 0 to 'range') to the total waiting time.

Defaults: 0.0 0.0

 

action [type] (param1) (param2) (param3) (param4)
 

Action to be performed by the program. Valid actions are:

  • STATE_SET "state name" (state value)
  • ACTION_STOP
  • SIGNAL_EMIT "signalname" "emitter"
  • DRAG_VAL_SET 0.5 0.0
  • DRAG_VAL_STEP 1.0 0.0
  • DRAG_VAL_PAGE 0.0 0.0
  • FOCUS_SET ("seat")
  • FOCUS_OBJECT ("seat")
  • PARAM_COPY "src_part" "src_param" "dst_part" "dst_param"
  • PARAM_SET "part" "param" "value"
  • PLAY_SAMPLE "sample name" speed (channel)
  • PLAY_TONE "tone name" duration_in_seconds( Range 0.1 to 10.0 )
  • PLAY_VIBRATION "sample name" repeat (repeat count)
  • PHYSICS_IMPULSE 10 -23.4 0
  • PHYSICS_TORQUE_IMPULSE 0 2.1 0.95
  • PHYSICS_FORCE -20.8 0 30.85
  • PHYSICS_TORQUE 0 0 4.8
  • PHYSICS_FORCES_CLEAR
  • PHYSICS_VEL_SET 40.9 0 0
  • PHYSICS_ANG_VEL_SET 12.4 0 0.66
  • PHYSICS_STOP
  • PHYSICS_ROT_SET 0.707 0 0 0.707

Only one action can be specified per program.

PLAY_SAMPLE (optional) channel can be one of:

  • EFFECT/FX
  • BACKGROUND/BG
  • MUSIC/MUS
  • FOREGROUND/FG
  • INTERFACE/UI
  • INPUT
  • ALERT

 

transition [type] [length] (interp val 1) (interp val 2) (option)
 

Defines how transitions occur using STATE_SET action.
Where 'type' is the style of the transition and 'length' is a double specifying the number of seconds in which to preform the transition.
Valid types are:

  • LIN or LINEAR
  • SIN or SINUSOIDAL
  • ACCEL or ACCELERATE
  • DECEL or DECELERATE
  • ACCEL_FAC or ACCELERATE_FACTOR
  • DECEL_FAC or DECELERATE_FACTOR
  • SIN_FAC or SINUSOIDAL_FACTOR
  • DIVIS or DIVISOR_INTERP
  • BOUNCE
  • SPRING
  • CUBIC_BEZIER

ACCEL_FAC, DECEL_FAC and SIN_FAC need the extra optional "interp val 1" to determine the "factor" of curviness. 1.0 is the same as their non-factor counterparts, where 0.0 is equal to linear. Numbers higher than one make the curve angles steeper with a more pronounced curve point.

DIVIS, BOUNCE and SPRING also require "interp val 2" in addition to "interp val 1".

DIVIS uses val 1 as the initial gradient start (0.0 is horizontal, 1.0 is diagonal (linear), 2.0 is twice the gradient of linear etc.). val 2 is interpreted as an integer factor defining how much the value swings "outside" the gradient only to come back to the final resting spot at the end. 0.0 for val 2 is equivalent to linear interpolation. Note that DIVIS can exceed 1.0

BOUNCE uses val 2 as the number of bounces (so its rounded down to the nearest integer value), with val 1 determining how much the bounce decays, with 0.0 giving linear decay per bounce, and higher values giving much more decay.

SPRING is similar to bounce, where val 2 specifies the number of spring "swings" and val 1 specifies the decay, but it can exceed 1.0 on the outer swings.

Valid options are:

  • CURRENT causes the object to move from its current position. Can be used as the last parameter of any transition type. (since 1.1.0)

 

target [target]
 Program or part on which the specified action acts. Multiple target keywords may be specified, one per target. SIGNAL_EMITs can have targets.

 

targets [target1] [target2] [target3] ...
 Programs or parts upon which the specified action will act. Multiple target or targets keywords may be specified. SIGNAL_EMITs can have targets.
Since
1.10

 

target_groups groups [group1] [group2] [group3] ...
 Groups of programs or parts upon which the specified action will act. Multiple 'groups', 'target', and 'targets' keywords may be specified. SIGNAL_EMITs can have targets.
Since
1.10

 

after [after]
 Specifies a program to run after the current program completes. The source and signal parameters of a program run as an "after" are ignored. Multiple "after" statements can be specified per program.

 

api [name] [description]
 Specifies a hint to let applications (or IDE's) know how to bind things. The parameter name should contain the name of the function that the application should use, and description describes how it should be used.

Group.Programs.Program.Sequence

sequence
..
program {
name: "programname";
signal: "signalname";
source: "partname";
filter: "partname" "statename";
in: 0.3 0.0;
action: STATE_SET "statename" state_value;
transition: LINEAR 0.5;
targets: "partname" "anotherpart";
sequence {
action: SIGNAL_EMIT "signal" "source";
action: STATE_SET "somestate";
transition: SINUSOIDAL 0.4;
targets: "partname" "anotherpart";
signal: "also,runs"; source: "on,signals";
name: "runs_after_programname";
action: STATE_SET "someotherstate";
transition: DECELERATE 4.0;
in: 0.2 0.0;
targets: "partname" "anotherpart";
name: "runs_after_runs_after_programname";
after: "coolprogram1337";
filter: "partname" "goodstate";
}
}
..
 Sequences allow quick, easy chaining of programs. Each "action" keyword within the sequence will start a new program definition. Programs defined in sequences can be used as regular programs in every way, but they will automatically set up sequence chains which run after the originating program. After the sequence block is closed, the original program can continue to be modified. Scripts are allowed within sequences: each script block will be treated as a newly sequenced program.
Since
1.10

Group.Physics

physics
group {
..
physics {
world {
..
}
}
..
}
 

The "physics" block consists of blocks related to physics but not to configure a body. By now, it only has a "world" block.

Group.Physics.World

world
physics {
world {
gravity: 0 294 0;
rate: 30;
z: -50;
depth: 100;
}
}
 

The "world" block configures the physics world. It's the environment where the part's bodies will be simulated. It can be used to customize gravity, rate, depth and others.

 
gravity [x-axis] [y-axis] [z-axis]
 Three double values defining the gravity vector. Each one is the component of this same vector over each axis. Its unit is Evas Coordinates per second ^ 2. The default value is 0, 294, 0, since we've a default rate of 30 pixels.
Since
1.8

 

rate [rate pixels / meter]
 Set rate between pixels on evas canvas and meters on physics world. It will be used by automatic updates of evas objects associated to physics bodies. By default rate is 30 pixels per meter.
Since
1.8

 

depth [depth in pixels]
 World's depth, in pixels. It's only relevant if boundaries are used, since their size depends on this. By default world's depth is 100 pixels.
Since
1.8

 

z [world's front border position]
 Position in z axis, in pixels. It's only relevant if boundaries are used, since their position depends on this. By default world's z is -50 pixels.
Since
1.8