summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-02-20 14:16:01 -0600
committerDerek Foreman <derekf@osg.samsung.com>2018-04-20 13:00:27 -0500
commita10feaed0ce9e8a1b96d0c6bd486f6ae88d96a5d (patch)
tree570ab6b25980adc9d7f8d11fc06e64005253f9da /src/lib/ecore_wl2
parent6da0933d60fba481c063703c21398dda8b79a90f (diff)
ecore_wl2: Add ecore_wl2_surface_alpha_get query
We'll need this for some surface modules to properly handle alpha changes
Diffstat (limited to 'src/lib/ecore_wl2')
-rw-r--r--src/lib/ecore_wl2/Ecore_Wl2.h1
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_surface.c8
2 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index b9f8e1d498..e6f301abe3 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -2025,6 +2025,7 @@ EAPI Ecore_Wl2_Buffer *ecore_wl2_surface_buffer_create(Ecore_Wl2_Surface *surfac
2025EAPI int ecore_wl2_surface_manager_add(Ecore_Wl2_Surface_Interface *intf); 2025EAPI int ecore_wl2_surface_manager_add(Ecore_Wl2_Surface_Interface *intf);
2026EAPI void ecore_wl2_surface_manager_del(Ecore_Wl2_Surface_Interface *intf); 2026EAPI void ecore_wl2_surface_manager_del(Ecore_Wl2_Surface_Interface *intf);
2027EAPI Ecore_Wl2_Window *ecore_wl2_surface_window_get(Ecore_Wl2_Surface *surface); 2027EAPI Ecore_Wl2_Window *ecore_wl2_surface_window_get(Ecore_Wl2_Surface *surface);
2028EAPI Eina_Bool ecore_wl2_surface_alpha_get(Ecore_Wl2_Surface *surface);
2028 2029
2029# endif 2030# endif
2030 2031
diff --git a/src/lib/ecore_wl2/ecore_wl2_surface.c b/src/lib/ecore_wl2/ecore_wl2_surface.c
index 8720af0b76..6ff5f1d57e 100644
--- a/src/lib/ecore_wl2/ecore_wl2_surface.c
+++ b/src/lib/ecore_wl2/ecore_wl2_surface.c
@@ -162,3 +162,11 @@ ecore_wl2_surface_window_get(Ecore_Wl2_Surface *surface)
162 162
163 return surface->wl2_win; 163 return surface->wl2_win;
164} 164}
165
166EAPI Eina_Bool
167ecore_wl2_surface_alpha_get(Ecore_Wl2_Surface *surface)
168{
169 EINA_SAFETY_ON_NULL_RETURN_VAL(surface, EINA_FALSE);
170
171 return surface->alpha;
172}