Enlightenment CVS committal

Author  : codewarrior
Project : e17
Module  : libs/etk

Dir     : e17/libs/etk/src/engines/ecore_evas


Modified Files:
        ecore_evas.c 


Log Message:
Implement translucency support and color setting for etk widgets.

[Engines] Add a has_alpha_set/get call.
[Window] Add etk_window_has_alpha_set/get call
[Widget] Add etk_widget_color_set call.



===================================================================
RCS file: /cvs/e/e17/libs/etk/src/engines/ecore_evas/ecore_evas.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- ecore_evas.c        22 Mar 2007 19:36:51 -0000      1.18
+++ ecore_evas.c        22 Mar 2007 23:31:40 -0000      1.19
@@ -44,6 +44,8 @@
 static Etk_Bool _window_decorated_get(Etk_Window *window);
 static void _window_shaped_set(Etk_Window *window, Etk_Bool shaped);  
 static Etk_Bool _window_shaped_get(Etk_Window *window);
+static void _window_has_alpha_set(Etk_Window *window, Etk_Bool alpha);
+static Etk_Bool _window_has_alpha_get(Etk_Window *window);
 
 static void _window_move_cb(Ecore_Evas *ecore_evas);
 static void _window_resize_cb(Ecore_Evas *ecore_evas);
@@ -97,6 +99,8 @@
    _window_decorated_get,
    _window_shaped_set,
    _window_shaped_get,
+   _window_has_alpha_set,
+   _window_has_alpha_get,
    NULL, /* window_skip_taskbar_hint_set */
    NULL, /* window_skip_taskbar_hint_get */
    NULL, /* window_skip_pager_hint_set */
@@ -457,6 +461,25 @@
    
    engine_data = window->engine_data;
    return ecore_evas_shaped_get(engine_data->ecore_evas);
+}
+
+/* Sets whether or not the window uses alpha (i.e. the window is translucent) 
*/
+static void _window_has_alpha_set(Etk_Window *window, Etk_Bool alpha)
+{   
+   Etk_Engine_Window_Data *engine_data;
+   
+   engine_data = window->engine_data;
+   ecore_evas_alpha_set(engine_data->ecore_evas, alpha);
+   etk_object_notify(ETK_OBJECT(window), "alpha");
+}
+
+/* Gets whether or not the window has alpha */
+static Etk_Bool _window_has_alpha_get(Etk_Window *window)
+{
+   Etk_Engine_Window_Data *engine_data;
+   
+   engine_data = window->engine_data;
+   return ecore_evas_alpha_get(engine_data->ecore_evas);
 }
 
 /**************************



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to