Edje Menu


Program

program
{
   // name of the program
   name: "programname";
   // signals which trigger the program
   signal: "signalname";
   // filter incoming signals depending on the sender name
   source: "partname";
   // filter incoming signals depending on the part's state
   filter: "partname" "statename";
   // delay the program by X seconds plus a random time between 0 and Y
   in: 0.3 0.0;
   // action to perform
   action: STATE_SET "statename" state_value;
   // if action is STATE_SET, define a transition from the current to the target state
   transition: LINEAR 0.5;
   // if action is SIGNAL_EMIT, the name of the part which will receive the signal
   target: "partname";
   // run another program after the current one is done
   after: "programname";
   after: "anotherprogram";
}

Program

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

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 and 0.0 is equal to linear. Numbers higher than 1.0 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 before going 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 it is rounded down to the nearest integer value), with [val 1] determining how much the bounce decays; 0.0 gives linear decay per bounce and higher values give much more decay.

SPRING is similar to bounce; [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:


Edje Menu