return EINA_TRUE;
}
+E_API void
+e_comp_wl_shell_surface_api_set(E_Client *ec, E_Comp_Wl_Shell_Surface_Api *api)
+{
+ e_shell_e_client_shsurface_api_set(ec, api);
+}
+
E_API struct wl_resource *
e_comp_wl_shell_surface_get(E_Client *ec)
{
#ifndef E_COMP_WL_SHELL_INTERN_H
#define E_COMP_WL_SHELL_INTERN_H
-typedef struct
-{
- void (*configure_send)(struct wl_resource *resource, uint32_t edges, int32_t width, int32_t height);
- void (*configure)(struct wl_resource *resource, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);
- void (*ping)(struct wl_resource *resource);
- void (*map)(struct wl_resource *resource);
- void (*unmap)(struct wl_resource *resource);
-} E_Shell_Surface_Api;
+#include "e_comp_wl.h"
+
+typedef struct _E_Comp_Wl_Shell_Surface_Api E_Shell_Surface_Api;
EINTERN Eina_Bool e_comp_wl_shell_init(void);
EINTERN void e_comp_wl_shell_shutdown(void);
typedef struct _E_Comp_Wl_Buffer_Viewport E_Comp_Wl_Buffer_Viewport;
typedef struct _E_Comp_Wl_Subsurf_Data E_Comp_Wl_Subsurf_Data;
typedef struct _E_Comp_Wl_Surface_State E_Comp_Wl_Surface_State;
+typedef struct _E_Comp_Wl_Shell_Surface_Api E_Comp_Wl_Shell_Surface_Api;
typedef struct _E_Comp_Wl_Data E_Comp_Wl_Data;
typedef struct _E_Comp_Wl_Output E_Comp_Wl_Output;
typedef struct _E_Comp_Wl_Intercept_Hook E_Comp_Wl_Intercept_Hook;
uint32_t wait_for_transform_change;
};
+struct _E_Comp_Wl_Shell_Surface_Api
+{
+ void (*configure_send)(struct wl_resource *resource, uint32_t edges, int32_t width, int32_t height);
+ void (*configure)(struct wl_resource *resource, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);
+ void (*ping)(struct wl_resource *resource);
+ void (*map)(struct wl_resource *resource);
+ void (*unmap)(struct wl_resource *resource);
+};
+
struct _E_Comp_Wl_Surface_State
{
int sx, sy;
E_API void e_comp_wl_shell_unmap(E_Client *ec);
E_API Eina_Bool e_comp_wl_shell_window_size_get(E_Client *ec, int *w, int *h);
+E_API void e_comp_wl_shell_surface_api_set(E_Client *ec, E_Comp_Wl_Shell_Surface_Api *api);
E_API struct wl_resource *e_comp_wl_shell_surface_get(E_Client *ec);
E_API void e_comp_wl_shell_surface_set(E_Client *ec, struct wl_resource *surface);