[ecore_x] 1.Add feature for sliding window 2.Update changelog
authorDoyoun Kang <doyoun.kang@samsung.com>
Thu, 11 Nov 2010 02:26:49 +0000 (11:26 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Thu, 11 Nov 2010 02:26:49 +0000 (11:26 +0900)
debian/changelog
src/lib/ecore_x/Ecore_X.h [changed mode: 0644->0755]
src/lib/ecore_x/Ecore_X_Atoms.h
src/lib/ecore_x/ecore_x_atoms_decl.h
src/lib/ecore_x/xlib/ecore_x_atoms.c
src/lib/ecore_x/xlib/ecore_x_e.c [changed mode: 0644->0755]

index 9d271cf..f851241 100644 (file)
@@ -1,3 +1,11 @@
+ecore (1.0.0.001+svn.51480slp2+build18) unstable; urgency=low
+
+  * [ecore_x] Add feature for sliding window
+  * Git: 165.213.180.234:/git/slp/pkgs/ecore
+  * Tag: ecore_1.0.0.001+svn.51480slp2+build18
+
+ -- Doyoun Kang <doyoun.kang@samsung.com>  Thu, 11 Nov 2010 10:53:35 +0900
+
 ecore (1.0.0.001+svn.51480slp2+build17) unstable; urgency=low
 
   * [ecore_imf] ecore_imf_context_input_panel_language_set
old mode 100644 (file)
new mode 100755 (executable)
index e7411cf..f2a7253
@@ -2287,6 +2287,25 @@ EAPI void
                                           ecore_x_e_illume_quickpanel_position_update_send(
    Ecore_X_Window win);
 
+/* added by doyoun.kang - for sliding window */
+EAPI void                                 ecore_x_e_illume_sliding_win_state_set(
+   Ecore_X_Window win,
+   unsigned int   is_visible);
+EAPI int                                  ecore_x_e_illume_sliding_win_state_get(
+   Ecore_X_Window win);
+EAPI void                                 ecore_x_e_illume_sliding_win_geometry_set(
+   Ecore_X_Window win, 
+   int            x,
+   int            y,
+   int            w,
+   int            h);
+EAPI int                                  ecore_x_e_illume_sliding_win_geometry_get(
+   Ecore_X_Window win,
+   int           *x,
+   int           *y,
+   int           *w,
+   int           *h);
+
 EAPI void                                 ecore_x_e_comp_sync_counter_set(
    Ecore_X_Window       win,
    Ecore_X_Sync_Counter counter);
index 4caccbf..6c91e71 100755 (executable)
@@ -264,4 +264,8 @@ EAPI extern Ecore_X_Atom ECORE_X_ATOM_PARENT_BORDER_WINDOW;
 /* added by doyoun.kang - for indicator's state */
 EAPI extern Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_INDICATOR_STATE;
 
+/* added by doyoun.kang - for sliding window */
+EAPI extern Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_SLIDING_WIN_STATE;
+EAPI extern Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_SLIDING_WIN_GEOMETRY;
+
 #endif /* _ECORE_X_ATOMS_H */
index 5e1535f..f6d44cd 100755 (executable)
@@ -291,3 +291,7 @@ EAPI Ecore_X_Atom ECORE_X_ATOM_PARENT_BORDER_WINDOW = 0;
 
 /* added by doyoun.kang - for indicator's state */
 EAPI Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_INDICATOR_STATE = 0;
+
+/* added by doyoun.kang - for sliding window */
+EAPI Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_SLIDING_WIN_STATE = 0;
+EAPI Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_SLIDING_WIN_GEOMETRY = 0;
index 6f8bcf9..600322e 100755 (executable)
@@ -297,7 +297,11 @@ _ecore_x_atoms_init(void)
       { "_ECORE_X_PARENT_BORDER_WINDOW", &ECORE_X_ATOM_PARENT_BORDER_WINDOW },
 
       /* added by doyoun.kang - for indicator's state */
-      { "_E_ILLUME_INDICATOR_STATE", &ECORE_X_ATOM_E_ILLUME_INDICATOR_STATE }
+      { "_E_ILLUME_INDICATOR_STATE", &ECORE_X_ATOM_E_ILLUME_INDICATOR_STATE },
+
+      /* added by doyoun.kang - for sliding window */
+      { "_E_ILLUME_SLIDING_WIN_STATE", &ECORE_X_ATOM_E_ILLUME_SLIDING_WIN_STATE },
+      { "_E_ILLUME_SLIDING_WIN_GEOMETRY", &ECORE_X_ATOM_E_ILLUME_SLIDING_WIN_GEOMETRY }
    };
    Atom *atoms;
    char **names;
old mode 100644 (file)
new mode 100755 (executable)
index c5789d5..4b46f84
@@ -764,6 +764,83 @@ ecore_x_e_illume_quickpanel_position_update_send(Ecore_X_Window win)
       0);
 } /* ecore_x_e_illume_quickpanel_position_update_send */
 
+/* added by doyoun.kang - for sliding window */
+EAPI void 
+ecore_x_e_illume_sliding_win_state_set(Ecore_X_Window win,
+                                       unsigned int   is_visible)
+{
+   LOGFN(__FILE__, __LINE__, __FUNCTION__);
+   ecore_x_window_prop_card32_set(win, 
+                                  ECORE_X_ATOM_E_ILLUME_SLIDING_WIN_STATE, 
+                                  &is_visible, 1);
+} /* ecore_x_e_illume_sliding_win_state_set */
+
+EAPI int 
+ecore_x_e_illume_sliding_win_state_get(Ecore_X_Window win)
+{
+   unsigned int is_visible = 0;
+   
+   LOGFN(__FILE__, __LINE__, __FUNCTION__);
+   if (!ecore_x_window_prop_card32_get(win,
+                                       ECORE_X_ATOM_E_ILLUME_SLIDING_WIN_STATE, 
+                                       &is_visible, 1))
+      return 0;
+
+   return is_visible;
+}
+
+EAPI void
+ecore_x_e_illume_sliding_win_geometry_set(Ecore_X_Window win,
+                                          int            x,
+                                          int            y,
+                                          int            w,
+                                          int            h)
+{
+   unsigned int geom[4];
+
+   LOGFN(__FILE__, __LINE__, __FUNCTION__);
+   geom[0] = x;
+   geom[1] = y;
+   geom[2] = w;
+   geom[3] = h;
+   ecore_x_window_prop_card32_set(win,
+                                  ECORE_X_ATOM_E_ILLUME_SLIDING_WIN_GEOMETRY, 
+                                  geom, 4);
+} /* ecore_x_e_illume_sliding_win_geometry_set */
+
+EAPI int 
+ecore_x_e_illume_sliding_win_geometry_get(Ecore_X_Window win,
+                                          int           *x,
+                                          int           *y,
+                                          int           *w,
+                                          int           *h)
+{
+   int ret = 0;
+   unsigned int geom[4];
+   
+   LOGFN(__FILE__, __LINE__, __FUNCTION__);
+   ret = 
+     ecore_x_window_prop_card32_get(win, 
+                                    ECORE_X_ATOM_E_ILLUME_SLIDING_WIN_GEOMETRY, 
+                                    geom, 4);
+   if (ret != 4)
+      return 0;
+   
+   if (x)
+      *x = geom[0];
+   
+   if (y)
+      *y = geom[1];
+   
+   if (w)
+      *w = geom[2];
+   
+   if (h)
+      *h = geom[3];
+   
+   return 1;
+}/* ecore_x_e_illume_sliding_win_geometry_get */
+
 EAPI void
 ecore_x_e_comp_sync_counter_set(Ecore_X_Window       win,
                                 Ecore_X_Sync_Counter counter)