enlightenment/src/modules/conf_desks
Viktor Kojouharov 648d75caab Larger backgrounds can now be set to scroll whenever a E changes between desks. Kind of like a transition, but uses only one (the first desk's), larger wallpaper instead of several wallpapers for all desks, and it overrides the transition settings if activated.
The option can currently be activated from Virtual Desktops Settings -> Advanced. A better home and preview would be better for these settings.

In more detail, this option can make a wallpaper, larger than the geometry of the zone, scroll appropriately with each desk change. Consider a nice panorama picture, which is as wide as the total desks' width. Then, at most, E will scroll the background by 1 / (number of desks) for each desk change. The direction of the scrolling is dependent on the desk change itself. Also, the user can specify a coefficient of maximum scrolling for each axis. If the coefficient is 0, the wallpaper will not move.

More advanced animations can be constructed with edje. The data item "directional_freedom" "(1|0) (1|0)" can toggle the actual wallpaper scrolling done by E for each axis. A message with the current x/y position, panning w|h, and zone w|h is sent to the background edje with each desk change animation tick. An example embryo script that handles the message, and changes a hypothetical "a1" part in the "e/desktop/background" group is shown below:

         public message(Msg_Type:type, id, ...) {
            if (type == MSG_INT_SET) {
               new x = getarg(2);
               new y = getarg(3);
  //	     new max_x = getarg(4);
  //	     new max_y = getarg(5);
  //	     new w = getarg(6);
  //	     new h = getarg(7);
               custom_state(PART:"a1", "default", 0.0);
               set_state_val(PART:"a1", STATE_FILL_POS, 0.0, 0.0, -x / 4, -y / 4);
               set_state(PART:"a1", "custom", 0.0);
            }
         }




SVN revision: 40543
2009-05-07 18:39:55 +00:00
..
.cvsignore and move yet more config dialogs to modules 2007-07-29 02:12:51 +00:00
Makefile.am Correctly include eina and fix pkg-config description. 2008-10-15 10:03:45 +00:00
e-module-conf_desks.edj Module icons... most of them. Some still need some love, but Ill get around to that. Shout out to Sachiel! 2009-02-05 14:34:01 +00:00
e_int_config_desks.c Larger backgrounds can now be set to scroll whenever a E changes between desks. Kind of like a transition, but uses only one (the first desk's), larger wallpaper instead of several wallpapers for all desks, and it overrides the transition settings if activated. 2009-05-07 18:39:55 +00:00
e_int_config_desks.h and move another chunk of config dialogs into modules 2007-07-28 03:50:14 +00:00
e_mod_main.c More icon works, this commit include changes to the icons on the desktop. 2009-03-08 23:09:48 +00:00
e_mod_main.h boys and girls... animals and vegetables... pokemon and spatial anomolies 2007-10-31 12:21:02 +00:00
module.desktop.in french translations for desktop files 2009-02-03 17:26:54 +00:00