} /* _ecore_x_window_manage_error */
/* FIXME: round trip */
-EAPI int
+EAPI Eina_Bool
ecore_x_window_manage(Ecore_X_Window window)
{
xcb_get_window_attributes_cookie_t cookie_attr;
return 1;
} /* ecore_x_window_manage */
-EAPI int
+EAPI Eina_Bool
ecore_x_pointer_control_set(int accel_num,
int accel_denom,
int threshold)
_ecore_xcb_reply_cache(reply);
} /* ecore_x_pointer_control_get_fetch */
-EAPI int
+EAPI Eina_Bool
ecore_x_pointer_control_get(int *accel_num,
int *accel_denom,
int *threshold)
return 1;
} /* ecore_x_pointer_control_get */
-EAPI int
+EAPI Eina_Bool
ecore_x_pointer_mapping_set(unsigned char *map,
int nmap)
{
_ecore_xcb_reply_cache(reply);
} /* ecore_x_pointer_mapping_get_fetch */
-EAPI int
+EAPI Eina_Bool
ecore_x_pointer_mapping_get(unsigned char *map,
int nmap)
{
return 1;
} /* ecore_x_pointer_mapping_get */
-EAPI int
+EAPI Eina_Bool
ecore_x_pointer_grab(Ecore_X_Window window)
{
xcb_grab_pointer_cookie_t cookie;
return 1;
} /* ecore_x_pointer_grab */
-EAPI int
+EAPI Eina_Bool
ecore_x_pointer_confine_grab(Ecore_X_Window window)
{
xcb_grab_pointer_cookie_t cookie;
xcb_ungrab_pointer(_ecore_xcb_conn, XCB_CURRENT_TIME);
} /* ecore_x_pointer_ungrab */
-EAPI int
+EAPI Eina_Bool
ecore_x_pointer_warp(Ecore_X_Window window,
int x,
int y)
return 1;
} /* ecore_x_pointer_warp */
-EAPI int
+EAPI Eina_Bool
ecore_x_keyboard_grab(Ecore_X_Window window)
{
xcb_grab_keyboard_cookie_t cookie;
*
* @return !0 on success.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_client_message32_send(Ecore_X_Window window,
Ecore_X_Atom type,
Ecore_X_Event_Mask mask,
*
* @return !0 on success.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_client_message8_send(Ecore_X_Window window,
Ecore_X_Atom type,
const void *data,
} /* ecore_x_client_message8_send */
/* FIXME: round trip */
-EAPI int
+EAPI Eina_Bool
ecore_x_mouse_move_send(Ecore_X_Window window,
int x,
int y)
} /* ecore_x_mouse_move_send */
/* FIXME: round trip */
-EAPI int
+EAPI Eina_Bool
ecore_x_mouse_down_send(Ecore_X_Window window,
int x,
int y,
} /* ecore_x_mouse_down_send */
/* FIXME: round trip */
-EAPI int
+EAPI Eina_Bool
ecore_x_mouse_up_send(Ecore_X_Window window,
int x,
int y,
* or greater, 0 otherwise.
* @ingroup Ecore_X_Composite_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_composite_query(void)
{
#ifdef ECORE_XCB_COMPOSITE
extern int _ecore_xcb_xcursor;
-EAPI int
+EAPI Eina_Bool
ecore_x_cursor_color_supported_get(void)
{
return _ecore_xcb_xcursor;
* 0 otherwise.
* @ingroup Ecore_X_Damage_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_damage_query(void)
{
#ifdef ECORE_XCB_DAMAGE
EAPI void
ecore_x_dnd_aware_set(Ecore_X_Window window,
- int on)
+ Eina_Bool on)
{
Ecore_X_Atom prop_data = ECORE_X_DND_VERSION;
* ecore_x_dnd_type_get_prefetch(), which sends the GetProperty request,
* then ecore_x_dnd_type_get_fetch(), which gets the reply.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_dnd_type_isset(Ecore_X_Window window,
const char *type)
{
EAPI void
ecore_x_dnd_type_set(Ecore_X_Window window,
const char *type,
- int on)
+ Eina_Bool on)
{
xcb_intern_atom_cookie_t cookie;
xcb_intern_atom_reply_t *reply;
* ecore_x_dnd_begin_prefetch(), which sends the GetProperty request,
* then ecore_x_dnd_begin_fetch(), which gets the reply.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_dnd_begin(Ecore_X_Window source,
unsigned char *data,
int size)
return 1;
} /* ecore_x_dnd_begin */
-EAPI int
+EAPI Eina_Bool
ecore_x_dnd_drop(void)
{
uint8_t status = 0;
} /* ecore_x_dnd_drop */
EAPI void
-ecore_x_dnd_send_status(int will_accept,
- int suppress,
+ecore_x_dnd_send_status(Eina_Bool will_accept,
+ Eina_Bool suppress,
Ecore_X_Rectangle rectangle,
Ecore_X_Atom action)
{
* 0 otherwise.
* @ingroup Ecore_X_DPMS_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_dpms_query(void)
{
#ifdef ECORE_XCB_DPMS
* then ecore_x_dpms_capable_get_fetch(), which gets the reply.
* @ingroup Ecore_X_DPMS_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_dpms_capable_get(void)
{
int capable = 0;
* @return Returns always 1.
* @ingroup Ecore_X_DPMS_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_dpms_timeouts_set(unsigned int standby,
unsigned int suspend,
unsigned int off)
*/
EAPI void
ecore_x_icccm_hints_set(Ecore_X_Window window,
- int accepts_focus,
+ Eina_Bool accepts_focus,
Ecore_X_Window_State_Hint initial_state,
Ecore_X_Pixmap icon_pixmap,
Ecore_X_Pixmap icon_mask,
Ecore_X_Window icon_window,
Ecore_X_Window window_group,
- int is_urgent)
+ Eina_Bool is_urgent)
{
xcb_wm_hints_t hints;
* then ecore_x_icccm_hints_get_fetch(), which gets the reply.
* @ingroup Ecore_X_ICCCM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_icccm_hints_get(Ecore_X_Window window __UNUSED__,
- int *accepts_focus,
+ Eina_Bool *accepts_focus,
Ecore_X_Window_State_Hint *initial_state,
Ecore_X_Pixmap *icon_pixmap,
Ecore_X_Pixmap *icon_mask,
Ecore_X_Window *icon_window,
Ecore_X_Window *window_group,
- int *is_urgent)
+ Eina_Bool *is_urgent)
{
xcb_wm_hints_t hints;
xcb_get_property_reply_t *reply;
*/
EAPI void
ecore_x_icccm_size_pos_hints_set(Ecore_X_Window window,
- int request_pos,
+ Eina_Bool request_pos,
Ecore_X_Gravity gravity,
int min_w,
int min_h,
* then ecore_x_icccm_size_pos_hints_get_fetch(), which gets the reply.
* @ingroup Ecore_X_ICCCM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_icccm_size_pos_hints_get(Ecore_X_Window window __UNUSED__,
- int *request_pos,
+ Eina_Bool *request_pos,
Ecore_X_Gravity *gravity,
int *min_w,
int *min_h,
EAPI void
ecore_x_icccm_protocol_set(Ecore_X_Window window,
Ecore_X_WM_Protocol protocol,
- int on)
+ Eina_Bool on)
{
xcb_get_property_reply_t *reply;
Ecore_X_Atom *protos = NULL;
* then ecore_x_icccm_protocol_get_fetch(), which gets the reply.
* @ingroup Ecore_X_ICCCM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_icccm_protocol_isset(Ecore_X_Window window __UNUSED__,
Ecore_X_WM_Protocol protocol)
{
* then ecore_x_mwm_hints_get_fetch(), which gets the reply.
* @ingroup Ecore_X_MWM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_mwm_hints_get(Ecore_X_Window window __UNUSED__,
Ecore_X_MWM_Hint_Func *fhint,
Ecore_X_MWM_Hint_Decor *dhint,
*/
EAPI void
ecore_x_mwm_borderless_set(Ecore_X_Window window,
- int borderless)
+ Eina_Bool borderless)
{
uint32_t data[5] = {0, 0, 0, 0, 0};
* then ecore_x_netwm_supported_get_fetch(), which gets the reply.
* @ingroup Ecore_X_NetWM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_supported_get(Ecore_X_Window root,
Ecore_X_Atom **supported,
int *num)
*/
EAPI void
ecore_x_netwm_showing_desktop_set(Ecore_X_Window root,
- int on)
+ Eina_Bool on)
{
uint32_t val;
* then ecore_x_netwm_desktop_get_fetch(), which gets the reply.
* @ingroup Ecore_X_NetWM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_desktop_get(Ecore_X_Window window,
unsigned int *desk)
{
* then ecore_x_netwm_strut_get_fetch(), which gets the reply.
* @ingroup Ecore_X_NetWM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_strut_get(Ecore_X_Window window,
int *left,
int *right,
* then ecore_x_netwm_strut_partial_get_fetch(), which gets the reply.
* @ingroup Ecore_X_NetWM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_strut_partial_get(Ecore_X_Window window,
int *left,
int *right,
* then ecore_x_netwm_icons_get_fetch(), which gets the reply.
* @ingroup Ecore_X_NetWM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_icons_get(Ecore_X_Window window,
Ecore_X_Icon **icon,
int *num)
* then ecore_x_netwm_icon_geometry_get_fetch(), which gets the reply.
* @ingroup Ecore_X_NetWM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_icon_geometry_get(Ecore_X_Window window,
int *x,
int *y,
* then ecore_x_netwm_pid_get_fetch(), which gets the reply.
* @ingroup Ecore_X_NetWM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_pid_get(Ecore_X_Window window,
int *pid)
{
* then ecore_x_netwm_handled_icons_get_fetch(), which gets the reply.
* @ingroup Ecore_X_NetWM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_handled_icons_get(Ecore_X_Window window)
{
int ret = 0;
* then ecore_x_netwm_user_time_get_fetch(), which gets the reply.
* @ingroup Ecore_X_NetWM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_user_time_get(Ecore_X_Window window,
unsigned int *time)
{
* then ecore_x_netwm_window_state_get_fetch(), which gets the reply.
* @ingroup Ecore_X_NetWM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_window_state_get(Ecore_X_Window window,
Ecore_X_Window_State **state,
unsigned int *num)
* then ecore_x_netwm_window_type_get_fetch(), which gets the reply.
* @ingroup Ecore_X_NetWM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_window_type_get(Ecore_X_Window window,
Ecore_X_Window_Type *type)
{
* then ecore_x_netwm_allowed_action_get_fetch(), which gets the reply.
* @ingroup Ecore_X_NetWM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_allowed_action_isset(Ecore_X_Window window,
Ecore_X_Action action)
{
* then ecore_x_netwm_allowed_action_get_fetch(), which gets the reply.
* @ingroup Ecore_X_NetWM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_allowed_action_get(Ecore_X_Window window,
Ecore_X_Action **action,
unsigned int *num)
* then ecore_x_netwm_opacity_get_fetch(), which gets the reply.
* @ingroup Ecore_X_NetWM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_opacity_get(Ecore_X_Window window,
unsigned int *opacity)
{
* then ecore_x_netwm_frame_size_get_fetch(), which gets the reply.
* @ingroup Ecore_X_NetWM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_frame_size_get(Ecore_X_Window window,
int *fl,
int *fr,
* then ecore_x_netwm_frame_size_get_fetch(), which gets the reply.
* @ingroup Ecore_X_NetWM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_sync_counter_get(Ecore_X_Window window,
Ecore_X_Sync_Counter *counter)
{
Ecore_X_Window root,
Ecore_X_Window_State s1,
Ecore_X_Window_State s2,
- int set)
+ Eina_Bool set)
{
xcb_client_message_event_t ev;
* Return 1 if @p screen is composited, 0 otherwise.
* @ingroup Ecore_X_NetWM_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_screen_is_composited(int screen)
{
char buf[32];
* 0 otherwise.
* @ingroup Ecore_X_RandR_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_randr_query(void)
{
#ifdef ECORE_XCB_RANDR
* the client connected, to avoid race conditions.
* @ingroup Ecore_X_RandR_Group
*/
-EAPI int
+/*
+EAPI Eina_Bool
ecore_x_randr_events_select(Ecore_X_Window window,
int on)
{
xcb_randr_select_input(_ecore_xcb_conn, window,
on ? XCB_RANDR_SCREEN_CHANGE_NOTIFY : 0);
return 1;
-#else /* ifdef ECORE_XCB_RANDR */
+#else
return 0;
-#endif /* ECORE_XCB_RANDR */
-} /* ecore_x_randr_events_select */
+#endif
+}*/
/**
* Sends the GetScreenInfo request.
* then ecore_x_randr_get_screen_info_fetch(), which gets the reply.
* @ingroup Ecore_X_RandR_Group
*/
+/*
EAPI Ecore_X_Randr_Rotation
ecore_x_randr_screen_rotations_get(Ecore_X_Window root __UNUSED__)
{
return 0;
return reply->rotations;
-#else /* ifdef ECORE_XCB_RANDR */
+#else
return 0;
-#endif /* ECORE_XCB_RANDR */
-} /* ecore_x_randr_screen_rotations_get */
+#endif
+}*/
/**
* Get the rotation.
* then ecore_x_randr_get_screen_info_fetch(), which gets the reply.
* @ingroup Ecore_X_RandR_Group
*/
+/*
EAPI Ecore_X_Randr_Rotation
ecore_x_randr_screen_rotation_get(Ecore_X_Window root __UNUSED__)
{
return 0;
return reply->rotation;
-#else /* ifdef ECORE_XCB_RANDR */
+#else
return 0;
-#endif /* ECORE_XCB_RANDR */
-} /* ecore_x_randr_screen_rotation_get */
+#endif
+}*/
/**
* Get the frame buffer sizes.
* then ecore_x_randr_get_screen_info_fetch(), which gets the reply.
* @ingroup Ecore_X_RandR_Group
*/
+/*
EAPI Ecore_X_Screen_Size *
ecore_x_randr_screen_sizes_get(Ecore_X_Window root __UNUSED__,
int *num)
}
return ret;
-#else /* ifdef ECORE_XCB_RANDR */
+#else
if (num)
*num = 0;
return NULL;
-#endif /* ECORE_XCB_RANDR */
-} /* ecore_x_randr_screen_sizes_get */
+#endif
+}*/
/**
* Get the current frame buffer size.
* then ecore_x_randr_get_screen_info_fetch(), which gets the reply.
* @ingroup Ecore_X_RandR_Group
*/
+/*
EAPI Ecore_X_Screen_Size
ecore_x_randr_current_screen_size_get(Ecore_X_Window root __UNUSED__)
{
ret.height = sizes[size_index].mheight;
}
-#endif /* ECORE_XCB_RANDR */
+#endif
return ret;
-} /* ecore_x_randr_current_screen_size_get */
+}*/
/**
* Get the current refresh rate.
* then ecore_x_randr_get_screen_info_fetch(), which gets the reply.
* @ingroup Ecore_X_RandR_Group
*/
+/*
EAPI Ecore_X_Screen_Refresh_Rate
ecore_x_randr_current_screen_refresh_rate_get(Ecore_X_Window root __UNUSED__)
{
return ret;
ret.rate = reply->rate;
-#endif /* ECORE_XCB_RANDR */
+#endif
return ret;
-} /* ecore_x_randr_current_screen_refresh_rate_get */
+}*/
/**
* Get the refresh rates.
* then ecore_x_randr_get_screen_info_fetch(), which gets the reply.
* @ingroup Ecore_X_RandR_Group
*/
+/*
EAPI Ecore_X_Screen_Refresh_Rate *
ecore_x_randr_screen_refresh_rates_get(Ecore_X_Window root __UNUSED__,
int size_id __UNUSED__,
if (num)
*num = n;
- /* FIXME: maybe there's a missing function in xcb randr implementation */
iter = xcb_randr_get_screen_info_rates_iterator(reply);
tmp = ret;
for (; iter.rem; xcb_randr_refresh_rates_next(&iter), tmp++)
}
return ret;
-#else /* ifdef ECORE_XCB_RANDR */
+#else
if (num)
*num = 0;
return NULL;
-#endif /* ECORE_XCB_RANDR */
-} /* ecore_x_randr_screen_refresh_rates_get */
+#endif
+}*/
/* FIXME: round trip. Should we remove it ? */
* Note that that function is blocking.
* @ingroup Ecore_X_RandR_Group
*/
+/*
EAPI void
ecore_x_randr_screen_rotation_set(Ecore_X_Window root,
Ecore_X_Randr_Rotation rot)
if (reply_config)
free(reply_config);
-#endif /* ECORE_XCB_RANDR */
-} /* ecore_x_randr_screen_rotation_set */
+#endif
+}*/
/* FIXME: round trip. Should we remove it ? */
* Note that that function is blocking.
* @ingroup Ecore_X_RandR_Group
*/
+/*
EAPI int
ecore_x_randr_screen_size_set(Ecore_X_Window root,
Ecore_X_Screen_Size size)
free(reply_config);
return 1;
-#else /* ifdef ECORE_XCB_RANDR */
+#else
return 0;
-#endif /* ECORE_XCB_RANDR */
-} /* ecore_x_randr_screen_size_set */
+#endif
+}*/
/* FIXME: round trip. Should we remove it ? */
* Note that that function is blocking.
* @ingroup Ecore_X_RandR_Group
*/
+/*
EAPI int
ecore_x_randr_screen_refresh_rate_set(Ecore_X_Window root,
Ecore_X_Screen_Size size,
free(reply_config);
return 1;
-#else /* ifdef ECORE_XCB_RANDR */
+#else
return 0;
-#endif /* ECORE_XCB_RANDR */
-} /* ecore_x_randr_screen_refresh_rate_set */
+#endif
+}*/
free(region);
} /* ecore_x_xregion_free */
-EAPI int
+EAPI Eina_Bool
ecore_x_xregion_set(Ecore_X_XRegion *region, Ecore_X_GC gc)
{
xcb_rectangle_t *rects;
pixman_region_translate((pixman_region16_t *)region, x, y);
} /* ecore_x_xregion_translate */
-EAPI int
+EAPI Eina_Bool
ecore_x_xregion_intersect(Ecore_X_XRegion *dst, Ecore_X_XRegion *r1, Ecore_X_XRegion *r2)
{
return pixman_region_intersect((pixman_region16_t *)dst, (pixman_region16_t *)r1, (pixman_region16_t *)r2);
} /* ecore_x_xregion_intersect */
-EAPI int
+EAPI Eina_Bool
ecore_x_xregion_union(Ecore_X_XRegion *dst, Ecore_X_XRegion *r1, Ecore_X_XRegion *r2)
{
return pixman_region_union((pixman_region16_t *)dst, (pixman_region16_t *)r1, (pixman_region16_t *)r2);
} /* ecore_x_xregion_union */
-EAPI int
+EAPI Eina_Bool
ecore_x_xregion_union_rect(Ecore_X_XRegion *dst, Ecore_X_XRegion *src, Ecore_X_Rectangle *rect)
{
return pixman_region_union_rect((pixman_region16_t *)dst, (pixman_region16_t *)src,
rect->x, rect->y, rect->width, rect->height);
} /* ecore_x_xregion_union_rect */
-EAPI int
+EAPI Eina_Bool
ecore_x_xregion_subtract(Ecore_X_XRegion *dst, Ecore_X_XRegion *rm, Ecore_X_XRegion *rs)
{
return pixman_region_subtract((pixman_region16_t *)dst, (pixman_region16_t *)rm, (pixman_region16_t *)rs);
} /* ecore_x_xregion_subtract */
-EAPI int
+EAPI Eina_Bool
ecore_x_xregion_is_empty(Ecore_X_XRegion *region)
{
if (!region)
return !pixman_region_not_empty((pixman_region16_t *)region);
} /* ecore_x_xregion_is_empty */
-EAPI int
+EAPI Eina_Bool
ecore_x_xregion_is_equal(Ecore_X_XRegion *r1, Ecore_X_XRegion *r2)
{
if (!r1 || !r2)
return pixman_region_equal((pixman_region16_t *)r1, (pixman_region16_t *)r2);
} /* ecore_x_xregion_is_equal */
-EAPI int
+EAPI Eina_Bool
ecore_x_xregion_point_contain(Ecore_X_XRegion *region, int x, int y)
{
if (!region)
return pixman_region_contains_point((pixman_region16_t *)region, x, y, NULL);
} /* ecore_x_xregion_point_contain */
-EAPI int
+EAPI Eina_Bool
ecore_x_xregion_rect_contain(Ecore_X_XRegion *region, Ecore_X_Rectangle *rect)
{
pixman_box16_t box;
* 0 otherwise.
* @ingroup Ecore_X_ScreenSaver_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_screensaver_event_available_get(void)
{
return 1;
* @ingroup Ecore_X_ScreenSaver_Group
*/
EAPI void
-ecore_x_screensaver_event_listen_set(int on)
+ecore_x_screensaver_event_listen_set(Eina_Bool on)
{
#ifdef ECORE_XCB_SCREENSAVER
xcb_screensaver_select_input(_ecore_xcb_conn,
static Ecore_X_Selection_Converter *converters = NULL;
static Ecore_X_Selection_Parser *parsers = NULL;
-static int _ecore_x_selection_converter_text(char *target, void *data, int size, void **data_ret, int *size_ret, Ecore_X_Atom *tprop, int *);
-static int _ecore_x_selection_data_default_free(void *data);
+static Eina_Bool _ecore_x_selection_converter_text(char *target, void *data, int size, void **data_ret, int *size_ret, Ecore_X_Atom *tprop, int *);
+static Eina_Bool _ecore_x_selection_data_default_free(void *data);
static void * _ecore_x_selection_parser_files(const char *target, void *data, int size, int format);
-static int _ecore_x_selection_data_files_free(void *data);
+static Eina_Bool _ecore_x_selection_data_files_free(void *data);
static void * _ecore_x_selection_parser_text(const char *target, void *data, int size, int format);
-static int _ecore_x_selection_data_text_free(void *data);
+static Eina_Bool _ecore_x_selection_data_text_free(void *data);
static void * _ecore_x_selection_parser_targets(const char *target, void *data, int size, int format);
-static int _ecore_x_selection_data_targets_free(void *data);
+static Eina_Bool _ecore_x_selection_data_targets_free(void *data);
#define ECORE_X_SELECTION_DATA(x) ((Ecore_X_Selection_Data *)(x))
* ecore_x_selection_primary_prefetch(), which sends the GetSelectionOwner request,
* then ecore_x_selection_primary_fetch(), which gets the reply.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_selection_primary_set(Ecore_X_Window window,
const void *data,
int size)
* ecore_x_selection_primary_prefetch(), which sends the GetSelectionOwner request,
* then ecore_x_selection_primary_fetch(), which gets the reply.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_selection_primary_clear(void)
{
return _ecore_x_selection_set(XCB_NONE, NULL, 0, ECORE_X_ATOM_SELECTION_PRIMARY);
* ecore_x_selection_secondary_prefetch(), which sends the GetSelectionOwner request,
* then ecore_x_selection_secondary_fetch(), which gets the reply.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_selection_secondary_set(Ecore_X_Window window,
const void *data,
int size)
* ecore_x_selection_secondary_prefetch(), which sends the GetSelectionOwner request,
* then ecore_x_selection_secondary_fetch(), which gets the reply.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_selection_secondary_clear(void)
{
return _ecore_x_selection_set(XCB_NONE, NULL, 0, ECORE_X_ATOM_SELECTION_SECONDARY);
* ecore_x_selection_xdnd_prefetch(), which sends the GetSelectionOwner request,
* then ecore_x_selection_xdnd_fetch(), which gets the reply.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_selection_xdnd_set(Ecore_X_Window window,
const void *data,
int size)
* ecore_x_selection_xdnd_prefetch(), which sends the GetSelectionOwner request,
* then ecore_x_selection_xdnd_fetch(), which gets the reply.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_selection_xdnd_clear(void)
{
return _ecore_x_selection_set(XCB_NONE, NULL, 0, ECORE_X_ATOM_SELECTION_XDND);
* ecore_x_selection_clipboard_prefetch(), which sends the GetSelectionOwner request,
* then ecore_x_selection_clipboard_fetch(), which gets the reply.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_selection_clipboard_set(Ecore_X_Window window,
const void *data,
int size)
* ecore_x_selection_clipboard_prefetch(), which sends the GetSelectionOwner request,
* then ecore_x_selection_clipboard_fetch(), which gets the reply.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_selection_clipboard_clear(void)
{
return _ecore_x_selection_set(XCB_NONE, NULL, 0, ECORE_X_ATOM_SELECTION_CLIPBOARD);
EAPI void
ecore_x_selection_converter_atom_add(Ecore_X_Atom target,
- int (*func)(char *target,
- void *data,
- int size,
- void **data_ret,
- int *size_ret,
- Ecore_X_Atom *ttype,
- int *tsize))
+ Eina_Bool (*func)
+ (char *target,
+ void *data,
+ int size,
+ void **data_ret,
+ int *size_ret,
+ Ecore_X_Atom *ttype,
+ int *tsize))
{
Ecore_X_Selection_Converter *cnv;
EAPI void
ecore_x_selection_converter_add(char *target,
- int (*func)(char *target,
- void *data,
- int size,
- void **data_ret,
- int *size_ret,
- Ecore_X_Atom *,
- int *))
+ Eina_Bool (*func)
+ (char *target,
+ void *data,
+ int size,
+ void **data_ret,
+ int *size_ret,
+ Ecore_X_Atom *,
+ int *))
{
Ecore_X_Atom x_target;
ecore_x_selection_converter_atom_del(x_target);
} /* ecore_x_selection_converter_del */
-EAPI int
+EAPI Eina_Bool
ecore_x_selection_notify_send(Ecore_X_Window requestor,
Ecore_X_Atom selection,
Ecore_X_Atom target,
} /* ecore_x_selection_notify_send */
/* Locate and run conversion callback for specified selection target */
-EAPI int
+EAPI Eina_Bool
ecore_x_selection_convert(Ecore_X_Atom selection,
Ecore_X_Atom target,
void **data_ret,
/* TODO: We need to work out a mechanism for automatic conversion to any requested
* locale using Ecore_Txt functions */
/* Converter for standard non-utf8 text targets */
-static int
+static Eina_Bool
_ecore_x_selection_converter_text(char *target, void *data, int size, void **data_ret, int *size_ret, Ecore_X_Atom *targprop, int *s)
{
/* FIXME: to do... */
return sel;
} /* _ecore_x_selection_parse */
-static int
+static Eina_Bool
_ecore_x_selection_data_default_free(void *data)
{
Ecore_X_Selection_Data *sel;
return ECORE_X_SELECTION_DATA(sel);
} /* _ecore_x_selection_parser_files */
-static int
+static Eina_Bool
_ecore_x_selection_data_files_free(void *data)
{
Ecore_X_Selection_Data_Files *sel;
return sel;
} /* _ecore_x_selection_parser_text */
-static int
+static Eina_Bool
_ecore_x_selection_data_text_free(void *data)
{
Ecore_X_Selection_Data_Text *sel;
return sel;
} /* _ecore_x_selection_parser_targets */
-static int
+static Eina_Bool
_ecore_x_selection_data_targets_free(void *data)
{
Ecore_X_Selection_Data_Targets *sel;
EAPI void
ecore_x_window_shape_events_select(Ecore_X_Window dest_win,
- int on)
+ Eina_Bool on)
{
#ifdef ECORE_XCB_SHAPE
xcb_shape_select_input(_ecore_xcb_conn, dest_win, on ? 1 : 0);
* 0 otherwise.
* @ingroup Ecore_X_Sync_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_sync_query(void)
{
#ifdef ECORE_XCB_SYNC
* Delete the @p alarm. Returns 1 on success, 0 otherwise.
* @ingroup Ecore_X_Sync_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_sync_alarm_free(Ecore_X_Sync_Alarm alarm)
{
#ifdef ECORE_XCB_SYNC
/* FIXME: round trip */
-EAPI int
+EAPI Eina_Bool
ecore_x_sync_counter_query(Ecore_X_Sync_Counter counter, unsigned int *val)
{
#ifdef ECORE_XCB_SYNC
*/
EAPI void
ecore_x_window_override_set(Ecore_X_Window window,
- int override_redirect)
+ Eina_Bool override_redirect)
{
uint32_t value_list;
*/
EAPI void
ecore_x_window_cursor_show(Ecore_X_Window window,
- int show)
+ Eina_Bool show)
{
if (window == 0)
window = ((xcb_screen_t *)_ecore_xcb_screen)->root;
* then ecore_x_get_window_attributes_fetch(), which gets the reply.
* @ingroup Ecore_X_Window_Get_Attributes_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_window_attributes_get(Ecore_X_Window window __UNUSED__,
Ecore_X_Window_Attributes *att_ret)
{
/* FIXME : round trips because of GetWMProtocols */
/* should we rewrite its code ? */
-EAPI int
+EAPI Eina_Bool
ecore_x_window_prop_protocol_isset(Ecore_X_Window window,
Ecore_X_WM_Protocol protocol)
{
* 0 otherwise.
* @ingroup Ecore_X_Xinerama_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_xinerama_query(void)
{
#ifdef ECORE_XCB_XINERAMA
* then ecore_x_xinerama_query_screens_fetch(), which gets the reply.
* @ingroup Ecore_X_Xinerama_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_xinerama_screen_geometry_get(int screen,
int *x,
int *y,