Enlightenment CVS committal
Author : atmosphere
Project : e17
Module : proto
Dir : e17/proto/esmart/src/container
Modified Files:
container.h container.c
Log Message:
TrillMonkey needed a basic scroll function, so I added one.
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/esmart/src/container/container.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- container.h 12 Oct 2003 01:43:54 -0000 1.3
+++ container.h 17 Oct 2003 22:31:40 -0000 1.4
@@ -143,6 +143,7 @@
/* scrolling */
void e_container_scroll_start(Evas_Object *container, double velocity);
void e_container_scroll_stop(Evas_Object *container);
+void e_container_scroll(Evas_Object *container, int val);
/* callbacks */
void e_container_callback_order_change_set(Evas_Object *obj,
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/esmart/src/container/container.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- container.c 12 Oct 2003 01:43:54 -0000 1.3
+++ container.c 17 Oct 2003 22:31:40 -0000 1.4
@@ -74,6 +74,17 @@
if (b) *b = cont->padding.b;
}
+void e_container_scroll(Evas_Object *container, int val)
+{
+ Container *cont;
+
+ if((cont = _container_fetch(container)))
+ {
+ cont->scroll_offset += val;
+ _container_elements_fix(cont);
+ }
+}
+
void e_container_scroll_offset_set(Evas_Object *container, int scroll_offset)
{
Container *cont;
-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise
Linux in the Boardroom; in the Front Office; & in the Server Room
http://www.enterpriselinuxforum.com
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs