antognolli pushed a commit to branch master.
commit a9b500370ab0c98e58fe26e8b878bcb387e99099
Author: Rafael Antognolli <[email protected]>
Date: Tue Apr 30 15:56:11 2013 -0300
ecore/wayalnd: Add some getters to ecore_wl_window.
---
src/lib/ecore_wayland/Ecore_Wayland.h | 3 +++
src/lib/ecore_wayland/ecore_wl_window.c | 36 +++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+)
diff --git a/src/lib/ecore_wayland/Ecore_Wayland.h
b/src/lib/ecore_wayland/Ecore_Wayland.h
index 6a5adfb..f9a12ef 100644
--- a/src/lib/ecore_wayland/Ecore_Wayland.h
+++ b/src/lib/ecore_wayland/Ecore_Wayland.h
@@ -619,8 +619,11 @@ EAPI void ecore_wl_window_hide(Ecore_Wl_Window *win);
*/
EAPI void ecore_wl_window_raise(Ecore_Wl_Window *win);
EAPI void ecore_wl_window_maximized_set(Ecore_Wl_Window *win, Eina_Bool
maximized);
+EAPI Eina_Bool ecore_wl_window_maximized_get(Ecore_Wl_Window *win);
EAPI void ecore_wl_window_fullscreen_set(Ecore_Wl_Window *win, Eina_Bool
fullscreen);
+EAPI Eina_Bool ecore_wl_window_fullscreen_get(Ecore_Wl_Window *win);
EAPI void ecore_wl_window_transparent_set(Ecore_Wl_Window *win, Eina_Bool
transparent);
+EAPI Eina_Bool ecore_wl_window_transparent_get(Ecore_Wl_Window *win);
EAPI void ecore_wl_window_update_size(Ecore_Wl_Window *win, int w, int h);
EAPI void ecore_wl_window_update_location(Ecore_Wl_Window *win, int x, int y);
EAPI struct wl_surface *ecore_wl_window_surface_get(Ecore_Wl_Window *win);
diff --git a/src/lib/ecore_wayland/ecore_wl_window.c
b/src/lib/ecore_wayland/ecore_wl_window.c
index 36dd5fd..6b4720c 100644
--- a/src/lib/ecore_wayland/ecore_wl_window.c
+++ b/src/lib/ecore_wayland/ecore_wl_window.c
@@ -393,6 +393,19 @@ ecore_wl_window_maximized_set(Ecore_Wl_Window *win,
Eina_Bool maximized)
_ecore_wl_window_state_changed(win);
}
+EAPI Eina_Bool
+ecore_wl_window_maximized_get(Ecore_Wl_Window *win)
+{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+
+ if (!win) return EINA_FALSE;
+
+ if (win->type == ECORE_WL_WINDOW_TYPE_MAXIMIZED)
+ return EINA_TRUE;
+
+ return EINA_FALSE;
+}
+
EAPI void
ecore_wl_window_fullscreen_set(Ecore_Wl_Window *win, Eina_Bool fullscreen)
{
@@ -421,6 +434,19 @@ ecore_wl_window_fullscreen_set(Ecore_Wl_Window *win,
Eina_Bool fullscreen)
_ecore_wl_window_state_changed(win);
}
+EAPI Eina_Bool
+ecore_wl_window_fullscreen_get(Ecore_Wl_Window *win)
+{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+
+ if (!win) return EINA_FALSE;
+
+ if (win->type == ECORE_WL_WINDOW_TYPE_FULLSCREEN)
+ return EINA_TRUE;
+
+ return EINA_FALSE;
+}
+
EAPI void
ecore_wl_window_transparent_set(Ecore_Wl_Window *win, Eina_Bool transparent)
{
@@ -440,6 +466,16 @@ ecore_wl_window_transparent_set(Ecore_Wl_Window *win,
Eina_Bool transparent)
_ecore_wl_window_state_changed(win);
}
+EAPI Eina_Bool
+ecore_wl_window_transparent_get(Ecore_Wl_Window *win)
+{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+
+ if (!win) return EINA_FALSE;
+
+ return win->transparent;
+}
+
EAPI void
ecore_wl_window_update_size(Ecore_Wl_Window *win, int w, int h)
{
--
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1