forked from enlightenment/enlightenment
add function for getting x11 pixmap from E_Pixmap
This commit is contained in:
parent
bff9ae5feb
commit
441e266a83
|
@ -305,6 +305,16 @@ e_pixmap_visual_get(const E_Pixmap *cp)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
E_API uint32_t
|
||||
e_pixmap_pixmap_get(const E_Pixmap *cp)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(cp, 0);
|
||||
#ifndef HAVE_WAYLAND_ONLY
|
||||
if (e_pixmap_is_x(cp)) return cp->pixmap;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
E_API void
|
||||
e_pixmap_usable_set(E_Pixmap *cp, Eina_Bool set)
|
||||
{
|
||||
|
|
|
@ -23,6 +23,7 @@ E_API void e_pixmap_parent_window_set(E_Pixmap *cp, Ecore_Window win);
|
|||
E_API void e_pixmap_visual_cmap_set(E_Pixmap *cp, void *visual, unsigned int cmap);
|
||||
E_API unsigned int e_pixmap_failures_get(const E_Pixmap *cp);
|
||||
E_API void *e_pixmap_visual_get(const E_Pixmap *cp);
|
||||
E_API uint32_t e_pixmap_pixmap_get(const E_Pixmap *cp);
|
||||
E_API Eina_Bool e_pixmap_dirty_get(E_Pixmap *cp);
|
||||
E_API void e_pixmap_clear(E_Pixmap *cp);
|
||||
E_API void e_pixmap_usable_set(E_Pixmap *cp, Eina_Bool set);
|
||||
|
|
Loading…
Reference in New Issue