#include "e_utils_intern.h"
#include "e_hints_intern.h"
#include "e_appinfo_intern.h"
+#include "e_comp_screen_intern.h"
#define BUS "org.enlightenment.wm"
#define PATH "/org/enlightenment/wm"
static Eldbus_Message *_e_test_helper_cb_get_aux_hint(const Eldbus_Service_Interface *iface, const Eldbus_Message *msg);
static Eldbus_Message *_e_test_helper_cb_set_configured_output_resolution(const Eldbus_Service_Interface *iface, const Eldbus_Message *msg);
static Eldbus_Message *_e_test_helper_cb_set_base_output_resolution(const Eldbus_Service_Interface *iface, const Eldbus_Message *msg);
+static Eldbus_Message *_e_test_helper_cb_get_screen_size(const Eldbus_Service_Interface *iface, const Eldbus_Message *msg);
static Eina_Bool _e_test_helper_cb_img_render(void *data EINA_UNUSED, int type EINA_UNUSED, void *event);
static Eina_Bool _e_test_helper_cb_effect_start(void *data EINA_UNUSED, int type EINA_UNUSED, void *event);
static Eina_Bool _e_test_helper_cb_effect_end(void *data EINA_UNUSED, int type EINA_UNUSED, void *event);
ELDBUS_ARGS({"i", "configured output resolution is set or not"}),
_e_test_helper_cb_set_base_output_resolution, 0,
},
+ {
+ "GetScreenSize",
+ NULL,
+ ELDBUS_ARGS({"ii", "width and height of screen"}),
+ _e_test_helper_cb_get_screen_size, 0,
+ },
{ }
};
return reply;
}
+static Eldbus_Message *
+_e_test_helper_cb_get_screen_size(const Eldbus_Service_Interface *iface, const Eldbus_Message *msg)
+{
+ Eldbus_Message *reply = eldbus_message_method_return_new(msg);
+ int width = -1, height = -1;
+
+ if (!th_data) goto fin;
+
+ e_comp_screen_size_get(e_comp->e_comp_screen, &width, &height);
+
+fin:
+ eldbus_message_arguments_append(reply, "ii", width, height);
+
+ return reply;
+}
+
static Eina_Bool
_e_test_helper_cb_img_render(void *data EINA_UNUSED,
int type EINA_UNUSED,