Tom Hacohen
4c8d03894c
Changed Eo class names to be consistent. #2
...
All the class names are now of the format: Elm_Type_Subtype_Extra
Thanks to Yakov for pointing out I forgot a few and for giving me a nice
list.
2013-11-07 14:30:22 +00:00
Tom Hacohen
2f1e1554e5
Changed Eo class names to be consistent.
...
All the class names are now of the format: Elm_Type_Subtype_Extra
2013-11-07 11:44:22 +00:00
Carsten Haitzler
c09a0d9ea3
elm scroller - try a simpler approach - animator queues idle enterer
...
this allows the idle enterer to pick up all prior stored events like
move coords etc. just before going idle (and rendering).
2013-10-25 17:00:25 +09:00
Carsten Haitzler
8dab5200ea
Revert "elm scroller - also allow animator still to ALSO drive scroll for smoothing"
...
This reverts commit e52ddca9b0d424c5e1dfeeec501f4a95544e3dbb.
This reverts commit 7a7ea7d61e8a321dcd2046d07a0473e57a87d8b2.
2013-10-25 17:00:10 +09:00
Carsten Haitzler
498747b16a
elm scroller - also allow animator still to ALSO drive scroll for smoothing
2013-10-22 11:01:00 +01:00
Carsten Haitzler
c199bf7b35
scrollable - try using a job for move events for scrollinh instead of animator
2013-10-22 08:12:59 +01:00
Daniel Juyung Seo
6397761c6a
elm_test: Fixed formatting. tab to space.
...
Changed tab to space before working on the code.
Kinda surprised by the number of tabs we had.
2013-10-14 19:12:32 +09:00
ChunEon Park
787eddd3c4
elementary/scroller - fix the scroller to locate the current page correctly in case that the scroller is suddenly resized and then the drag couldn't capture the page location.
2013-10-10 19:58:42 +09:00
ChunEon Park
77d336b3fb
elementary/scroller - --duplicated compare.
2013-10-09 23:29:35 +09:00
ChunEon Park
bcba80bbc3
elementary/scroller - set the NULL to not access dangling pointer after deleting animator.
2013-10-06 23:35:51 +09:00
Daniel Juyung Seo
e756f97dae
elm: Longwaited trailing white space removal. Clean elm up!
2013-09-30 22:15:01 +09:00
ChunEon Park
ff91e90118
elementary/scroller - null set properly.
2013-09-27 22:27:38 +09:00
Jaehwan Kim
fab1a003fc
viewport_size_get func doesn't need any more in that code.
2013-07-03 19:31:12 +09:00
Jaehwan Kim
1c40d6cbab
If the flick distance is more than thumbscroll_flick_distance_tolerance, it become same with thumbscroll_flick_distance_tolerance.
2013-07-03 19:25:24 +09:00
Jaehwan Kim
504f59f174
Change the method to calculate a distance which be scrolled from linear to sine curve.
...
And add the configuration thumbscroll_flick_distance_tolerance. It's the max flick distance.
2013-07-03 18:43:19 +09:00
Jaehwan Kim
c25006bd20
Fix the timing which the content_viewport_resize callback is called.
...
It is proper when the EVAS_CALLBACK_RESIZE is called instead of _pan_smart_resize.
When the _pan_smart_resize is called, the geometry of an object is not changed.
So the widget use the signal can miss-calculate the size.
2013-07-01 20:17:30 +09:00
Jaehwan Kim
577166b06e
Remove Warning
2013-06-30 15:30:06 +09:00
Jaehwan Kim
d418b27b96
Add the elm_scrollable_interface_content_viewport_resize_cb_set.
...
When the viewport is resized, the enrolled function is called.
2013-06-30 14:42:34 +09:00
Jaehwan Kim
cb8c288f42
Fix elm_scroller_page_show bug. It have to save the wanted values to show the wanted page.
2013-06-19 23:31:36 +09:00
Jaehwan Kim
a9bd591af9
In case of scroll in scroll, the child scroller have to bounce if parents don't have a bounce.
2013-06-18 16:28:06 +09:00
Gustavo Lima Chaves
515b1ec64a
Better logic for elm_scroller_current_page_get() while scrolling/dragging.
...
We still report the topmost/leftmost page, but DURING animations we
return which of the competing pages on the top, left edge get the
majority of their regions in the viewport.
2013-06-17 13:23:45 -03:00
Gustavo Lima Chaves
8e644dd21e
Fix elm_scroller_child_size_get() to work all scrollables.
...
My bad on this one, it was never made to act like so since my
new widget schema.
2013-06-13 18:09:04 -03:00
Rafael Antognolli
678c41b289
elm/scrollable: Fix count of mouse move events.
...
It should use just the events that really happened (after the mouse move
starting timestamp).
2013-06-06 14:24:37 -03:00
Rafael Antognolli
cc19e3948d
elm/scrollable: Avoid division by zero during scroll.
...
When several mouse move events arrive with the same timestamps, the
calculation done to get an average of movement will try to divide things
by zero. This fix will make it ignore this calculation and just go back
to assuming that there's only one last move event.
Such behavior can happen on wayland backend, when using the X11 backend
for Weston, since it will process several X events in one loop iteration
and send all of them with the same timestamp.
2013-06-06 14:24:37 -03:00
Rafael Antognolli
14cc29a188
elm/scrollable: Fix typo that came with ELM_FREE_FUNC.
2013-06-06 14:24:37 -03:00
Daniel Juyung Seo
fcf5059148
elm_interface_scrollable.c: initialize more local variables spotted by valgrind.
2013-05-30 23:52:08 +09:00
Daniel Juyung Seo
4cea5af2dc
elm_interface_scrollable.c: ELM_SAFE_FREE adoption.
...
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:58:29 +09:00
Daniel Zaoui
a40bed2a38
Elementary: Fix scroller APIs to be usable by all the widgets using the
...
scrollable interface.
2013-05-24 16:31:25 +03:00
Daniel Juyung Seo
ef8701a173
elm: more ELM_FREE_FUNC cleanups.
2013-05-24 00:58:38 +09:00
Gustavo Lima Chaves
d8be9d6cf1
Scroller can me made to snap to pages on scrolling now.
2013-05-17 15:37:37 -03:00
Flavio Ceolin
d53cc519ff
Welcome a new smart callback for scrollables -- page,changed.
2013-05-15 18:57:15 -03:00
cabelitos
52597125f7
Adding a new scroller API, to block its movements (by user input).
...
With this new API the user can block movements on X axis, Y Axis or
both. I was left with no option but to come up with this, side by side
with elm_object_scroll_freeze_push(), elm_object_scroll_hold_push()
and elm_object_scroll_lock_x_set() (or
elm_object_scroll_lock_y_set()), once all of these will act on *parent
and/or child* widgets too, making those useless for any pratical use
of scroll blocking. Here's a sane, new option, enjoy it.
2013-05-10 11:07:10 -03:00
Cedric Bail
c929b33052
elementary: properly sanitize headers order.
2013-05-03 16:07:06 +09:00
Daniel Zaoui
187d6bf8de
Elementary: replace eo_data_get for objects data referencing.
2013-05-01 11:04:09 +03:00
Jaehwan Kim
4ff2af7335
The momentum animation time is changed as the amount of flick.
2013-04-30 22:06:28 +09:00
Jaehwan Kim
0bde066596
Add the config elm_scroll_smooth_start_enable.
...
There's no tick when scroller starts scroll if it's set.
2013-04-30 16:48:18 +09:00
Hosang Kim
6883e2a2b1
[Scroller] changed acceleration constant values
2013-04-17 21:56:02 +09:00
Daniel Juyung Seo
7df9b96ed5
elm_interface_scrollable.c: fixed formatting.
2013-04-16 15:50:58 +09:00
Jaehwan Kim
274a51183d
Fix the policy is not changed when the theme is changed.
...
The "reload" signal from edc is necessary always.
2013-04-16 13:27:55 +09:00
Jaehwan Kim
0337f1ad68
Fix the calculation double type number.
...
Round off to the nearest whole number.
2013-04-10 20:25:35 +09:00
Jaehwan Kim
87fc1389b9
Add the API elm_scroller_single_direction_set/get.
...
This sets how the content is scrolled.
2013-04-10 20:06:41 +09:00
Jaehwan Kim
c8c06b49a1
Change the location of proto type.
2013-04-10 13:36:04 +09:00
Jaehwan Kim
f5029ca33c
Fix the region_show/region_bring_in don't have a limit at a paging movement.
2013-04-10 11:22:52 +09:00
Jaehwan Kim
620dee054b
Fix the scroller show by a page if the page size is set and the region_bring_in or region_show is called.
2013-04-08 14:04:33 +09:00
Jaehwan Kim
d52d3f756b
I changed the acceleration number by mistake. Turn back it.
2013-04-08 09:26:36 +09:00
Jaehwan Kim
a1893332da
Quit the scroll animator if the scroller don't have a bounce and reach a edge.
2013-04-08 08:40:24 +09:00
Jaehwan Kim
85849217f9
Add the API elm_scroller_page_scroll_limit_set/get.
...
It sets the maxium of the movable page at flicking.
2013-04-06 13:09:59 +09:00
Jaehwan Kim
b16a68aae1
Fix the typo and add the description for new API.
2013-04-04 14:42:11 +09:00
Jaehwan Kim
8db418c0a0
Add the repeat_events_set/get for blocking the events of content objects.
...
This feature is useful to the access.
2013-04-01 17:13:32 +09:00
Jaehwan Kim
3a218c0a52
Scroller decides whether the accelerator is on or not, depending on the velocity and the interval time of the flick event.
2013-04-01 14:05:51 +09:00