Commit Graph

157 Commits

Author SHA1 Message Date
Iván Briano 941adf033b Edje: Color class documentation
By: ceolin <flavio.ceolin@profusion.mobi>



SVN revision: 62065
2011-08-03 18:57:38 +00:00
Iván Briano fd7f67a183 Some more docs for the edje_external c api
SVN revision: 62064
2011-08-03 18:46:40 +00:00
Rafael Antognolli 2e19771abf edje/box - Document edje box API (just fixes) and add example.
SVN revision: 62017
2011-08-02 17:14:29 +00:00
Gustavo Lima Chaves d55a77bae9 [edje] Documentation for the following:
- edje_object_message_handler_set
 - edje_object_message_send
 - edje_object_signal_callback_add
 - edje_object_signal_callback_del_full
 - edje_object_signal_emit



SVN revision: 61966
2011-08-01 20:15:23 +00:00
Gustavo Lima Chaves 67111bacac Edje: edje table documentation.
By: ceolin <flavio.ceolin@profusion.mobi>



SVN revision: 61965
2011-08-01 20:04:17 +00:00
Jonas M. Gastal c509e668d4 Edje: fix edje swallow doc.
SVN revision: 61964
2011-08-01 19:49:28 +00:00
Jonas M. Gastal b646554b61 Edje: edje text parts documentation.
SVN revision: 61963
2011-08-01 19:49:18 +00:00
Jonas M. Gastal 2ac91736c2 Edje: edje swallow documentation.
SVN revision: 61905
2011-07-29 16:47:06 +00:00
Gustavo Lima Chaves dec8c8dcdb [edje] First commented example, along with infra to build it.
SVN revision: 61903
2011-07-29 16:31:05 +00:00
Gustavo Lima Chaves 6bfd3ddd87 [edje] Documentation bumps on the following:
- edje_init
     - edje_shutdown
     - edje_object_add
     - edje_object_file_get
     - edje_object_file_set
     - edje_object_load_error_get
     - edje_load_error_str
     - edje_object_data_get
     - edje_object_part_exists
     - edje_object_part_geometry_get
     - edje_object_part_object_get
     - edje_object_size_max_get
     - edje_object_size_min_calc
     - edje_object_size_min_get
     - edje_object_size_min_restricted_calc
     - edje_object_parts_extends_calc
     - edje_object_scale_get
     - edje_object_scale_set
     - edje_scale_get
     - edje_scale_set



SVN revision: 61902
2011-07-29 16:30:12 +00:00
Daniel Juyung Seo fb6ca14911 edje Edje.h: Fixed documentation.
Fixed wrong placed documentations. Removed some blank lines and added
@brief tag. Many @brief tags are still missing.


SVN revision: 61737
2011-07-26 10:09:16 +00:00
Daniel Juyung Seo 72bcec17b9 edje/ecore/eina: Updated documentaton for version number.
I did this manually. But it'll be good if someone can automate this.
It's a painful for busy developers.


SVN revision: 61104
2011-07-07 04:58:34 +00:00
WooHyun Jung 7a205c0ef6 edje : Password's last char show feature supported. This patch is made
by Shilpa.


SVN revision: 60858
2011-06-30 05:31:08 +00:00
Carsten Haitzler 87ec659bc6 use the ecore pos map call for edje as opposed to do it yourself. this
also opens up new position mappings like factored accel/decel/sin,
divis, bounce and spring! :) documentation provided.



SVN revision: 59449
2011-05-16 13:16:34 +00:00
Tom Hacohen 30847d0bdc Edje text: Added edje_object_part_text_append.
SVN revision: 59407
2011-05-15 15:57:38 +00:00
Daniel Juyung Seo 1cdcceff91 Edje Edje.h: Removed trailing whitespaces.
SVN revision: 58615
2011-04-13 08:10:35 +00:00
Carsten Haitzler 0b0d51c5cf add text effect shadow direction support.
SVN revision: 58548
2011-04-11 12:08:03 +00:00
Carsten Haitzler dfd9ceb122 cleanup h a bit.
SVN revision: 58480
2011-04-08 08:00:28 +00:00
Carsten Haitzler 5cb52a006b missed some doxy
SVN revision: 58479
2011-04-08 07:52:46 +00:00
Carsten Haitzler 5829d373c9 doxy -> .h
SVN revision: 58478
2011-04-08 07:45:46 +00:00
Daniel Juyung Seo 0c29d7d307 Edje Edje.h: Fixed formatting. Removed trailing whitespaces.
SVN revision: 58465
2011-04-07 23:57:06 +00:00
Daniel Juyung Seo e085bfac30 Edje Edje.h: Removed trailing whitespaces.
SVN revision: 58292
2011-04-03 09:29:40 +00:00
Cedric BAIL d0810de637 edje: add PROXY part.
example:

collections {
   group {
      name: "main";
      parts {
         part {
            name: "sub1";
            type: GROUP;
            source: "sub1";

            description {
               rel1.relative: 0.5 0.5;
               rel2.relative: 1.0 1.0;
            }
         }

         part {
            name: "pro2";
            type: PROXY;

            description {
               rel1.relative: 0.0 0.5;
               rel2.relative: 0.5 1.0;
               source: "sub1";
               color: 255 0 0 128;

               map {
                  on: 1;
                  smooth: 1;
                  rotation {
                     z: 30;
                  }
               }
            }
         }
      }
   }

   group {
      name: "sub1";
      parts {
         part {
            name: "rect";
            type: RECT;

            description {
               rel1.relative: 0.0 0.0;
               rel2.relative: 0.5 0.5;
               color: 255 0 0 255;

               map {
                  on: 1;
                  smooth: 1;
                  rotation {
                     z: -30;
                  }
               }
            }
         }

         part {
            name: "pro1";
            type: PROXY;

            description {
               rel1.relative: 0.5 0.0;
               rel2.relative: 1.0 0.7;
               color: 128 128 0 128;
               source: rect;
            }
         }
      }
   }
}




SVN revision: 57694
2011-03-11 17:46:29 +00:00
Tom Hacohen 7a66e72df5 Edje entry: Added edje_object_part_text_cursor_pos_get/set.
This adds the ability to control the text position of an edje_entry.
Patch by Jihoon Kim.

SVN revision: 57365
2011-02-27 10:25:22 +00:00
Tom Hacohen 5e33a75553 Edje: Added mirrored mode. Mirrored mode is used for UI-mirroring. It lets you mirror edje objects automatically (it also sends signals to the .edc code so you can do tweaks if you want), no need to create a special theme just for rtl layouts.
This is controlled by the two added API functions.
The changes in Elementary that utilize these functions will be committed soon.

SVN revision: 56635
2011-02-01 13:26:49 +00:00
Vincent Torri 49815da5c9 fix a bit doxy
SVN revision: 55819
2011-01-03 08:10:33 +00:00
Vincent Torri aad53ed90d do not include some headers if vc++ is used
SVN revision: 55547
2010-12-14 05:56:46 +00:00
Iván Briano 3d6e44bd91 And as discussed on IRC, for the sake of API consistency (and we'll eventually need it), also del_full() for the text filters.
And since I'm there, some documentation.


SVN revision: 54003
2010-10-29 18:15:09 +00:00
Iván Briano db43f575ef B-B-B-B-BETA BREAKER!
As for Evas callbacks, let's have a del_full() version for the Edje signals.


SVN revision: 53997
2010-10-29 17:14:55 +00:00
Carsten Haitzler 57d15d3ef8 actually hook in filter callbacks - have 2 types and pass in enum to
each as to what text they are seeing to filter. fix up other typdef
uses.



SVN revision: 52975
2010-10-02 03:34:00 +00:00
Gustavo Sverzut Barbieri d93ac79c38 Dynamic choices in edje EXTERNALS.
Sometimes the options can just be known during runtime, like available
video engines for emotion.

This goes in now as it will avoid further API breaks, so before Edje 1.0



SVN revision: 52874
2010-09-29 03:01:17 +00:00
Gustavo Sverzut Barbieri d724381684 new flags to external parameters.
These are yet-another hint, they are not enforced as documentation
already said, yet they will be useful for tools (ie: editje) to
explain to users if parameter will be set only once, or provides no
getter and such.

This will save future ABI breaks, that's why I want it in 1.0 :-)



SVN revision: 52873
2010-09-29 02:42:50 +00:00
Carsten Haitzler 737556b8bb more pi cleantyp -> typedef.
SVN revision: 52590
2010-09-22 13:35:47 +00:00
Carsten Haitzler af2651748c int -> enum.
SVN revision: 52589
2010-09-22 13:27:09 +00:00
Brett Nash 4bf9ee3df3 Merge branch 'elmdnd'
Conflicts:
	trunk/TMP/st/elementary/.gitignore

SVN revision: 51935
2010-09-07 06:56:16 +00:00
Carsten Haitzler 5e36f9979b nuke old obsolete lua stuff - except edje_lua.c. let it dangle with
the actual lua code in it entirely not being compiled just as reference until
it's killed off.



SVN revision: 51622
2010-08-25 01:09:44 +00:00
Carsten Haitzler 5c5bab8886 edje -> knocked off too for 1.0.0 alpha
SVN revision: 51177
2010-08-16 09:08:49 +00:00
Jonathan Atton 6e1ada9850 Edje: now we can refer to the content of a external type
SVN revision: 50730
2010-08-01 17:27:31 +00:00
Carsten Haitzler 2136ee4451 edje -> version info
SVN revision: 49281
2010-05-29 08:05:11 +00:00
Carsten Haitzler cc621a2685 not fully done string insert approval cb for entry
SVN revision: 49276
2010-05-29 06:40:56 +00:00
Tiago Rezende Campos Falcao 9317ce25ac INT_MAX need limits.h. By Raphael Kubo
SVN revision: 49117
2010-05-21 22:53:41 +00:00
kiwi 0bc9b1cf55 set EDJE_EXTERNAL_DOUBLE_UNSET to DBL_MAX instead of HUGE_MAX, so that it's a constant on OpenBSD.
set EDJE_EXTERNAL_INT_UNSET to INT_MAX for consistency.

that fixes compilation on OpenBSD and closes ticket #540
ok vtorri


SVN revision: 49112
2010-05-21 19:28:33 +00:00
Carsten Haitzler 685fadf869 item provider callback... add!
SVN revision: 48329
2010-04-26 14:55:45 +00:00
Gustavo Sverzut Barbieri 004df4045f Get a table element with its coordinates.
By: Hugo Camboulive <hugo.camboulive@gmail.com>


SVN revision: 48088
2010-04-17 20:28:22 +00:00
Gustavo Sverzut Barbieri 651070fc1d new program action PARAM_SET, complements PARAM_COPY.
Sometimes you want to catch an action like "clicked" from elm/button
or "mouse,clicked,1" from a regular part and want to set a property
like "play" on some object. In this case there is no source property
to copy, so setting the destination makes sense. This was possible
with Embryo, and now it is with regular "program".

Sample EDC:
{{{

   // test.edc, compile with edje_cc and run with edje_player

   externals {
      external: "elm";
   }
   collections {
      group { name: "main";
         parts {
            part { name: "bg"; type: RECT;
               description { state: "default" 0.0;
                  color: 255 255 255 255;
               }
            }
            part { name: "button"; type: EXTERNAL;
               source: "elm/button";
               description { state: "default" 0.0;
                  rel2.relative: 1.0 0.5;
               }
            }
            part { name: "display"; type: TEXT;
               description { state: "default" 0.0;
                  color: 0 128 0 255;
                  rel1.relative: 0.0 0.5;
                  rel2.relative: 0.5 1.0;
                  text { font: "Sans"; size: 16; }
               }
            }
            part { name: "entry"; type: EXTERNAL;
               source: "elm/scrolled_entry";
               description { state: "default" 0.0;
                  rel1.relative: 0.5 0.5;
                  params.bool: "editable" 0;
               }
            }
            programs {
               program {
                  signal: "clicked";
                  source: "button";
                  action: PARAM_SET "display" "text" "hello world!";
               }
               program {
                  signal: "clicked";
                  source: "button";
                  action: PARAM_SET "entry" "text" "bla!";
               }
            }
         }
      }
   }

}}}



SVN revision: 47635
2010-03-31 20:48:51 +00:00
Gustavo Sverzut Barbieri 0b231e99ce Add CHOICES to EXTERNAL support.
Choices are useful to represent enumerations and restricted set of
elements to user. Usually this is displayed in hoversel/comboboxes.



SVN revision: 47570
2010-03-29 21:51:40 +00:00
Gustavo Sverzut Barbieri 1bb3339188 another useful function
SVN revision: 47564
2010-03-29 19:32:45 +00:00
Gustavo Sverzut Barbieri acadc5e210 export useful function.
SVN revision: 47562
2010-03-29 18:44:42 +00:00
Gustavo Sverzut Barbieri 71d603c360 new program action PARAM_COPY, awesome crazy stuff! :-)
Edje got a new program action called PARAM_COPY in the form:

   action: PARAM_COPY "src_part" "src_param" "dst_part" "dst_param";

This will copy the parameter "src_param" from part "src_part" to
parameter "dst_param" of part "dst_part".

So far so good, why the "crazy" in the first line? Because this also:
  * do type conversion!
  * set properties of native parts, not just EXTERNAL!

The type conversion allows one to get an integer and display that in a
text property, or get an string and convert into a float.

The set of native parts is quite simple, basically a map of Edje.h
edje_object_part_*_set(). With that one can set the string to be used
by a TEXT, or set drag page/step/size/value! (page/step increments are
not supported at the moment, if it is worth, they may be supported in
future).

Sample EDC:

{{{

  // test.edc, compile with edje_cc and run with edje_player

   externals {
      external: "elm";
   }
   collections {
      group { name: "main";
         parts {
            part { name: "bg"; type: RECT;
               description { state: "default" 0.0;
                  color: 255 255 255 255;
               }
            }
            part { name: "entry"; type: EXTERNAL;
               source: "elm/scrolled_entry";
               description { state: "default" 0.0;
                  rel2.relative: 1.0 0.5;
               }
            }
            part { name: "display"; type: TEXT;
               description { state: "default" 0.0;
                  color: 0 128 0 255;
                  rel1.relative: 0.0 0.5;
                  text { font: "Sans"; size: 16; }
               }
            }
            programs {
               program {
                  signal: "changed";
                  source: "entry";
                  action: PARAM_COPY "entry" "text" "display" "text";
               }
            }
         }
      }
   }

}}}



SVN revision: 47500
2010-03-27 01:26:10 +00:00
Gustavo Sverzut Barbieri cfecbc912b Edje EXTERNAL API break, for good.
I'm now introducing a couple of goodies to make externals more useful,
they are:

 * add: extra parameter with the part name. This may be used by
   external objects to emit signals in the name of that part.

 * param_set/param_get: set parameters at runtime, given their names
   and types. This avoids requiring users to get the actual object and
   call methods. This abstraction is also good because it let one uses
   Elementary without even linking to it ;-) (this have limits, like
   complex types are not supported).  Right now this is just exposed
   to C, but goal is to have it exposed in Embryo and Lua as well.

 * translate: new method to translate previously strings that are
   specified statically, such as the parameters names.


Four new functions got added to the Edje API:

 * edje_object_part_external_object_get() so we don't have to abuse
   edje_object_part_swallow_get()

 * edje_object_part_external_param_set() and
   edje_object_part_external_param_get() that call the external type's
   functions.

 * edje_external_param_type_str() to convert types to string and
   provide nicer debugs :-)


TODO:
  * expose external_param_set()/external_param_get() to Embryo and Lua.




SVN revision: 47456
2010-03-25 18:05:42 +00:00