ETK etk_scrolled_view patch for new margin bouncy type

Tick Chen tick at openmoko.com
Wed Nov 19 07:10:49 CET 2008


Hi List, 
  I created a patch for extending the scrolled_view  bouncy behaviour. 
. Changing the etk_scrolled_view_drag_bouncy_set with 

typedef enum
{
   ETK_BOUNCY_NOBOUNCE=0,     /** < No bounce at all, stop at margin.
It's default */
   ETK_BOUNCY_BOUNCE,         /** < Bounce to the margin, and do not
stop. */
   ETK_BOUNCY_STOPTOOBJECT,   /** < Do not bounce, and stop at the
margin of object.  */
} Etk_Scrolled_View_Bouncy_Policy;

void etk_scrolled_view_drag_bouncy_set(Etk_Scrolled_View *scrolled_view, Etk_Scrolled_View_Bouncy_Policy bouncy);

. Removing the unfinished margin stuff in etk_widget. 
. BOUNCE / and NOBOUNCE is as before. 
. STOPTOOBJECT means if widget is scrolling out of object edge, it will
bouncy back to the edge. Just like ipod touch does. 
Here is the demo. 
http://tw.youtube.com/watch?v=J-omW_mnSC4

The attached image is the speed model. 

Cheers, 
Tick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot.png
Type: image/png
Size: 14740 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/devel/attachments/20081119/42632f3a/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scrolled_view_stoptoobject.patch
Type: text/x-diff
Size: 21695 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/devel/attachments/20081119/42632f3a/attachment-0001.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.openmoko.org/pipermail/devel/attachments/20081119/42632f3a/attachment-0001.pgp 


More information about the devel mailing list