efl.pack_linear: Clarify behavior and docs
authorYeongjong Lee <yj34.lee@samsung.com>
Fri, 12 Apr 2019 07:03:28 +0000 (07:03 +0000)
committerYeongjong Lee <yj34.lee@samsung.com>
Wed, 24 Apr 2019 05:24:47 +0000 (14:24 +0900)
commit9ff6cd61b7e53e886e23e87ad73bd31987a8a14e
tree7a6e80d6e3df7da50152e352979a3201c6d83743
parentba550d9696893a50abef4cadeac27a3acf759c5a
efl.pack_linear: Clarify behavior and docs

Some APIs accept both positive and negative indices when accessing items.
This patch changes the documentation for the lower limit from `-(count - 1)` to
`-count` to allow accessing the very first item.

For example (content_count = 5):
|              |first item|  |  |  |last item|
|positive index|       0  | 1| 2| 3|    4    |
|negative index|      -5  |-4|-3|-2|   -1    |

If negative indices are limited to be >= -4 the first item cannot be accessed
using negative indices.

Also, range limit of `pack_at` is removed for usability.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Reviewed-by: YeongJong Lee <yj34.lee@samsung.com>
Differential Revision: https://phab.enlightenment.org/D8433
src/lib/efl/interfaces/efl_pack_linear.eo