2020-03-12 09:16:14 -07:00
|
|
|
#ifndef EFL_CANVAS_WL_H
|
|
|
|
# define EFL_CANVAS_WL_H
|
2017-06-30 11:59:21 -07:00
|
|
|
#include <Evas.h>
|
2020-03-12 09:15:27 -07:00
|
|
|
#include <Efl_Core.h>
|
2017-06-30 11:59:21 -07:00
|
|
|
|
|
|
|
#ifdef EAPI
|
|
|
|
# undef EAPI
|
|
|
|
#endif
|
2020-03-12 09:15:27 -07:00
|
|
|
#ifdef EAPI_WEAK
|
|
|
|
# undef EAPI_WEAK
|
|
|
|
#endif
|
2017-06-30 11:59:21 -07:00
|
|
|
|
2020-03-12 09:15:27 -07:00
|
|
|
# ifdef __GNUC__
|
|
|
|
# if __GNUC__ >= 4
|
|
|
|
# define EAPI __attribute__ ((visibility("default")))
|
|
|
|
# define EAPI_WEAK
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# define EAPI_WEAK
|
|
|
|
# endif
|
2017-06-30 11:59:21 -07:00
|
|
|
# endif
|
|
|
|
|
2021-05-26 07:44:41 -07:00
|
|
|
#define EWAPI EAPI EAPI_WEAK
|
|
|
|
|
2020-03-12 09:16:31 -07:00
|
|
|
#ifdef WAYLAND_UTIL_H
|
|
|
|
typedef struct wl_surface Efl_Canvas_Wl_Wl_Surface;
|
|
|
|
typedef struct wl_global Efl_Canvas_Wl_Wl_Global;
|
|
|
|
typedef struct wl_interface Efl_Canvas_Wl_Wl_Interface;
|
|
|
|
typedef struct wl_array Efl_Canvas_Wl_Wl_Array;
|
|
|
|
typedef void Efl_Canvas_Wl_Wl_Interface_Data;
|
|
|
|
typedef void Efl_Canvas_Wl_Wl_Interface_Bind_Cb;
|
|
|
|
#else
|
2020-03-12 09:16:14 -07:00
|
|
|
typedef struct Efl_Canvas_Wl_Wl_Surface Efl_Canvas_Wl_Wl_Surface;
|
|
|
|
typedef struct Efl_Canvas_Wl_Wl_Global Efl_Canvas_Wl_Wl_Global;
|
|
|
|
typedef struct Efl_Canvas_Wl_Wl_Interface Efl_Canvas_Wl_Wl_Interface;
|
|
|
|
typedef struct Efl_Canvas_Wl_Wl_Array Efl_Canvas_Wl_Wl_Array;
|
|
|
|
typedef void * Efl_Canvas_Wl_Wl_Interface_Data;
|
|
|
|
typedef void * Efl_Canvas_Wl_Wl_Interface_Bind_Cb;
|
2020-03-12 09:16:31 -07:00
|
|
|
#endif
|
|
|
|
#ifdef _XKBCOMMON_H_
|
|
|
|
typedef struct xkb_state Efl_Canvas_Wl_Xkb_State;
|
|
|
|
#else
|
2020-03-12 09:16:14 -07:00
|
|
|
typedef struct Efl_Canvas_Wl_Xkb_State Efl_Canvas_Wl_Xkb_State;
|
2020-03-12 09:16:31 -07:00
|
|
|
#endif
|
2020-03-12 09:16:14 -07:00
|
|
|
#include <efl_canvas_wl_surface.eo.h>
|
|
|
|
#include <efl_canvas_wl.eo.h>
|
2017-10-19 09:57:28 -07:00
|
|
|
/**
|
2020-03-12 09:16:14 -07:00
|
|
|
* Get the Evas_Object for an extracted wl_surface resource created by an efl_canvas_wl object
|
2017-10-19 09:57:28 -07:00
|
|
|
*
|
2020-03-12 09:16:14 -07:00
|
|
|
* @note Passing anything other than a valid wl_surface resource from an efl_canvas_wl object will guarantee a crash.
|
2017-10-19 09:57:28 -07:00
|
|
|
*
|
|
|
|
* @param surface_resource The wl_resource for a wl_surface
|
|
|
|
* @return The Evas_Object of the surface, NULL on failure
|
2020-03-13 09:17:03 -07:00
|
|
|
* @since 1.24
|
2017-10-19 09:57:28 -07:00
|
|
|
*/
|
2020-03-12 09:16:14 -07:00
|
|
|
EAPI Evas_Object *efl_canvas_wl_extracted_surface_object_find(void *surface_resource);
|
2020-03-12 09:15:27 -07:00
|
|
|
#undef EAPI
|
|
|
|
#define EAPI
|
|
|
|
#undef EAPI_WEAK
|
|
|
|
#define EAPI_WEAK
|
2017-06-30 11:59:21 -07:00
|
|
|
#endif
|