EAPI int ecore_evas_init(void);
EAPI int ecore_evas_shutdown(void);
-EAPI void ecore_evas_app_comp_sync_set(int do_sync);
-EAPI int ecore_evas_app_comp_sync_get(void);
+EAPI void ecore_evas_app_comp_sync_set(Eina_Bool do_sync);
+EAPI Eina_Bool ecore_evas_app_comp_sync_get(void);
EAPI Eina_List *ecore_evas_engines_get(void);
EAPI void ecore_evas_engines_free(Eina_List *engines);
/* engine/target specific init calls */
EAPI Ecore_Evas *ecore_evas_software_x11_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h);
EAPI Ecore_X_Window ecore_evas_software_x11_window_get(const Ecore_Evas *ee);
-EAPI void ecore_evas_software_x11_direct_resize_set(Ecore_Evas *ee, int on);
-EAPI int ecore_evas_software_x11_direct_resize_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_software_x11_direct_resize_set(Ecore_Evas *ee, Eina_Bool on);
+EAPI Eina_Bool ecore_evas_software_x11_direct_resize_get(const Ecore_Evas *ee);
EAPI void ecore_evas_software_x11_extra_event_window_add(Ecore_Evas *ee, Ecore_X_Window win);
#define ECORE_EVAS_GL_X11_OPT_NONE 0
EAPI Ecore_Evas *ecore_evas_gl_x11_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h);
EAPI Ecore_Evas *ecore_evas_gl_x11_options_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h, const int *opt);
EAPI Ecore_X_Window ecore_evas_gl_x11_window_get(const Ecore_Evas *ee);
-EAPI void ecore_evas_gl_x11_direct_resize_set(Ecore_Evas *ee, int on);
-EAPI int ecore_evas_gl_x11_direct_resize_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_gl_x11_direct_resize_set(Ecore_Evas *ee, Eina_Bool on);
+EAPI Eina_Bool ecore_evas_gl_x11_direct_resize_get(const Ecore_Evas *ee);
EAPI void ecore_evas_gl_x11_extra_event_window_add(Ecore_Evas *ee, Ecore_X_Window win);
EAPI void ecore_evas_gl_x11_pre_post_swap_callback_set(const Ecore_Evas *ee, void *data, void (*pre_cb) (void *data, Evas *e), void (*post_cb) (void *data, Evas *e));
EAPI Ecore_Evas *ecore_evas_xrender_x11_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h);
EAPI Ecore_X_Window ecore_evas_xrender_x11_window_get(const Ecore_Evas *ee);
-EAPI void ecore_evas_xrender_x11_direct_resize_set(Ecore_Evas *ee, int on);
-EAPI int ecore_evas_xrender_x11_direct_resize_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_xrender_x11_direct_resize_set(Ecore_Evas *ee, Eina_Bool on);
+EAPI Eina_Bool ecore_evas_xrender_x11_direct_resize_get(const Ecore_Evas *ee);
EAPI void ecore_evas_xrender_x11_extra_event_window_add(Ecore_Evas *ee, Ecore_X_Window win);
EAPI Ecore_Evas *ecore_evas_software_x11_8_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h);
EAPI Ecore_X_Window ecore_evas_software_x11_8_window_get(const Ecore_Evas *ee);
EAPI Ecore_X_Window ecore_evas_software_x11_8_subwindow_get(const Ecore_Evas *ee);
-EAPI void ecore_evas_software_x11_8_direct_resize_set(Ecore_Evas *ee, int on);
-EAPI int ecore_evas_software_x11_8_direct_resize_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_software_x11_8_direct_resize_set(Ecore_Evas *ee, Eina_Bool on);
+EAPI Eina_Bool ecore_evas_software_x11_8_direct_resize_get(const Ecore_Evas *ee);
EAPI void ecore_evas_software_x11_8_extra_event_window_add(Ecore_Evas *ee, Ecore_X_Window win);
EAPI Ecore_Evas *ecore_evas_software_x11_16_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h);
EAPI Ecore_X_Window ecore_evas_software_x11_16_window_get(const Ecore_Evas *ee);
-EAPI void ecore_evas_software_x11_16_direct_resize_set(Ecore_Evas *ee, int on);
-EAPI int ecore_evas_software_x11_16_direct_resize_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_software_x11_16_direct_resize_set(Ecore_Evas *ee, Eina_Bool on);
+EAPI Eina_Bool ecore_evas_software_x11_16_direct_resize_get(const Ecore_Evas *ee);
EAPI void ecore_evas_software_x11_16_extra_event_window_add(Ecore_Evas *ee, Ecore_X_Window win);
EAPI Ecore_Evas *ecore_evas_fb_new(const char *disp_name, int rotation, int w, int h);
EAPI void ecore_evas_rotation_set(Ecore_Evas *ee, int rot);
EAPI void ecore_evas_rotation_with_resize_set(Ecore_Evas *ee, int rot);
EAPI int ecore_evas_rotation_get(const Ecore_Evas *ee);
-EAPI void ecore_evas_shaped_set(Ecore_Evas *ee, int shaped);
-EAPI int ecore_evas_shaped_get(const Ecore_Evas *ee);
-EAPI void ecore_evas_alpha_set(Ecore_Evas *ee, int alpha);
-EAPI int ecore_evas_alpha_get(const Ecore_Evas *ee);
-EAPI void ecore_evas_transparent_set(Ecore_Evas *ee, int transparent);
-EAPI int ecore_evas_transparent_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_shaped_set(Ecore_Evas *ee, Eina_Bool shaped);
+EAPI Eina_Bool ecore_evas_shaped_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_alpha_set(Ecore_Evas *ee, Eina_Bool alpha);
+EAPI Eina_Bool ecore_evas_alpha_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_transparent_set(Ecore_Evas *ee, Eina_Bool transparent);
+EAPI Eina_Bool ecore_evas_transparent_get(const Ecore_Evas *ee);
EAPI void ecore_evas_show(Ecore_Evas *ee);
EAPI void ecore_evas_hide(Ecore_Evas *ee);
EAPI int ecore_evas_visibility_get(const Ecore_Evas *ee);
EAPI void ecore_evas_cursor_get(const Ecore_Evas *ee, Evas_Object **obj, int *layer, int *hot_x, int *hot_y);
EAPI void ecore_evas_layer_set(Ecore_Evas *ee, int layer);
EAPI int ecore_evas_layer_get(const Ecore_Evas *ee);
-EAPI void ecore_evas_focus_set(Ecore_Evas *ee, int on);
-EAPI int ecore_evas_focus_get(const Ecore_Evas *ee);
-EAPI void ecore_evas_iconified_set(Ecore_Evas *ee, int on);
-EAPI int ecore_evas_iconified_get(const Ecore_Evas *ee);
-EAPI void ecore_evas_borderless_set(Ecore_Evas *ee, int on);
-EAPI int ecore_evas_borderless_get(const Ecore_Evas *ee);
-EAPI void ecore_evas_override_set(Ecore_Evas *ee, int on);
-EAPI int ecore_evas_override_get(const Ecore_Evas *ee);
-EAPI void ecore_evas_maximized_set(Ecore_Evas *ee, int on);
-EAPI int ecore_evas_maximized_get(const Ecore_Evas *ee);
-EAPI void ecore_evas_fullscreen_set(Ecore_Evas *ee, int on);
-EAPI int ecore_evas_fullscreen_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_focus_set(Ecore_Evas *ee, Eina_Bool on);
+EAPI Eina_Bool ecore_evas_focus_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_iconified_set(Ecore_Evas *ee, Eina_Bool on);
+EAPI Eina_Bool ecore_evas_iconified_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_borderless_set(Ecore_Evas *ee, Eina_Bool on);
+EAPI Eina_Bool ecore_evas_borderless_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_override_set(Ecore_Evas *ee, Eina_Bool on);
+EAPI Eina_Bool ecore_evas_override_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_maximized_set(Ecore_Evas *ee, Eina_Bool on);
+EAPI Eina_Bool ecore_evas_maximized_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_fullscreen_set(Ecore_Evas *ee, Eina_Bool on);
+EAPI Eina_Bool ecore_evas_fullscreen_get(const Ecore_Evas *ee);
EAPI void ecore_evas_avoid_damage_set(Ecore_Evas *ee, Ecore_Evas_Avoid_Damage_Type on);
EAPI Ecore_Evas_Avoid_Damage_Type ecore_evas_avoid_damage_get(const Ecore_Evas *ee);
-EAPI void ecore_evas_withdrawn_set(Ecore_Evas *ee, int withdrawn);
-EAPI int ecore_evas_withdrawn_get(const Ecore_Evas *ee);
-EAPI void ecore_evas_sticky_set(Ecore_Evas *ee, int sticky);
-EAPI int ecore_evas_sticky_get(const Ecore_Evas *ee);
-EAPI void ecore_evas_ignore_events_set(Ecore_Evas *ee, int ignore);
-EAPI int ecore_evas_ignore_events_get(const Ecore_Evas *ee);
-EAPI void ecore_evas_manual_render_set(Ecore_Evas *ee, int manual_render);
-EAPI int ecore_evas_manual_render_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_withdrawn_set(Ecore_Evas *ee, Eina_Bool withdrawn);
+EAPI Eina_Bool ecore_evas_withdrawn_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_sticky_set(Ecore_Evas *ee, Eina_Bool sticky);
+EAPI Eina_Bool ecore_evas_sticky_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_ignore_events_set(Ecore_Evas *ee, Eina_Bool ignore);
+EAPI Eina_Bool ecore_evas_ignore_events_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_manual_render_set(Ecore_Evas *ee, Eina_Bool manual_render);
+EAPI Eina_Bool ecore_evas_manual_render_get(const Ecore_Evas *ee);
EAPI void ecore_evas_manual_render(Ecore_Evas *ee);
-EAPI void ecore_evas_comp_sync_set(Ecore_Evas *ee, int do_sync);
-EAPI int ecore_evas_comp_sync_get(const Ecore_Evas *ee);
+EAPI void ecore_evas_comp_sync_set(Ecore_Evas *ee, Eina_Bool do_sync);
+EAPI Eina_Bool ecore_evas_comp_sync_get(const Ecore_Evas *ee);
EAPI Ecore_Window ecore_evas_window_get(const Ecore_Evas *ee);
-EAPI int ecore_evas_object_associate(Ecore_Evas *ee, Evas_Object *obj, Ecore_Evas_Object_Associate_Flags flags);
-EAPI int ecore_evas_object_dissociate(Ecore_Evas *ee, Evas_Object *obj);
+EAPI Eina_Bool ecore_evas_object_associate(Ecore_Evas *ee, Evas_Object *obj, Ecore_Evas_Object_Associate_Flags flags);
+EAPI Eina_Bool ecore_evas_object_dissociate(Ecore_Evas *ee, Evas_Object *obj);
EAPI Evas_Object *ecore_evas_object_associate_get(const Ecore_Evas *ee);
/* helper function to be used with ECORE_GETOPT_CALLBACK_*() */
return _ecore_evas_init_count;
}
-int _ecore_evas_app_comp_sync = 1;
+Eina_Bool _ecore_evas_app_comp_sync = 1;
EAPI void
-ecore_evas_app_comp_sync_set(int do_sync)
+ecore_evas_app_comp_sync_set(Eina_Bool do_sync)
{
_ecore_evas_app_comp_sync = do_sync;
}
-EAPI int
+EAPI Eina_Bool
ecore_evas_app_comp_sync_get(void)
{
return _ecore_evas_app_comp_sync;
/**
* Set whether an Ecore_Evas is shaped or not.
* @param ee The Ecore_Evas to shape
- * @param shaped 1 to shape, 0 to not
+ * @param shaped EINA_TRUE to shape, EINA_FALSE to not
*
* This function allows one to make an Ecore_Evas shaped to the contents of the
- * evas. If @p shaped is 1, @p ee will be transparent in parts of the evas that
- * contain no objects. If @p shaped is 0, then @p ee will be rectangular, and
+ * evas. If @p shaped is EINA_TRUE, @p ee will be transparent in parts of the evas that
+ * contain no objects. If @p shaped is EINA_FALSE, then @p ee will be rectangular, and
* and parts with no data will show random framebuffer artifacting. For
* non-shaped Ecore_Evases, it is recommend to cover the entire evas with a
* background object.
*/
EAPI void
-ecore_evas_shaped_set(Ecore_Evas *ee, int shaped)
+ecore_evas_shaped_set(Ecore_Evas *ee, Eina_Bool shaped)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
/**
* Query whether an Ecore_Evas is shaped or not.
* @param ee The Ecore_Evas to query.
- * @return 1 if shaped, 0 if not.
+ * @return EINA_TRUE if shaped, EINA_FALSE if not.
*
- * This function returns 1 if @p ee is shaped, and 0 if not.
+ * This function returns EINA_TRUE if @p ee is shaped, and EINA_FALSE if not.
*/
-EAPI int
+EAPI Eina_Bool
ecore_evas_shaped_get(const Ecore_Evas *ee)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
"ecore_evas_shaped_get");
- return 0;
+ return EINA_FALSE;
}
- return ee->shaped ? 1:0;
+ return ee->shaped ? EINA_TRUE : EINA_FALSE;
}
/**
* Set whether an Ecore_Evas has an alpha channel or not.
* @param ee The Ecore_Evas to shape
- * @param alpha 1 to enable the alpha channel, 0 to disable it
+ * @param alpha EINA_TRUE to enable the alpha channel, EINA_FALSE to disable it
*
* This function allows you to make an Ecore_Evas translucent using an
* alpha channel. See ecore_evas_shaped_set() for details. The difference
* it's transparent).
*/
EAPI void
-ecore_evas_alpha_set(Ecore_Evas *ee, int alpha)
+ecore_evas_alpha_set(Ecore_Evas *ee, Eina_Bool alpha)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
/**
* Query whether an Ecore_Evas has an alpha channel.
* @param ee The Ecore_Evas to query.
- * @return 1 if ee has an alpha channel, 0 if it does not.
+ * @return EINA_TRUE if ee has an alpha channel, EINA_FALSE if it does not.
*
- * This function returns 1 if @p ee has an alpha channel, and 0 if
+ * This function returns EINA_TRUE if @p ee has an alpha channel, and EINA_FALSE if
* it does not.
*/
-EAPI int
+EAPI Eina_Bool
ecore_evas_alpha_get(const Ecore_Evas *ee)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
"ecore_evas_alpha_get");
- return 0;
+ return EINA_FALSE;
}
- return ee->alpha ? 1:0;
+ return ee->alpha ? EINA_TRUE : EINA_FALSE;
}
/**
* Set whether an Ecore_Evas has an transparent window or not.
* @param ee The Ecore_Evas to shape
- * @param transparent 1 to enable the transparent window, 0 to disable it
+ * @param transparent EINA_TRUE to enable the transparent window, EINA_FALSE to disable it
*
* This function allows you to make an Ecore_Evas translucent using an
* alpha channel. See ecore_evas_shaped_set() for details. The difference
* it's transparent).
*/
EAPI void
-ecore_evas_transparent_set(Ecore_Evas *ee, int transparent)
+ecore_evas_transparent_set(Ecore_Evas *ee, Eina_Bool transparent)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
/**
* Query whether an Ecore_Evas has an alpha channel.
* @param ee The Ecore_Evas to query.
- * @return 1 if ee has an alpha channel, 0 if it does not.
+ * @return EINA_TRUE if ee has an alpha channel, EINA_FALSE if it does not.
*
- * This function returns 1 if @p ee has an alpha channel, and 0 if
+ * This function returns EINA_TRUE if @p ee has an alpha channel, and EINA_FALSE if
* it does not.
*/
-EAPI int
+EAPI Eina_Bool
ecore_evas_transparent_get(const Ecore_Evas *ee)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
"ecore_evas_transparent_get");
- return 0;
+ return EINA_FALSE;
}
- return ee->transparent ? 1:0;
+ return ee->transparent ? EINA_TRUE : 0;
}
/**
/**
* Set the focus of an Ecore_Evas' window
* @param ee The Ecore_Evas
- * @param on 1 for focus, 0 to defocus.
+ * @param on EINA_TRUE for focus, EINA_FALSE to defocus.
*
- * This function focuses @p ee if @p on is 1, or defocuses @p ee if @p on is 0.
+ * This function focuses @p ee if @p on is EINA_TRUE, or defocuses @p ee if @p on is EINA_FALSE.
*/
EAPI void
-ecore_evas_focus_set(Ecore_Evas *ee, int on)
+ecore_evas_focus_set(Ecore_Evas *ee, Eina_Bool on)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
/**
* Query whether an Ecore_Evas' window is focused or not
* @param ee The Ecore_Evas to set
- * @return 1 if @p ee if focused, 0 if not.
+ * @return EINA_TRUE if @p ee if focused, EINA_FALSE if not.
*
*/
-EAPI int
+EAPI Eina_Bool
ecore_evas_focus_get(const Ecore_Evas *ee)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
"ecore_evas_focus_get");
- return 0;
+ return EINA_FALSE;
}
- return ee->prop.focused ? 1:0;
+ return ee->prop.focused ? EINA_TRUE : EINA_FALSE;
}
/**
* Iconify or uniconify an Ecore_Evas' window
* @param ee The Ecore_Evas
- * @param on 1 to iconify, 0 to uniconify.
+ * @param on EINA_TRUE to iconify, EINA_FALSE to uniconify.
*
- * This function iconifies @p ee if @p on is 1, or uniconifies @p ee if @p on
- * is 0.
+ * This function iconifies @p ee if @p on is EINA_TRUE, or uniconifies @p ee if @p on
+ * is EINA_FALSE.
*/
EAPI void
-ecore_evas_iconified_set(Ecore_Evas *ee, int on)
+ecore_evas_iconified_set(Ecore_Evas *ee, Eina_Bool on)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
/**
* Query whether an Ecore_Evas' window is iconified or not
* @param ee The Ecore_Evas to set
- * @return 1 if @p ee is iconified, 0 if not.
+ * @return EINA_TRUE if @p ee is iconified, EINA_FALSE if not.
*
*/
-EAPI int
+EAPI Eina_Bool
ecore_evas_iconified_get(const Ecore_Evas *ee)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
"ecore_evas_iconified_get");
- return 0;
+ return EINA_FALSE;
}
- return ee->prop.iconified ? 1:0;
+ return ee->prop.iconified ? EINA_TRUE : EINA_FALSE;
}
/**
* Set whether an Ecore_Evas' window is borderless or not
* @param ee The Ecore_Evas
- * @param on 1 for borderless, 0 for bordered.
+ * @param on EINA_TRUE for borderless, EINA_FALSE for bordered.
*
- * This function makes @p ee borderless if @p on is 1, or bordered if @p on
- * is 0.
+ * This function makes @p ee borderless if @p on is EINA_TRUE, or bordered if @p on
+ * is EINA_FALSE.
*/
EAPI void
-ecore_evas_borderless_set(Ecore_Evas *ee, int on)
+ecore_evas_borderless_set(Ecore_Evas *ee, Eina_Bool on)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
/**
* Query whether an Ecore_Evas' window is borderless or not
* @param ee The Ecore_Evas to set
- * @return 1 if @p ee is borderless, 0 if not.
+ * @return EINA_TRUE if @p ee is borderless, EINA_FALSE if not.
*
*/
-EAPI int
+EAPI Eina_Bool
ecore_evas_borderless_get(const Ecore_Evas *ee)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
"ecore_evas_borderless_get");
- return 0;
+ return EINA_FALSE;
}
- return ee->prop.borderless ? 1:0;
+ return ee->prop.borderless ? EINA_TRUE : EINA_FALSE;
}
/**
* Tell the WM whether or not to ignore an Ecore_Evas' window
* @param ee The Ecore_Evas
- * @param on 1 to ignore, 0 to not.
+ * @param on EINA_TRUE to ignore, EINA_FALSE to not.
*
- * This function causes the window manager to ignore @p ee if @p on is 1,
- * or not ignore @p ee if @p on is 0.
+ * This function causes the window manager to ignore @p ee if @p on is EINA_TRUE,
+ * or not ignore @p ee if @p on is EINA_FALSE.
*/
EAPI void
-ecore_evas_override_set(Ecore_Evas *ee, int on)
+ecore_evas_override_set(Ecore_Evas *ee, Eina_Bool on)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
/**
* Query whether an Ecore_Evas' window is overridden or not
* @param ee The Ecore_Evas to set
- * @return 1 if @p ee is overridden, 0 if not.
+ * @return EINA_TRUE if @p ee is overridden, EINA_FALSE if not.
*
*/
-EAPI int
+EAPI Eina_Bool
ecore_evas_override_get(const Ecore_Evas *ee)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
"ecore_evas_override_get");
- return 0;
+ return EINA_FALSE;
}
- return ee->prop.override ? 1:0;
+ return ee->prop.override ? EINA_TRUE : EINA_FALSE;
}
/**
* Maximize (or unmaximize) an Ecore_Evas' window
* @param ee The Ecore_Evas
- * @param on 1 to maximize, 0 to unmaximize.
+ * @param on EINA_TRUE to maximize, EINA_FALSE to unmaximize.
*
- * This function maximizes @p ee if @p on is 1, or unmaximizes @p ee
- * if @p on is 0.
+ * This function maximizes @p ee if @p on is EINA_TRUE, or unmaximizes @p ee
+ * if @p on is EINA_FALSE.
*/
EAPI void
-ecore_evas_maximized_set(Ecore_Evas *ee, int on)
+ecore_evas_maximized_set(Ecore_Evas *ee, Eina_Bool on)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
/**
* Query whether an Ecore_Evas' window is maximized or not
* @param ee The Ecore_Evas to set
- * @return 1 if @p ee is maximized, 0 if not.
+ * @return EINA_TRUE if @p ee is maximized, EINA_FALSE if not.
*
*/
-EAPI int
+EAPI Eina_Bool
ecore_evas_maximized_get(const Ecore_Evas *ee)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
"ecore_evas_maximized_get");
- return 0;
+ return EINA_FALSE;
}
- return ee->prop.maximized ? 1:0;
+ return ee->prop.maximized ? EINA_TRUE : EINA_FALSE;
}
/**
* Set whether or not an Ecore_Evas' window is fullscreen
* @param ee The Ecore_Evas
- * @param on 1 fullscreen, 0 not.
+ * @param on EINA_TRUE fullscreen, EINA_FALSE not.
*
- * This function causes @p ee to be fullscreen if @p on is 1,
- * or not if @p on is 0.
+ * This function causes @p ee to be fullscreen if @p on is EINA_TRUE,
+ * or not if @p on is EINA_FALSE.
*/
EAPI void
-ecore_evas_fullscreen_set(Ecore_Evas *ee, int on)
+ecore_evas_fullscreen_set(Ecore_Evas *ee, Eina_Bool on)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
/**
* Query whether an Ecore_Evas' window is fullscreen or not
* @param ee The Ecore_Evas to set
- * @return 1 if @p ee is fullscreen, 0 if not.
+ * @return EINA_TRUE if @p ee is fullscreen, EINA_FALSE if not.
*
*/
-EAPI int
+EAPI Eina_Bool
ecore_evas_fullscreen_get(const Ecore_Evas *ee)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
"ecore_evas_fullscreen_get");
- return 0;
+ return EINA_FALSE;
}
- return ee->prop.fullscreen ? 1:0;
+ return ee->prop.fullscreen ? EINA_TRUE : EINA_FALSE;
}
/**
* Set whether or not an Ecore_Evas' window should avoid damage
*
* @param ee The Ecore_Evas
- * @param on 1 to avoid damage, 0 to not
+ * @param The type of the damage management
*
* This function causes @p ee to be drawn to a pixmap to avoid recalculations.
* On expose events it will copy from the pixmap to the window.
/**
* Query whether an Ecore_Evas' window avoids damage or not
* @param ee The Ecore_Evas to set
- * @return 1 if @p ee avoids damage, 0 if not.
+ * @return The type of the damage management
*
*/
EAPI Ecore_Evas_Avoid_Damage_Type
{
ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
"ecore_evas_avoid_damage_get");
- return 0;
+ return ECORE_EVAS_AVOID_DAMAGE_NONE;
}
return ee->prop.avoid_damage;
}
*
*/
EAPI void
-ecore_evas_withdrawn_set(Ecore_Evas *ee, int withdrawn)
+ecore_evas_withdrawn_set(Ecore_Evas *ee, Eina_Bool withdrawn)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
* @return The Ecore_Evas window's withdrawn state.
*
*/
-EAPI int
+EAPI Eina_Bool
ecore_evas_withdrawn_get(const Ecore_Evas *ee)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
"ecore_evas_withdrawn_get");
- return 0;
+ return EINA_FALSE;
} else
- return ee->prop.withdrawn ? 1:0;
+ return ee->prop.withdrawn ? EINA_TRUE : EINA_FALSE;
}
/**
*
*/
EAPI void
-ecore_evas_sticky_set(Ecore_Evas *ee, int sticky)
+ecore_evas_sticky_set(Ecore_Evas *ee, Eina_Bool sticky)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
* @return The Ecore_Evas window's sticky state.
*
*/
-EAPI int
+EAPI Eina_Bool
ecore_evas_sticky_get(const Ecore_Evas *ee)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
"ecore_evas_sticky_get");
- return 0;
+ return EINA_FALSE;
} else
- return ee->prop.sticky ? 1:0;
+ return ee->prop.sticky ? EINA_TRUE : EINA_FALSE;
}
/**
*
*/
EAPI void
-ecore_evas_ignore_events_set(Ecore_Evas *ee, int ignore)
+ecore_evas_ignore_events_set(Ecore_Evas *ee, Eina_Bool ignore)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
* @return The Ecore_Evas window's ignore state.
*
*/
-EAPI int
+EAPI Eina_Bool
ecore_evas_ignore_events_get(const Ecore_Evas *ee)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
"ecore_evas_ignore_events_get");
- return 0;
+ return EINA_FALSE;
}
- return ee->ignore_events ? 1 : 0;
+ return ee->ignore_events ? EINA_TRUE : EINA_FALSE;
}
EAPI void
-ecore_evas_manual_render_set(Ecore_Evas *ee, int manual_render)
+ecore_evas_manual_render_set(Ecore_Evas *ee, Eina_Bool manual_render)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
ee->manual_render = manual_render;
}
-EAPI int
+EAPI Eina_Bool
ecore_evas_manual_render_get(const Ecore_Evas *ee)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
"ecore_evas_manual_render_get");
- return 0;
+ return EINA_FALSE;
}
- return ee->manual_render ? 1 : 0;
+ return ee->manual_render ? EINA_TRUE : EINA_FALSE;
}
EAPI void
}
EAPI void
-ecore_evas_comp_sync_set(Ecore_Evas *ee, int do_sync)
+ecore_evas_comp_sync_set(Ecore_Evas *ee, Eina_Bool do_sync)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
ee->no_comp_sync = !do_sync;
}
-EAPI int
+EAPI Eina_Bool
ecore_evas_comp_sync_get(const Ecore_Evas *ee)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
"ecore_evas_comp_sync_get");
- return 0;
+ return EINA_FALSE;
}
return !ee->no_comp_sync;
}