EAPI void ecore_x_event_mask_unset(Ecore_X_Window w,
Ecore_X_Event_Mask mask);
-EAPI int ecore_x_selection_notify_send(Ecore_X_Window requestor,
+EAPI Eina_Bool ecore_x_selection_notify_send(Ecore_X_Window requestor,
Ecore_X_Atom selection,
Ecore_X_Atom target,
Ecore_X_Atom property,
Ecore_X_Time time);
EAPI void ecore_x_selection_primary_prefetch(void);
EAPI void ecore_x_selection_primary_fetch(void);
-EAPI int ecore_x_selection_primary_set(Ecore_X_Window w,
+EAPI Eina_Bool ecore_x_selection_primary_set(Ecore_X_Window w,
const void *data,
int size);
-EAPI int ecore_x_selection_primary_clear(void);
+EAPI Eina_Bool ecore_x_selection_primary_clear(void);
EAPI void ecore_x_selection_secondary_prefetch(void);
EAPI void ecore_x_selection_secondary_fetch(void);
-EAPI int ecore_x_selection_secondary_set(Ecore_X_Window w,
+EAPI Eina_Bool ecore_x_selection_secondary_set(Ecore_X_Window w,
const void *data,
int size);
-EAPI int ecore_x_selection_secondary_clear(void);
+EAPI Eina_Bool ecore_x_selection_secondary_clear(void);
EAPI void ecore_x_selection_xdnd_prefetch(void);
EAPI void ecore_x_selection_xdnd_fetch(void);
-EAPI int ecore_x_selection_xdnd_set(Ecore_X_Window w,
+EAPI Eina_Bool ecore_x_selection_xdnd_set(Ecore_X_Window w,
const void *data,
int size);
-EAPI int ecore_x_selection_xdnd_clear(void);
+EAPI Eina_Bool ecore_x_selection_xdnd_clear(void);
EAPI void ecore_x_selection_clipboard_prefetch(void);
EAPI void ecore_x_selection_clipboard_fetch(void);
-EAPI int ecore_x_selection_clipboard_set(Ecore_X_Window w,
+EAPI Eina_Bool ecore_x_selection_clipboard_set(Ecore_X_Window w,
const void *data,
int size);
-EAPI int ecore_x_selection_clipboard_clear(void);
+EAPI Eina_Bool ecore_x_selection_clipboard_clear(void);
EAPI void ecore_x_selection_primary_request(Ecore_X_Window w,
const char *target);
EAPI void ecore_x_selection_secondary_request(Ecore_X_Window w,
const char *target);
EAPI void ecore_x_selection_clipboard_request(Ecore_X_Window w,
const char *target);
-EAPI int ecore_x_selection_convert(Ecore_X_Atom selection,
+EAPI Eina_Bool ecore_x_selection_convert(Ecore_X_Atom selection,
Ecore_X_Atom target,
void **data_ret,
int *len,
Ecore_X_Atom *targprop,
int *targsize);
-EAPI void ecore_x_selection_converter_add(char *target, int (*func)(
+EAPI void ecore_x_selection_converter_add(char *target, Eina_Bool (*func)(
char *target,
void *data,
int size,
int *size_ret,
Ecore_X_Atom *,
int *));
-EAPI void ecore_x_selection_converter_atom_add(Ecore_X_Atom target, int (*func)(
+EAPI void ecore_x_selection_converter_atom_add(Ecore_X_Atom target, Eina_Bool (*func)(
char *target,
void *data,
int size,
int format));
EAPI void ecore_x_selection_parser_del(const char *target);
-EAPI void ecore_x_dnd_aware_set(Ecore_X_Window win, int on);
+EAPI void ecore_x_dnd_aware_set(Ecore_X_Window win, Eina_Bool on);
EAPI void ecore_x_dnd_version_get_prefetch(Ecore_X_Window window);
EAPI void ecore_x_dnd_version_get_fetch(void);
EAPI int ecore_x_dnd_version_get(Ecore_X_Window win);
EAPI void ecore_x_dnd_type_get_prefetch(Ecore_X_Window window);
EAPI void ecore_x_dnd_type_get_fetch(void);
-EAPI int ecore_x_dnd_type_isset(Ecore_X_Window win,
+EAPI Eina_Bool ecore_x_dnd_type_isset(Ecore_X_Window win,
const char *type);
EAPI void ecore_x_dnd_type_set(Ecore_X_Window win,
const char *type,
- int on);
+ Eina_Bool on);
EAPI void ecore_x_dnd_types_set(Ecore_X_Window win,
const char **types,
unsigned int num_types);
unsigned int num_actions);
EAPI void ecore_x_dnd_begin_prefetch(Ecore_X_Window source);
EAPI void ecore_x_dnd_begin_fetch(void);
-EAPI int ecore_x_dnd_begin(Ecore_X_Window source,
+EAPI Eina_Bool ecore_x_dnd_begin(Ecore_X_Window source,
unsigned char *data,
int size);
-EAPI int ecore_x_dnd_drop(void);
-EAPI void ecore_x_dnd_send_status(int will_accept,
- int suppress,
+EAPI Eina_Bool ecore_x_dnd_drop(void);
+EAPI void ecore_x_dnd_send_status(Eina_Bool will_accept,
+ Eina_Bool suppress,
Ecore_X_Rectangle rectangle,
Ecore_X_Atom action);
EAPI void ecore_x_dnd_send_finished(void);
int width);
EAPI int ecore_x_window_depth_get(Ecore_X_Window win);
EAPI void ecore_x_window_cursor_show(Ecore_X_Window win,
- int show);
+ Eina_Bool show);
EAPI void ecore_x_window_defaults_set(Ecore_X_Window win);
EAPI int ecore_x_window_visible_get(Ecore_X_Window win);
EAPI Ecore_X_Window ecore_x_window_shadow_tree_at_xy_with_skip_get(
int w,
int h);
EAPI void ecore_x_window_override_set(Ecore_X_Window win,
- int override);
+ Eina_Bool override);
EAPI void ecore_x_window_prop_card32_set(
Ecore_X_Window win,
EAPI char * ecore_x_window_prop_string_get(
Ecore_X_Window win,
Ecore_X_Atom type);
-EAPI int ecore_x_window_prop_protocol_isset(
+EAPI Eina_Bool ecore_x_window_prop_protocol_isset(
Ecore_X_Window win,
Ecore_X_WM_Protocol protocol);
EAPI Ecore_X_WM_Protocol * ecore_x_window_prop_protocol_list_get(
int *num_ret);
EAPI void ecore_x_window_shape_events_select(
Ecore_X_Window win,
- int on);
+ Eina_Bool on);
EAPI void ecore_x_window_shape_input_mask_set(
Ecore_X_Window win,
Ecore_X_Pixmap mask);
const unsigned int *value_list);
EAPI void ecore_x_gc_free(Ecore_X_GC gc);
-EAPI int ecore_x_client_message32_send(Ecore_X_Window win,
+EAPI Eina_Bool ecore_x_client_message32_send(Ecore_X_Window win,
Ecore_X_Atom type,
Ecore_X_Event_Mask mask,
long d0,
long d2,
long d3,
long d4);
-EAPI int ecore_x_client_message8_send(Ecore_X_Window win,
+EAPI Eina_Bool ecore_x_client_message8_send(Ecore_X_Window win,
Ecore_X_Atom type,
const void *data,
int len);
-EAPI int ecore_x_mouse_move_send(Ecore_X_Window win,
+EAPI Eina_Bool ecore_x_mouse_move_send(Ecore_X_Window win,
int x,
int y);
-EAPI int ecore_x_mouse_down_send(Ecore_X_Window win,
+EAPI Eina_Bool ecore_x_mouse_down_send(Ecore_X_Window win,
int x,
int y,
int b);
-EAPI int ecore_x_mouse_up_send(Ecore_X_Window win,
+EAPI Eina_Bool ecore_x_mouse_up_send(Ecore_X_Window win,
int x,
int y,
int b);
int width,
int height);
-EAPI int ecore_x_cursor_color_supported_get(void);
+EAPI Eina_Bool ecore_x_cursor_color_supported_get(void);
EAPI Ecore_X_Cursor ecore_x_cursor_new(Ecore_X_Window win,
int *pixels,
int w,
/* FIXME: these funcs need categorising */
EAPI Ecore_X_Window * ecore_x_window_root_list(int *num_ret);
EAPI Ecore_X_Window ecore_x_window_root_first_get(void);
-EAPI int ecore_x_window_manage(Ecore_X_Window win);
+EAPI Eina_Bool ecore_x_window_manage(Ecore_X_Window win);
EAPI void ecore_x_window_container_manage(
Ecore_X_Window win);
EAPI void ecore_x_window_client_manage(Ecore_X_Window win);
int h);
EAPI void ecore_x_icccm_hints_set(
Ecore_X_Window win,
- int accepts_focus,
+ Eina_Bool accepts_focus,
Ecore_X_Window_State_Hint
initial_state,
Ecore_X_Pixmap
icon_window,
Ecore_X_Window
window_group,
- int is_urgent);
-EAPI int ecore_x_icccm_hints_get(Ecore_X_Window win,
- int *accepts_focus,
+ Eina_Bool is_urgent);
+EAPI Eina_Bool ecore_x_icccm_hints_get(Ecore_X_Window win,
+ 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);
EAPI void ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win,
- int request_pos,
+ Eina_Bool request_pos,
Ecore_X_Gravity gravity,
int min_w, int min_h,
int max_w, int max_h,
int step_x, int step_y,
double min_aspect,
double max_aspect);
-EAPI int ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win,
- int *request_pos,
+EAPI Eina_Bool ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win,
+ Eina_Bool *request_pos,
Ecore_X_Gravity *gravity,
int *min_w, int *min_h,
int *max_w, int *max_h,
int num);
EAPI void ecore_x_icccm_protocol_set(Ecore_X_Window win,
Ecore_X_WM_Protocol protocol,
- int on);
-EAPI int ecore_x_icccm_protocol_isset(Ecore_X_Window win,
+ Eina_Bool on);
+EAPI Eina_Bool ecore_x_icccm_protocol_isset(Ecore_X_Window win,
Ecore_X_WM_Protocol protocol);
EAPI void ecore_x_icccm_name_class_set(Ecore_X_Window win,
const char *n,
EAPI void ecore_x_mwm_hints_get_prefetch(
Ecore_X_Window window);
EAPI void ecore_x_mwm_hints_get_fetch(void);
-EAPI int ecore_x_mwm_hints_get(
+EAPI Eina_Bool ecore_x_mwm_hints_get(
Ecore_X_Window win,
Ecore_X_MWM_Hint_Func
*fhint,
*ihint);
EAPI void ecore_x_mwm_borderless_set(
Ecore_X_Window win,
- int borderless);
+ Eina_Bool borderless);
/* netwm */
EAPI void ecore_x_netwm_init(void);
EAPI void ecore_x_netwm_supported_get_prefetch(
Ecore_X_Window root);
EAPI void ecore_x_netwm_supported_get_fetch(void);
-EAPI int ecore_x_netwm_supported_get(
+EAPI Eina_Bool ecore_x_netwm_supported_get(
Ecore_X_Window root,
Ecore_X_Atom **supported,
int *num);
int starting_corner);
EAPI void ecore_x_netwm_showing_desktop_set(
Ecore_X_Window root,
- int on);
+ Eina_Bool on);
EAPI void ecore_x_netwm_client_list_set(
Ecore_X_Window root,
Ecore_X_Window *p_clients,
EAPI void ecore_x_netwm_desktop_get_prefetch(
Ecore_X_Window window);
EAPI void ecore_x_netwm_desktop_get_fetch(void);
-EAPI int ecore_x_netwm_desktop_get(
+EAPI Eina_Bool ecore_x_netwm_desktop_get(
Ecore_X_Window win,
unsigned int *desk);
EAPI void ecore_x_netwm_strut_set(Ecore_X_Window win,
EAPI void ecore_x_netwm_strut_get_prefetch(
Ecore_X_Window window);
EAPI void ecore_x_netwm_strut_get_fetch(void);
-EAPI int ecore_x_netwm_strut_get(Ecore_X_Window win,
+EAPI Eina_Bool ecore_x_netwm_strut_get(Ecore_X_Window win,
int *left,
int *right,
int *top,
EAPI void ecore_x_netwm_strut_partial_get_prefetch(
Ecore_X_Window window);
EAPI void ecore_x_netwm_strut_partial_get_fetch(void);
-EAPI int ecore_x_netwm_strut_partial_get(
+EAPI Eina_Bool ecore_x_netwm_strut_partial_get(
Ecore_X_Window win,
int *left,
int *right,
EAPI void ecore_x_netwm_icons_get_prefetch(
Ecore_X_Window window);
EAPI void ecore_x_netwm_icons_get_fetch(void);
-EAPI int ecore_x_netwm_icons_get(Ecore_X_Window win,
+EAPI Eina_Bool ecore_x_netwm_icons_get(Ecore_X_Window win,
Ecore_X_Icon **icon,
int *num);
EAPI void ecore_x_netwm_icon_geometry_set(
EAPI void ecore_x_netwm_icon_geometry_get_prefetch(
Ecore_X_Window window);
EAPI void ecore_x_netwm_icon_geometry_get_fetch(void);
-EAPI int ecore_x_netwm_icon_geometry_get(
+EAPI Eina_Bool ecore_x_netwm_icon_geometry_get(
Ecore_X_Window win,
int *x,
int *y,
EAPI void ecore_x_netwm_pid_get_prefetch(
Ecore_X_Window window);
EAPI void ecore_x_netwm_pid_get_fetch(void);
-EAPI int ecore_x_netwm_pid_get(Ecore_X_Window win,
+EAPI Eina_Bool ecore_x_netwm_pid_get(Ecore_X_Window win,
int *pid);
EAPI void ecore_x_netwm_handled_icons_set(
Ecore_X_Window win);
EAPI void ecore_x_netwm_handled_icons_get_prefetch(
Ecore_X_Window window);
EAPI void ecore_x_netwm_handled_icons_get_fetch(void);
-EAPI int ecore_x_netwm_handled_icons_get(
+EAPI Eina_Bool ecore_x_netwm_handled_icons_get(
Ecore_X_Window win);
EAPI void ecore_x_netwm_user_time_set(
Ecore_X_Window win,
EAPI void ecore_x_netwm_user_time_get_prefetch(
Ecore_X_Window window);
EAPI void ecore_x_netwm_user_time_get_fetch(void);
-EAPI int ecore_x_netwm_user_time_get(
+EAPI Eina_Bool ecore_x_netwm_user_time_get(
Ecore_X_Window win,
unsigned int *time);
EAPI void ecore_x_netwm_window_state_set(
EAPI void ecore_x_netwm_window_state_get_prefetch(
Ecore_X_Window window);
EAPI void ecore_x_netwm_window_state_get_fetch(void);
-EAPI int ecore_x_netwm_window_state_get(
+EAPI Eina_Bool ecore_x_netwm_window_state_get(
Ecore_X_Window win,
Ecore_X_Window_State **state,
unsigned int *num);
EAPI void ecore_x_netwm_window_type_get_prefetch(
Ecore_X_Window window);
EAPI void ecore_x_netwm_window_type_get_fetch(void);
-EAPI int ecore_x_netwm_window_type_get(
+EAPI Eina_Bool ecore_x_netwm_window_type_get(
Ecore_X_Window win,
Ecore_X_Window_Type *type);
EAPI int ecore_x_netwm_window_types_get(
Ecore_X_Window win,
Ecore_X_Window_Type **types);
-EAPI int ecore_x_netwm_allowed_action_isset(
+EAPI Eina_Bool ecore_x_netwm_allowed_action_isset(
Ecore_X_Window win,
Ecore_X_Action action);
EAPI void ecore_x_netwm_allowed_action_set(
Ecore_X_Window window);
EAPI void ecore_x_netwm_allowed_action_get_fetch(
void);
-EAPI int ecore_x_netwm_allowed_action_get(
+EAPI Eina_Bool ecore_x_netwm_allowed_action_get(
Ecore_X_Window win,
Ecore_X_Action **action,
unsigned int *num);
EAPI void ecore_x_netwm_opacity_get_prefetch(
Ecore_X_Window window);
EAPI void ecore_x_netwm_opacity_get_fetch(void);
-EAPI int ecore_x_netwm_opacity_get(
+EAPI Eina_Bool ecore_x_netwm_opacity_get(
Ecore_X_Window win,
unsigned int *opacity);
EAPI void ecore_x_netwm_frame_size_set(
EAPI void ecore_x_netwm_frame_size_get_prefetch(
Ecore_X_Window window);
EAPI void ecore_x_netwm_frame_size_get_fetch(void);
-EAPI int ecore_x_netwm_frame_size_get(
+EAPI Eina_Bool ecore_x_netwm_frame_size_get(
Ecore_X_Window win,
int *fl,
int *fr,
EAPI void ecore_x_netwm_sync_counter_get_prefetch(
Ecore_X_Window window);
EAPI void ecore_x_netwm_sync_counter_get_fetch(void);
-EAPI int ecore_x_netwm_sync_counter_get(
+EAPI Eina_Bool ecore_x_netwm_sync_counter_get(
Ecore_X_Window win,
Ecore_X_Sync_Counter *counter);
EAPI void ecore_x_netwm_ping_send(Ecore_X_Window win);
Ecore_X_Window root,
Ecore_X_Window_State s1,
Ecore_X_Window_State s2,
- int set);
+ Eina_Bool set);
EAPI void ecore_x_netwm_desktop_request_send(
Ecore_X_Window win,
Ecore_X_Window root,
EAPI void ecore_x_e_virtual_keyboard_set(
Ecore_X_Window win,
unsigned int is_keyboard);
-EAPI int ecore_x_e_virtual_keyboard_get(
+EAPI Eina_Bool ecore_x_e_virtual_keyboard_get(
Ecore_X_Window win);
EAPI void ecore_x_e_virtual_keyboard_state_set(
Ecore_X_Window win,
EAPI void ecore_x_e_illume_conformant_set(
Ecore_X_Window win,
unsigned int is_conformant);
-EAPI int ecore_x_e_illume_conformant_get(
+EAPI Eina_Bool ecore_x_e_illume_conformant_get(
Ecore_X_Window win);
EAPI void ecore_x_e_illume_mode_set(
Ecore_X_Window win,
EAPI void ecore_x_e_illume_drag_set(
Ecore_X_Window win,
unsigned int drag);
-EAPI int ecore_x_e_illume_drag_get(
+EAPI Eina_Bool ecore_x_e_illume_drag_get(
Ecore_X_Window win);
EAPI void ecore_x_e_illume_drag_locked_set(
Ecore_X_Window win,
unsigned int is_locked);
-EAPI int ecore_x_e_illume_drag_locked_get(
+EAPI Eina_Bool ecore_x_e_illume_drag_locked_get(
Ecore_X_Window win);
EAPI void ecore_x_e_illume_drag_start_send(
Ecore_X_Window win);
int y,
int w,
int h);
-EAPI int ecore_x_e_illume_indicator_geometry_get(
+EAPI Eina_Bool ecore_x_e_illume_indicator_geometry_get(
Ecore_X_Window win,
int *x,
int *y,
int y,
int w,
int h);
-EAPI int ecore_x_e_illume_softkey_geometry_get(
+EAPI Eina_Bool ecore_x_e_illume_softkey_geometry_get(
Ecore_X_Window win,
int *x,
int *y,
int y,
int w,
int h);
-EAPI int ecore_x_e_illume_keyboard_geometry_get(
+EAPI Eina_Bool ecore_x_e_illume_keyboard_geometry_get(
Ecore_X_Window win,
int *x,
int *y,
EAPI void ecore_x_e_illume_quickpanel_set(
Ecore_X_Window win,
unsigned int is_quickpanel);
-EAPI int ecore_x_e_illume_quickpanel_get(
+EAPI Eina_Bool ecore_x_e_illume_quickpanel_get(
Ecore_X_Window win);
EAPI void ecore_x_e_illume_quickpanel_state_set(
Ecore_X_Window win,
ecore_x_e_illume_quickpanel_priority_major_set(
Ecore_X_Window win,
unsigned int priority);
-EAPI int
+EAPI Eina_Bool
ecore_x_e_illume_quickpanel_priority_major_get(
Ecore_X_Window win);
EAPI void
ecore_x_e_illume_quickpanel_priority_minor_set(
Ecore_X_Window win,
unsigned int priority);
-EAPI int
+EAPI Eina_Bool
ecore_x_e_illume_quickpanel_priority_minor_get(
Ecore_X_Window win);
EAPI void ecore_x_e_illume_quickpanel_zone_set(
EAPI Ecore_X_Sync_Alarm ecore_x_sync_alarm_new(
Ecore_X_Sync_Counter counter);
-EAPI int ecore_x_sync_alarm_free(
+EAPI Eina_Bool ecore_x_sync_alarm_free(
Ecore_X_Sync_Alarm alarm);
-EAPI int ecore_x_sync_counter_query(
+EAPI Eina_Bool ecore_x_sync_counter_query(
Ecore_X_Sync_Counter counter,
unsigned int *val);
EAPI Ecore_X_Sync_Counter ecore_x_sync_counter_new(int val);
void);
EAPI void ecore_x_xinerama_query_screens_fetch(void);
EAPI int ecore_x_xinerama_screen_count_get(void);
-EAPI int ecore_x_xinerama_screen_geometry_get(
+EAPI Eina_Bool ecore_x_xinerama_screen_geometry_get(
int screen,
int *x,
int *y,
int *w,
int *h);
-EAPI int ecore_x_screensaver_event_available_get(
+EAPI Eina_Bool ecore_x_screensaver_event_available_get(
void);
EAPI void ecore_x_screensaver_idle_time_prefetch(
void);
int timeout);
EAPI int ecore_x_screensaver_interval_get(void);
EAPI void ecore_x_screensaver_event_listen_set(
- int on);
+ Eina_Bool on);
/* FIXME: these funcs need categorising */
EAPI void ecore_x_get_window_attributes_prefetch(
Ecore_X_Window window);
EAPI void ecore_x_get_window_attributes_fetch(void);
-EAPI int ecore_x_window_attributes_get(
+EAPI Eina_Bool ecore_x_window_attributes_get(
Ecore_X_Window win,
Ecore_X_Window_Attributes *
att_ret);
EAPI void ecore_x_window_save_set_del(Ecore_X_Window win);
EAPI Ecore_X_Window * ecore_x_window_children_get(Ecore_X_Window win, int *num);
-EAPI int ecore_x_pointer_control_set(int accel_num,
+EAPI Eina_Bool ecore_x_pointer_control_set(int accel_num,
int accel_denom,
int threshold);
EAPI void ecore_x_pointer_control_get_prefetch(void);
EAPI void ecore_x_pointer_control_get_fetch(void);
-EAPI int ecore_x_pointer_control_get(int *accel_num,
+EAPI Eina_Bool ecore_x_pointer_control_get(int *accel_num,
int *accel_denom,
int *threshold);
-EAPI int ecore_x_pointer_mapping_set(unsigned char *map, int nmap);
+EAPI Eina_Bool ecore_x_pointer_mapping_set(unsigned char *map, int nmap);
EAPI void ecore_x_pointer_mapping_get_prefetch(void);
EAPI void ecore_x_pointer_mapping_get_fetch(void);
-EAPI int ecore_x_pointer_mapping_get(unsigned char *map, int nmap);
-EAPI int ecore_x_pointer_grab(Ecore_X_Window win);
-EAPI int ecore_x_pointer_confine_grab(Ecore_X_Window win);
+EAPI Eina_Bool ecore_x_pointer_mapping_get(unsigned char *map, int nmap);
+EAPI Eina_Bool ecore_x_pointer_grab(Ecore_X_Window win);
+EAPI Eina_Bool ecore_x_pointer_confine_grab(Ecore_X_Window win);
EAPI void ecore_x_pointer_ungrab(void);
-EAPI int ecore_x_pointer_warp(Ecore_X_Window win, int x, int y);
-EAPI int ecore_x_keyboard_grab(Ecore_X_Window win);
+EAPI Eina_Bool ecore_x_pointer_warp(Ecore_X_Window win, int x, int y);
+EAPI Eina_Bool ecore_x_keyboard_grab(Ecore_X_Window win);
EAPI void ecore_x_keyboard_ungrab(void);
EAPI void ecore_x_grab(void);
EAPI void ecore_x_ungrab(void);
/* ecore_x_region.c */
EAPI Ecore_X_XRegion * ecore_x_xregion_new();
EAPI void ecore_x_xregion_free(Ecore_X_XRegion *region);
-EAPI int ecore_x_xregion_set(Ecore_X_XRegion *region,
+EAPI Eina_Bool ecore_x_xregion_set(Ecore_X_XRegion *region,
Ecore_X_GC gc);
EAPI void ecore_x_xregion_translate(Ecore_X_XRegion *region,
int x,
int y);
-EAPI int ecore_x_xregion_intersect(Ecore_X_XRegion *dst,
+EAPI Eina_Bool ecore_x_xregion_intersect(Ecore_X_XRegion *dst,
Ecore_X_XRegion *r1,
Ecore_X_XRegion *r2);
-EAPI int ecore_x_xregion_union(Ecore_X_XRegion *dst,
+EAPI Eina_Bool ecore_x_xregion_union(Ecore_X_XRegion *dst,
Ecore_X_XRegion *r1,
Ecore_X_XRegion *r2);
-EAPI int ecore_x_xregion_union_rect(Ecore_X_XRegion *dst,
+EAPI Eina_Bool ecore_x_xregion_union_rect(Ecore_X_XRegion *dst,
Ecore_X_XRegion *src,
Ecore_X_Rectangle *rect);
-EAPI int ecore_x_xregion_subtract(Ecore_X_XRegion *dst,
+EAPI Eina_Bool ecore_x_xregion_subtract(Ecore_X_XRegion *dst,
Ecore_X_XRegion *r1,
Ecore_X_XRegion *r2);
-EAPI int ecore_x_xregion_is_empty(Ecore_X_XRegion *region);
-EAPI int ecore_x_xregion_is_equal(Ecore_X_XRegion *r1,
+EAPI Eina_Bool ecore_x_xregion_is_empty(Ecore_X_XRegion *region);
+EAPI Eina_Bool ecore_x_xregion_is_equal(Ecore_X_XRegion *r1,
Ecore_X_XRegion *r2);
-EAPI int ecore_x_xregion_point_contain(Ecore_X_XRegion *region,
+EAPI Eina_Bool ecore_x_xregion_point_contain(Ecore_X_XRegion *region,
int x,
int y);
-EAPI int ecore_x_xregion_rect_contain(Ecore_X_XRegion *region,
+EAPI Eina_Bool ecore_x_xregion_rect_contain(Ecore_X_XRegion *region,
Ecore_X_Rectangle *rect);
/* ecore_x_randr.c */
int y_origin);
/* XComposite Extension Support */
-EAPI int ecore_x_composite_query(void);
+EAPI Eina_Bool ecore_x_composite_query(void);
EAPI void ecore_x_composite_redirect_window(Ecore_X_Window win,
Ecore_X_Composite_Update_Type type);
EAPI void ecore_x_composite_redirect_subwindows(Ecore_X_Window win,
typedef struct _Ecore_X_Event_Damage Ecore_X_Event_Damage;
-EAPI int ecore_x_damage_query(void);
+EAPI Eina_Bool ecore_x_damage_query(void);
EAPI Ecore_X_Damage ecore_x_damage_new(Ecore_X_Drawable d,
Ecore_X_Damage_Report_Level level);
EAPI void ecore_x_damage_free(Ecore_X_Damage damage);
Ecore_X_Region repair,
Ecore_X_Region parts);
-EAPI int ecore_x_screen_is_composited(int screen);
+EAPI Eina_Bool ecore_x_screen_is_composited(int screen);
EAPI void ecore_x_screen_is_composited_set(int screen,
Ecore_X_Window win);
-EAPI int ecore_x_dpms_query(void);
+EAPI Eina_Bool ecore_x_dpms_query(void);
EAPI void ecore_x_dpms_capable_get_prefetch(void);
EAPI void ecore_x_dpms_capable_get_fetch(void);
-EAPI int ecore_x_dpms_capable_get(void);
+EAPI Eina_Bool ecore_x_dpms_capable_get(void);
EAPI void ecore_x_dpms_enable_get_prefetch(void);
EAPI void ecore_x_dpms_enable_get_fetch(void);
-EAPI int ecore_x_dpms_enabled_get(void);
+EAPI Eina_Bool ecore_x_dpms_enabled_get(void);
EAPI void ecore_x_dpms_enabled_set(int enabled);
EAPI void ecore_x_dpms_timeouts_get_prefetch(void);
EAPI void ecore_x_dpms_timeouts_get_fetch(void);
EAPI void ecore_x_dpms_timeouts_get(unsigned int *standby,
unsigned int *suspend,
unsigned int *off);
-EAPI int ecore_x_dpms_timeouts_set(unsigned int standby,
+EAPI Eina_Bool ecore_x_dpms_timeouts_set(unsigned int standby,
unsigned int suspend,
unsigned int off);
EAPI unsigned int ecore_x_dpms_timeout_standby_get(void);
EAPI void ecore_x_dpms_timeout_suspend_set(unsigned int new_timeout);
EAPI void ecore_x_dpms_timeout_off_set(unsigned int new_timeout);
-EAPI int ecore_x_test_fake_key_down(const char *key);
-EAPI int ecore_x_test_fake_key_up(const char *key);
-EAPI int ecore_x_test_fake_key_press(const char *key);
+EAPI Eina_Bool ecore_x_test_fake_key_down(const char *key);
+EAPI Eina_Bool ecore_x_test_fake_key_up(const char *key);
+EAPI Eina_Bool ecore_x_test_fake_key_press(const char *key);
EAPI const char * ecore_x_keysym_string_get(int keysym);
typedef struct _Ecore_X_Image Ecore_X_Image;
Window _ecore_x_event_last_win = 0;
int _ecore_x_event_last_root_x = 0;
int _ecore_x_event_last_root_y = 0;
-int _ecore_x_xcursor = 0;
+Eina_Bool _ecore_x_xcursor = EINA_FALSE;
XIC _ecore_x_ic = NULL; /* Input context for composed characters */
XIM _ecore_x_im = NULL;
goto close_display;
#ifdef ECORE_XCURSOR
- _ecore_x_xcursor = XcursorSupportsARGB(_ecore_x_disp);
+ _ecore_x_xcursor = XcursorSupportsARGB(_ecore_x_disp) ? EINA_TRUE : EINA_FALSE;
#endif /* ifdef ECORE_XCURSOR */
_ecore_x_event_handlers[AnyXEvent] = _ecore_x_event_handle_any_event;
_ecore_x_event_handlers[KeyPress] = _ecore_x_event_handle_key_press;
_ecore_x_window_manage_failed = 1;
} /* _ecore_x_window_manage_error */
-EAPI int
+EAPI Eina_Bool
ecore_x_window_manage(Ecore_X_Window win)
{
XWindowAttributes att;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (XGetWindowAttributes(_ecore_x_disp, win, &att) != True)
- return 0;
+ return EINA_FALSE;
ecore_x_sync();
_ecore_x_window_manage_failed = 0;
if (_ecore_x_window_manage_failed)
{
_ecore_x_window_manage_failed = 0;
- return 0;
+ return EINA_FALSE;
}
- return 1;
+ return EINA_TRUE;
} /* ecore_x_window_manage */
EAPI void
XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask);
} /* ecore_x_window_client_sniff */
-EAPI int
+EAPI Eina_Bool
ecore_x_window_attributes_get(Ecore_X_Window win,
Ecore_X_Window_Attributes *att_ret)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!XGetWindowAttributes(_ecore_x_disp, win, &att))
- return 0;
+ return EINA_FALSE;
memset(att_ret, 0, sizeof(Ecore_X_Window_Attributes));
att_ret->root = att.root;
att_ret->pixel_gravity = att.bit_gravity;
att_ret->colormap = att.colormap;
att_ret->visual = att.visual;
- return 1;
+ return EINA_TRUE;
} /* ecore_x_window_attributes_get */
EAPI void
return windows;
} /* ecore_x_window_children_get */
-EAPI int
+EAPI Eina_Bool
ecore_x_pointer_control_set(int accel_num, int accel_denom, int threshold)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XChangePointerControl(_ecore_x_disp, 1, 1,
- accel_num, accel_denom, threshold);
+ accel_num, accel_denom, threshold) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_pointer_control_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_pointer_control_get(int *accel_num, int *accel_denom, int *threshold)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XGetPointerControl(_ecore_x_disp,
- accel_num, accel_denom, threshold);
+ accel_num, accel_denom, threshold) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_pointer_control_get */
-EAPI int
+EAPI Eina_Bool
ecore_x_pointer_mapping_set(unsigned char *map, int nmap)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
- return XSetPointerMapping(_ecore_x_disp, map, nmap);
+ return XSetPointerMapping(_ecore_x_disp, map, nmap) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_pointer_mapping_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_pointer_mapping_get(unsigned char *map, int nmap)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
- return XGetPointerMapping(_ecore_x_disp, map, nmap);
+ return XGetPointerMapping(_ecore_x_disp, map, nmap) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_pointer_mapping_get */
-EAPI int
+EAPI Eina_Bool
ecore_x_pointer_grab(Ecore_X_Window win)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
EnterWindowMask | LeaveWindowMask | PointerMotionMask,
GrabModeAsync, GrabModeAsync,
None, None, CurrentTime) == GrabSuccess)
- return 1;
+ return EINA_TRUE;
- return 0;
+ return EINA_FALSE;
} /* ecore_x_pointer_grab */
-EAPI int
+EAPI Eina_Bool
ecore_x_pointer_confine_grab(Ecore_X_Window win)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
EnterWindowMask | LeaveWindowMask | PointerMotionMask,
GrabModeAsync, GrabModeAsync,
win, None, CurrentTime) == GrabSuccess)
- return 1;
+ return EINA_TRUE;
- return 0;
+ return EINA_FALSE;
} /* ecore_x_pointer_confine_grab */
EAPI void
XUngrabPointer(_ecore_x_disp, CurrentTime);
} /* ecore_x_pointer_ungrab */
-EAPI int
+EAPI Eina_Bool
ecore_x_pointer_warp(Ecore_X_Window win, int x, int y)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
- return XWarpPointer(_ecore_x_disp, None, win, 0, 0, 0, 0, x, y);
+ return XWarpPointer(_ecore_x_disp, None, win, 0, 0, 0, 0, x, y) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_pointer_warp */
-EAPI int
+EAPI Eina_Bool
ecore_x_keyboard_grab(Ecore_X_Window win)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (XGrabKeyboard(_ecore_x_disp, win, False,
GrabModeAsync, GrabModeAsync,
CurrentTime) == GrabSuccess)
- return 1;
+ return EINA_TRUE;
- return 0;
+ return EINA_FALSE;
} /* ecore_x_keyboard_grab */
EAPI void
* @param d3 The client message data item 4
* @param d4 The client message data item 5
*
- * @return !0 on success.
+ * @return EINA_TRUE on success EINA_FALSE otherwise.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_client_message32_send(Ecore_X_Window win, Ecore_X_Atom type,
Ecore_X_Event_Mask mask,
long d0, long d1, long d2, long d3, long d4)
xev.xclient.data.l[3] = d3;
xev.xclient.data.l[4] = d4;
- return XSendEvent(_ecore_x_disp, win, False, mask, &xev);
+ return XSendEvent(_ecore_x_disp, win, False, mask, &xev) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_client_message32_send */
/**
* @param data Data to be sent.
* @param len Number of data bytes, max 20.
*
- * @return !0 on success.
+ * @return EINA_TRUE on success EINA_FALSE otherwise.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_client_message8_send(Ecore_X_Window win, Ecore_X_Atom type,
const void *data, int len)
{
memcpy(xev.xclient.data.b, data, len);
memset(xev.xclient.data.b + len, 0, 20 - len);
- return XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
+ return XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_client_message8_send */
-EAPI int
+EAPI Eina_Bool
ecore_x_mouse_move_send(Ecore_X_Window win, int x, int y)
{
XEvent xev;
xev.xmotion.state = 0;
xev.xmotion.is_hint = 0;
xev.xmotion.same_screen = 1;
- return XSendEvent(_ecore_x_disp, win, True, PointerMotionMask, &xev);
+ return XSendEvent(_ecore_x_disp, win, True, PointerMotionMask, &xev) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_mouse_move_send */
-EAPI int
+EAPI Eina_Bool
ecore_x_mouse_down_send(Ecore_X_Window win, int x, int y, int b)
{
XEvent xev;
xev.xbutton.state = 1 << b;
xev.xbutton.button = b;
xev.xbutton.same_screen = 1;
- return XSendEvent(_ecore_x_disp, win, True, ButtonPressMask, &xev);
+ return XSendEvent(_ecore_x_disp, win, True, ButtonPressMask, &xev) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_mouse_down_send */
-EAPI int
+EAPI Eina_Bool
ecore_x_mouse_up_send(Ecore_X_Window win, int x, int y, int b)
{
XEvent xev;
xev.xbutton.state = 0;
xev.xbutton.button = b;
xev.xbutton.same_screen = 1;
- return XSendEvent(_ecore_x_disp, win, True, ButtonReleaseMask, &xev);
+ return XSendEvent(_ecore_x_disp, win, True, ButtonReleaseMask, &xev) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_mouse_up_send */
EAPI void
#include "ecore_x_private.h"
#include "Ecore_X.h"
-static int _composite_available;
+static Eina_Bool _composite_available = EINA_FALSE;
void
_ecore_x_composite_init(void)
{
- _composite_available = 0;
+ _composite_available = EINA_FALSE;
#ifdef ECORE_XCOMPOSITE
int major, minor;
# ifdef ECORE_XFIXES
if (XFixesQueryVersion(_ecore_x_disp, &major, &minor))
{
- _composite_available = 1;
+ _composite_available = EINA_TRUE;
}
# endif
}
#endif
} /* _ecore_x_composite_init */
-EAPI int
+EAPI Eina_Bool
ecore_x_composite_query(void)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
#include "ecore_x_private.h"
-EAPI int
+EAPI Eina_Bool
ecore_x_cursor_color_supported_get(void)
{
return _ecore_x_xcursor;
#include "ecore_x_private.h"
#include "Ecore_X.h"
-static int _damage_available;
+static Eina_Bool _damage_available = EINA_FALSE;
#ifdef ECORE_XDAMAGE
static int _damage_major, _damage_minor;
#endif /* ifdef ECORE_XDAMAGE */
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (XDamageQueryVersion(_ecore_x_disp, &_damage_major, &_damage_minor))
- _damage_available = 1;
+ _damage_available = EINA_TRUE;
else
- _damage_available = 0;
+ _damage_available = EINA_FALSE;
#else /* ifdef ECORE_XDAMAGE */
- _damage_available = 0;
+ _damage_available = EINA_FALSE;
#endif /* ifdef ECORE_XDAMAGE */
} /* _ecore_x_damage_init */
-EAPI int
+EAPI Eina_Bool
ecore_x_damage_query(void)
{
return _damage_available;
_ecore_x_dnd_init_count = 0;
} /* _ecore_x_dnd_shutdown */
-static int
+static Eina_Bool
_ecore_x_dnd_converter_copy(char *target __UNUSED__,
void *data,
int size,
XICCEncodingStyle style = XTextStyle;
if (!data || !size)
- return 0;
+ return EINA_FALSE;
mystr = calloc(1, size + 1);
if (!mystr)
- return 0;
+ return EINA_FALSE;
memcpy(mystr, data, size);
*size_ret = bufsize;
XFree(text_prop.value);
free(mystr);
- return 1;
+ return EINA_TRUE;
}
else
{
free(mystr);
- return 0;
+ return EINA_FALSE;
}
} /* _ecore_x_dnd_converter_copy */
EAPI void
-ecore_x_dnd_aware_set(Ecore_X_Window win, int on)
+ecore_x_dnd_aware_set(Ecore_X_Window win, Eina_Bool on)
{
Ecore_X_Atom prop_data = ECORE_X_DND_VERSION;
return 0;
} /* ecore_x_dnd_version_get */
-EAPI int
+EAPI Eina_Bool
ecore_x_dnd_type_isset(Ecore_X_Window win, const char *type)
{
- int num, i, ret = 0;
+ int num, i, ret = EINA_FALSE;
unsigned char *data;
Ecore_X_Atom *atoms, atom;
{
if (atom == atoms[i])
{
- ret = 1;
+ ret = EINA_TRUE;
break;
}
}
} /* ecore_x_dnd_type_isset */
EAPI void
-ecore_x_dnd_type_set(Ecore_X_Window win, const char *type, int on)
+ecore_x_dnd_type_set(Ecore_X_Window win, const char *type, Eina_Bool on)
{
Ecore_X_Atom atom;
Ecore_X_Atom *oldset = NULL, *newset = NULL;
return _target;
} /* _ecore_x_dnd_target_get */
-EAPI int
+EAPI Eina_Bool
ecore_x_dnd_begin(Ecore_X_Window source, unsigned char *data, int size)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_dnd_version_get(source))
- return 0;
+ return EINA_FALSE;
/* Take ownership of XdndSelection */
if (!ecore_x_selection_xdnd_set(source, data, size))
- return 0;
+ return EINA_FALSE;
if (_version_cache)
{
_source->accepted_action = None;
_source->dest = None;
- return 1;
+ return EINA_TRUE;
} /* ecore_x_dnd_begin */
-EAPI int
+EAPI Eina_Bool
ecore_x_dnd_drop(void)
{
XEvent xev;
- int status = 0;
+ int status = EINA_FALSE;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (_source->dest)
xev.xclient.data.l[2] = _source->time;
XSendEvent(_ecore_x_disp, _source->dest, False, 0, &xev);
_source->state = ECORE_X_DND_SOURCE_DROPPED;
- status = 1;
+ status = EINA_TRUE;
}
else
{
} /* 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)
{
#include "ecore_x_private.h"
-static int _dpms_available;
+static Eina_Bool _dpms_available = EINA_FALSE;
void
_ecore_x_dpms_init(void)
_dpms_minor = 0;
if (DPMSGetVersion(_ecore_x_disp, &_dpms_major, &_dpms_minor))
- _dpms_available = 1;
+ _dpms_available = EINA_TRUE;
else
- _dpms_available = 0;
+ _dpms_available = EINA_FALSE;
#else /* ifdef ECORE_XDPMS */
- _dpms_available = 0;
+ _dpms_available = EINA_FALSE;
#endif /* ifdef ECORE_XDPMS */
} /* _ecore_x_dpms_init */
* @return @c 1 if the X DPMS extension is available, @c 0 otherwise.
* @ingroup Ecore_X_DPMS_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_dpms_query(void)
{
return _dpms_available;
* @return @c 1 if the X server is capable of DPMS, @c 0 otherwise.
* @ingroup Ecore_X_DPMS_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_dpms_capable_get(void)
{
#ifdef ECORE_XDPMS
LOGFN(__FILE__, __LINE__, __FUNCTION__);
- return DPMSCapable(_ecore_x_disp);
+ return DPMSCapable(_ecore_x_disp) ? EINA_TRUE : EINA_FALSE;
#else /* ifdef ECORE_XDPMS */
- return 0;
+ return EINA_FALSE;
#endif /* ifdef ECORE_XDPMS */
} /* ecore_x_dpms_capable_get */
* @return @c 1 if DPMS is enabled, @c 0 otherwise.
* @ingroup Ecore_X_DPMS_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_dpms_enabled_get(void)
{
#ifdef ECORE_XDPMS
LOGFN(__FILE__, __LINE__, __FUNCTION__);
DPMSInfo(_ecore_x_disp, &power_lvl, &state);
- return state;
+ return state ? EINA_TRUE : EINA_FALSE;
#else /* ifdef ECORE_XDPMS */
- return 0;
+ return EINA_FALSE;
#endif /* ifdef ECORE_XDPMS */
} /* ecore_x_dpms_enabled_get */
* @param off Amount of time of inactivity before the monitor is shut off.
* @ingroup Ecore_X_DPMS_Group
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_dpms_timeouts_set(unsigned int standby,
unsigned int suspend,
unsigned int off)
{
#ifdef ECORE_XDPMS
LOGFN(__FILE__, __LINE__, __FUNCTION__);
- return DPMSSetTimeouts(_ecore_x_disp, standby, suspend, off);
+ return DPMSSetTimeouts(_ecore_x_disp, standby, suspend, off) ? EINA_TRUE : EINA_FALSE;
#else /* ifdef ECORE_XDPMS */
- return 0;
+ return EINA_FALSE;
#endif /* ifdef ECORE_XDPMS */
} /* ecore_x_dpms_timeouts_set */
&is_keyboard, 1);
} /* ecore_x_e_virtual_keyboard_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_e_virtual_keyboard_get(Ecore_X_Window win)
{
unsigned int val;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_VIRTUAL_KEYBOARD,
&val, 1))
- return 0;
+ return EINA_FALSE;
- return val;
+ return val ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_e_virtual_keyboard_get */
static Ecore_X_Virtual_Keyboard_State
&is_conformant, 1);
} /* ecore_x_e_illume_conformant_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_e_illume_conformant_get(Ecore_X_Window win)
{
unsigned int val = 0;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_ILLUME_CONFORMANT,
&val, 1))
- return 0;
+ return EINA_FALSE;
- return val;
+ return val ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_e_illume_conformant_get */
EAPI void
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_DRAG, &drag, 1);
} /* ecore_x_e_illume_drag_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_e_illume_drag_get(Ecore_X_Window win)
{
unsigned int val = 0;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_ILLUME_DRAG, &val, 1))
- return 0;
+ return EINA_FALSE;
- return val;
+ return val ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_e_illume_drag_get */
EAPI void
&is_locked, 1);
} /* ecore_x_e_illume_drag_locked_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_e_illume_drag_locked_get(Ecore_X_Window win)
{
unsigned int val = 0;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_ILLUME_DRAG_LOCKED,
&val, 1))
- return 0;
+ return EINA_FALSE;
- return val;
+ return val ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_e_illume_drag_locked_get */
EAPI void
geom, 4);
} /* ecore_x_e_illume_indicator_geometry_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_e_illume_indicator_geometry_get(Ecore_X_Window win,
int *x,
int *y,
ECORE_X_ATOM_E_ILLUME_INDICATOR_GEOMETRY,
geom, 4);
if (ret != 4)
- return 0;
+ return EINA_FALSE;
if (x)
*x = geom[0];
if (h)
*h = geom[3];
- return 1;
+ return EINA_TRUE;
} /* ecore_x_e_illume_indicator_geometry_get */
EAPI void
geom, 4);
} /* ecore_x_e_illume_softkey_geometry_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_e_illume_softkey_geometry_get(Ecore_X_Window win,
int *x,
int *y,
ECORE_X_ATOM_E_ILLUME_SOFTKEY_GEOMETRY,
geom, 4);
if (ret != 4)
- return 0;
+ return EINA_FALSE;
if (x)
*x = geom[0];
if (h)
*h = geom[3];
- return 1;
+ return EINA_TRUE;
} /* ecore_x_e_illume_softkey_geometry_get */
EAPI void
geom, 4);
} /* ecore_x_e_illume_keyboard_geometry_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_e_illume_keyboard_geometry_get(Ecore_X_Window win,
int *x,
int *y,
ECORE_X_ATOM_E_ILLUME_KEYBOARD_GEOMETRY,
geom, 4);
if (ret != 4)
- return 0;
+ return EINA_FALSE;
if (x)
*x = geom[0];
if (h)
*h = geom[3];
- return 1;
+ return EINA_TRUE;
} /* ecore_x_e_illume_keyboard_geometry_get */
static Ecore_X_Atom
&is_quickpanel, 1);
} /* ecore_x_e_illume_quickpanel_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_e_illume_quickpanel_get(Ecore_X_Window win)
{
unsigned int val = 0;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_ILLUME_QUICKPANEL,
&val, 1))
- return 0;
+ return EINA_FALSE;
- return val;
+ return val ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_e_illume_quickpanel_get */
EAPI void
1);
} /* ecore_x_e_illume_quickpanel_priority_major_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_e_illume_quickpanel_priority_major_get(Ecore_X_Window win)
{
unsigned int val = 0;
if (!ecore_x_window_prop_card32_get(win,
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_PRIORITY_MAJOR,
&val, 1))
- return 0;
+ return EINA_FALSE;
- return val;
+ return val ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_e_illume_quickpanel_priority_major_get */
EAPI void
1);
} /* ecore_x_e_illume_quickpanel_priority_minor_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_e_illume_quickpanel_priority_minor_get(Ecore_X_Window win)
{
unsigned int val = 0;
if (!ecore_x_window_prop_card32_get(win,
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_PRIORITY_MINOR,
&val, 1))
- return 0;
+ return EINA_FALSE;
- return val;
+ return val ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_e_illume_quickpanel_priority_minor_get */
EAPI void
EAPI void
ecore_x_icccm_hints_set(Ecore_X_Window win,
- 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)
+ Ecore_X_Window window_group,
+ Eina_Bool is_urgent)
{
XWMHints *hints;
XFree(hints);
} /* ecore_x_icccm_hints_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_icccm_hints_get(Ecore_X_Window win,
- 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)
+ Ecore_X_Window *window_group,
+ Eina_Bool *is_urgent)
{
XWMHints *hints;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (accepts_focus)
- *accepts_focus = 1;
+ *accepts_focus = EINA_TRUE;
if (initial_state)
*initial_state = ECORE_X_WINDOW_STATE_HINT_NORMAL;
*window_group = 0;
if (is_urgent)
- *is_urgent = 0;
+ *is_urgent = EINA_FALSE;
hints = XGetWMHints(_ecore_x_disp, win);
if (hints)
if ((hints->flags & InputHint) && (accepts_focus))
{
if (hints->input)
- *accepts_focus = 1;
+ *accepts_focus = EINA_TRUE;
else
- *accepts_focus = 0;
+ *accepts_focus = EINA_FALSE;
}
if ((hints->flags & StateHint) && (initial_state))
*window_group = hints->window_group;
if ((hints->flags & XUrgencyHint) && (is_urgent))
- *is_urgent = 1;
+ *is_urgent = EINA_TRUE;
XFree(hints);
- return 1;
+ return EINA_TRUE;
}
- return 0;
+ return EINA_FALSE;
} /* ecore_x_icccm_hints_get */
EAPI void
ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win,
- int request_pos,
+ Eina_Bool request_pos,
Ecore_X_Gravity gravity,
int min_w, int min_h,
int max_w, int max_h,
XSetWMNormalHints(_ecore_x_disp, win, &hint);
} /* ecore_x_icccm_size_pos_hints_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win,
- int *request_pos,
+ Eina_Bool *request_pos,
Ecore_X_Gravity *gravity,
int *min_w, int *min_h,
int *max_w, int *max_h,
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!XGetWMNormalHints(_ecore_x_disp, win, &hint, &mask))
- return 0;
+ return EINA_FALSE;
if ((hint.flags & USPosition) || ((hint.flags & PPosition)))
{
if (request_pos)
- *request_pos = 1;
+ *request_pos = EINA_TRUE;
}
else if (request_pos)
- *request_pos = 0;
+ *request_pos = EINA_FALSE;
if (hint.flags & PWinGravity)
{
if (max_aspect)
*max_aspect = maxa;
- return 1;
+ return EINA_TRUE;
} /* ecore_x_icccm_size_pos_hints_get */
EAPI void
*/
EAPI void
ecore_x_icccm_protocol_set(Ecore_X_Window win,
- Ecore_X_WM_Protocol protocol, int on)
+ Ecore_X_WM_Protocol protocol,
+ Eina_Bool on)
{
Atom *protos = NULL;
Atom proto;
* @param protocol The protocol to query
* @return 1 if the protocol is set, else 0.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_icccm_protocol_isset(Ecore_X_Window win, Ecore_X_WM_Protocol protocol)
{
Atom proto, *protos = NULL;
- int i, ret = 0, protos_count = 0;
+ int i, protos_count = 0;
+ Eina_Bool ret = EINA_FALSE;
/* check for invalid values */
if (protocol >= ECORE_X_WM_PROTOCOL_NUM)
- return 0;
+ return EINA_FALSE;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
proto = _ecore_x_atoms_wm_protocols[protocol];
if (!XGetWMProtocols(_ecore_x_disp, win, &protos, &protos_count))
- return 0;
+ return EINA_FALSE;
for (i = 0; i < protos_count; i++)
if (protos[i] == proto)
{
- ret = 1;
+ ret = EINA_TRUE;
break;
}
}
MWMHints;
-EAPI int
+EAPI Eina_Bool
ecore_x_mwm_hints_get(Ecore_X_Window win,
Ecore_X_MWM_Hint_Func *fhint,
Ecore_X_MWM_Hint_Decor *dhint,
unsigned char *p = NULL;
MWMHints *mwmhints = NULL;
int num;
- int ret;
+ Eina_Bool ret;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
- ret = 0;
+ ret = EINA_FALSE;
if (!ecore_x_window_prop_property_get(win,
ECORE_X_ATOM_MOTIF_WM_HINTS,
ECORE_X_ATOM_MOTIF_WM_HINTS,
32, &p, &num))
- return 0;
+ return EINA_FALSE;
mwmhints = (MWMHints *)p;
if (mwmhints)
*ihint = ECORE_X_MWM_HINT_INPUT_MODELESS;
}
- ret = 1;
+ ret = EINA_TRUE;
}
free(mwmhints);
} /* ecore_x_mwm_hints_get */
EAPI void
-ecore_x_mwm_borderless_set(Ecore_X_Window win, int borderless)
+ecore_x_mwm_borderless_set(Ecore_X_Window win, Eina_Bool borderless)
{
unsigned int data[5] = {0, 0, 0, 0, 0};
num);
} /* ecore_x_netwm_supported_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_supported_get(Ecore_X_Window root,
Ecore_X_Atom **supported,
int *num)
num_ret = ecore_x_window_prop_atom_list_get(root, ECORE_X_ATOM_NET_SUPPORTED,
supported);
if (num_ret <= 0)
- return 0;
+ return EINA_FALSE;
if (num)
*num = num_ret;
- return 1;
+ return EINA_TRUE;
} /* ecore_x_netwm_supported_get */
/*
} /* ecore_x_netwm_desk_current_set */
EAPI void
-ecore_x_netwm_showing_desktop_set(Ecore_X_Window root, int on)
+ecore_x_netwm_showing_desktop_set(Ecore_X_Window root, Eina_Bool on)
{
unsigned int val;
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_DESKTOP, &desk, 1);
} /* ecore_x_netwm_desktop_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_desktop_get(Ecore_X_Window win, unsigned int *desk)
{
int ret;
if (desk)
*desk = tmp;
- return ret == 1 ? 1 : 0;
+ return ret == 1 ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_netwm_desktop_get */
/*
/*
* _NET_WM_STRUT is deprecated
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_strut_get(Ecore_X_Window win, int *left, int *right,
int *top, int *bottom)
{
strut,
4);
if (ret != 4)
- return 0;
+ return EINA_FALSE;
if (left)
*left = strut[0];
if (bottom)
*bottom = strut[3];
- return 1;
+ return EINA_TRUE;
} /* ecore_x_netwm_strut_get */
EAPI void
12);
} /* ecore_x_netwm_strut_partial_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_strut_partial_get(Ecore_X_Window win,
int *left,
int *right,
strut,
12);
if (ret != 12)
- return 0;
+ return EINA_FALSE;
if (left)
*left = strut[0];
if (bottom_end_x)
*bottom_end_x = strut[11];
- return 1;
+ return EINA_TRUE;
} /* ecore_x_netwm_strut_partial_get */
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_icons_get(Ecore_X_Window win, Ecore_X_Icon **icon, int *num)
{
unsigned int *data, *p;
num_ret = ecore_x_window_prop_card32_list_get(win, ECORE_X_ATOM_NET_WM_ICON,
&data);
if (num_ret <= 0)
- return 0;
+ return EINA_FALSE;
if (!data)
- return 0;
+ return EINA_FALSE;
if (num_ret < 2)
{
free(data);
- return 0;
+ return EINA_FALSE;
}
/* Check how many icons there are */
if ((p - data) > num_ret)
{
free(data);
- return 0;
+ return EINA_FALSE;
}
icons++;
if (!icon)
{
free(data);
- return 1;
+ return EINA_TRUE;
}
/* Allocate memory */
if (!(*icon))
{
free(data);
- return 0;
+ return EINA_FALSE;
}
/* Fetch the icons */
free(((*icon)[--i]).data);
free(*icon);
free(data);
- return 0;
+ return EINA_FALSE;
}
pd = ((*icon)[i]).data;
free(data);
- return 1;
+ return EINA_TRUE;
} /* ecore_x_netwm_icons_get */
EAPI void
4);
} /* ecore_x_netwm_icon_geometry_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_icon_geometry_get(Ecore_X_Window win,
int *x,
int *y,
geometry,
4);
if (ret != 4)
- return 0;
+ return EINA_FALSE;
if (x)
*x = geometry[0];
if (height)
*height = geometry[3];
- return 1;
+ return EINA_TRUE;
} /* ecore_x_netwm_icon_geometry_get */
EAPI void
&tmp, 1);
} /* ecore_x_netwm_pid_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_pid_get(Ecore_X_Window win, int *pid)
{
int ret;
if (pid)
*pid = tmp;
- return ret == 1 ? 1 : 0;
+ return ret == 1 ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_netwm_pid_get */
EAPI void
NULL, 0);
} /* ecore_x_netwm_handled_icons_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_handled_icons_get(Ecore_X_Window win)
{
int ret = 0;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ret = ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_HANDLED_ICONS,
NULL, 0);
- return ret == 0 ? 1 : 0;
+ return ret == 0 ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_netwm_handled_icons_get */
EAPI void
&time, 1);
} /* ecore_x_netwm_user_time_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_user_time_get(Ecore_X_Window win, unsigned int *time)
{
int ret;
if (time)
*time = tmp;
- return ret == 1 ? 1 : 0;
+ return ret == 1 ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_netwm_user_time_get */
Ecore_X_Window_State
free(set);
} /* ecore_x_netwm_window_state_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_window_state_get(Ecore_X_Window win,
Ecore_X_Window_State **state,
unsigned int *num)
num_ret = ecore_x_window_prop_atom_list_get(win, ECORE_X_ATOM_NET_WM_STATE,
&atoms);
if (num_ret <= 0)
- return 0;
+ return EINA_FALSE;
if (state)
{
}
free(atoms);
- return 1;
+ return EINA_TRUE;
} /* ecore_x_netwm_window_state_get */
static Ecore_X_Window_Type
} /* ecore_x_netwm_window_type_set */
/* FIXME: Maybe return 0 on some conditions? */
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_window_type_get(Ecore_X_Window win, Ecore_X_Window_Type *type)
{
int num;
free(atoms);
if (num >= 1)
- return 1;
+ return EINA_TRUE;
- return 0;
+ return EINA_FALSE;
} /* ecore_x_netwm_window_type_get */
EAPI int
} /* _ecore_x_netwm_action_atom_get */
/* FIXME: Get complete list */
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_allowed_action_isset(Ecore_X_Window win, Ecore_X_Action action)
{
- int num, i, ret = 0;
+ int num, i;
Ecore_X_Atom *atoms, atom;
+ Eina_Bool ret = EINA_FALSE;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
num = ecore_x_window_prop_atom_list_get(win, ECORE_X_ATOM_NET_WM_WINDOW_TYPE,
free(set);
} /* ecore_x_netwm_allowed_action_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_allowed_action_get(Ecore_X_Window win,
Ecore_X_Action **action,
unsigned int *num)
ECORE_X_ATOM_NET_WM_ALLOWED_ACTIONS,
&atoms);
if (num_ret <= 0)
- return 0;
+ return EINA_FALSE;
if (action)
{
}
free(atoms);
- return 1;
+ return EINA_TRUE;
} /* ecore_x_netwm_allowed_action_get */
EAPI void
&opacity, 1);
} /* ecore_x_netwm_opacity_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_opacity_get(Ecore_X_Window win, unsigned int *opacity)
{
int ret;
if (opacity)
*opacity = tmp;
- return ret == 1 ? 1 : 0;
+ return ret == 1 ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_netwm_opacity_get */
EAPI void
4);
} /* ecore_x_netwm_frame_size_set */
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_frame_size_get(Ecore_X_Window win,
int *fl,
int *fr,
frames,
4);
if (ret != 4)
- return 0;
+ return EINA_FALSE;
if (fl)
*fl = frames[0];
if (fb)
*fb = frames[3];
- return 1;
+ return EINA_TRUE;
} /* ecore_x_netwm_frame_size_get */
-EAPI int
+EAPI Eina_Bool
ecore_x_netwm_sync_counter_get(Ecore_X_Window win,
Ecore_X_Sync_Counter *counter)
{
if (counter)
*counter = tmp;
- return ret == 1 ? 1 : 0;
+ return ret == 1 ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_netwm_sync_counter_get */
EAPI void
Ecore_X_Window root,
Ecore_X_Window_State s1,
Ecore_X_Window_State s2,
- int set)
+ Eina_Bool set)
{
XEvent xev;
/*
* Is screen composited?
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_screen_is_composited(int screen)
{
Ecore_X_Window win;
atom = XInternAtom(_ecore_x_disp, buf, False);
if (atom == None)
- return 0;
+ return EINA_FALSE;
win = XGetSelectionOwner(_ecore_x_disp, atom);
- return win != None;
+ return (win != None) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_screen_is_composited */
EAPI void
struct _Ecore_X_Selection_Converter
{
Ecore_X_Atom target;
- int (*convert)(char *target, void *data, int size,
- void **data_ret, int *size_ret,
- Ecore_X_Atom *type, int *typeseize);
+ Eina_Bool (*convert)(char *target, void *data, int size,
+ void **data_ret, int *size_ret,
+ Ecore_X_Atom *type, int *typeseize);
Ecore_X_Selection_Converter *next;
};
extern Window _ecore_x_event_last_win;
extern int _ecore_x_event_last_root_x;
extern int _ecore_x_event_last_root_y;
-extern int _ecore_x_xcursor;
+extern Eina_Bool _ecore_x_xcursor;
extern XIC _ecore_x_ic;
extern Ecore_X_Atom _ecore_x_atoms_wm_protocols[ECORE_X_WM_PROTOCOL_NUM];
char * _ecore_x_selection_target_get(Ecore_X_Atom target);
Ecore_X_Selection_Intern *
_ecore_x_selection_get(Ecore_X_Atom selection);
-int _ecore_x_selection_set(Window w,
+Eina_Bool _ecore_x_selection_set(Window w,
const void *data,
int len,
Ecore_X_Atom selection);
XDestroyRegion((Region)region);
} /* ecore_x_xregion_free */
-EAPI int
+EAPI Eina_Bool
ecore_x_xregion_set(Ecore_X_XRegion *region, Ecore_X_GC gc)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
- return XSetRegion(_ecore_x_disp, gc, (Region)region);
+ return XSetRegion(_ecore_x_disp, gc, (Region)region) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_xregion_set */
EAPI void
XOffsetRegion((Region)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)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
- return XIntersectRegion((Region)r1, (Region)r2, (Region)dst);
+ return XIntersectRegion((Region)r1, (Region)r2, (Region)dst) ? EINA_TRUE : EINA_FALSE;
} /* 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)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
- return XUnionRegion((Region)r1, (Region)r2, (Region)dst);
+ return XUnionRegion((Region)r1, (Region)r2, (Region)dst) ? EINA_TRUE : EINA_FALSE;
} /* 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)
xr.width = rect->width;
xr.height = rect->height;
- return XUnionRectWithRegion(&xr, (Region)src, (Region)dst);
+ return XUnionRectWithRegion(&xr, (Region)src, (Region)dst) ? EINA_TRUE : EINA_FALSE;
} /* 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)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
- return XSubtractRegion((Region)rm, (Region)rs, (Region)dst);
+ return XSubtractRegion((Region)rm, (Region)rs, (Region)dst) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_xregion_subtract */
-EAPI int
+EAPI Eina_Bool
ecore_x_xregion_is_empty(Ecore_X_XRegion *region)
{
if (!region)
- return 1;
+ return EINA_TRUE;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
- return !XEmptyRegion((Region)region);
+ return !XEmptyRegion((Region)region) ? EINA_TRUE : EINA_FALSE;
} /* 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 0;
+ return EINA_FALSE;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
- return XEqualRegion((Region)r1, (Region)r1);
+ return XEqualRegion((Region)r1, (Region)r1) ? EINA_TRUE : EINA_FALSE;
} /* 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 0;
+ return EINA_FALSE;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
- return XPointInRegion((Region)region, x, y);
+ return XPointInRegion((Region)region, x, y) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_xregion_point_contain */
-EAPI int
+EAPI Eina_Bool
ecore_x_xregion_rect_contain(Ecore_X_XRegion *region, Ecore_X_Rectangle *rect)
{
if (!region || !rect)
- return 0;
+ return EINA_FALSE;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XRectInRegion((Region)region,
rect->x,
rect->y,
rect->width,
- rect->height);
+ rect->height) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_xregion_rect_contain */
static int _screensaver_available = -1;
-EAPI int
+EAPI Eina_Bool
ecore_x_screensaver_event_available_get(void)
{
if (_screensaver_available >= 0)
} /* ecore_x_screensaver_interval_get */
EAPI void
-ecore_x_screensaver_event_listen_set(int on __UNUSED__)
+ecore_x_screensaver_event_listen_set(Eina_Bool on)
{
#ifdef ECORE_XSS
Ecore_X_Window root;
static Ecore_X_Selection_Converter *converters = NULL;
static Ecore_X_Selection_Parser *parsers = NULL;
-static int _ecore_x_selection_converter_text(char *target,
+static Eina_Bool _ecore_x_selection_converter_text(char *target,
void *data,
int size,
void **data_ret,
return NULL;
} /* _ecore_x_selection_get */
-int
+Eina_Bool
_ecore_x_selection_set(Window w,
const void *data,
int size,
XSetSelectionOwner(_ecore_x_disp, selection, w, _ecore_x_event_last_time);
if (XGetSelectionOwner(_ecore_x_disp, selection) != w)
- return 0;
+ return EINA_FALSE;
if (selection == ECORE_X_ATOM_SELECTION_PRIMARY)
in = 0;
else if (selection == ECORE_X_ATOM_SELECTION_CLIPBOARD)
in = 3;
else
- return 0;
+ return EINA_FALSE;
if (data)
{
memset(&selections[in], 0, sizeof(Ecore_X_Selection_Data));
}
- return 1;
+ return EINA_TRUE;
} /* _ecore_x_selection_set */
/**
* @return Returns 1 if the ownership of the selection was successfully
* claimed, or 0 if unsuccessful.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_selection_primary_set(Ecore_X_Window w, const void *data, int size)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
* or 0 if unsuccessful.
*
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_selection_primary_clear(void)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
* @return Returns 1 if the ownership of the selection was successfully
* claimed, or 0 if unsuccessful.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_selection_secondary_set(Ecore_X_Window w, const void *data, int size)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
* or 0 if unsuccessful.
*
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_selection_secondary_clear(void)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
* @return Returns 1 if the ownership of the selection was successfully
* claimed, or 0 if unsuccessful.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_selection_xdnd_set(Ecore_X_Window w, const void *data, int size)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
* or 0 if unsuccessful.
*
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_selection_xdnd_clear(void)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
* Get the converted data from a previous CLIPBOARD selection
* request. The buffer must be freed when done with.
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_selection_clipboard_set(Ecore_X_Window w, const void *data, int size)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
* or 0 if unsuccessful.
*
*/
-EAPI int
+EAPI Eina_Bool
ecore_x_selection_clipboard_clear(void)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
} /* ecore_x_selection_clipboard_request */
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))
+ecore_x_selection_converter_atom_add(Ecore_X_Atom target,
+ 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,
+ Eina_Bool (*func)(char *target,
void *data,
int size,
void **data_ret,
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,
xnotify.serial = 0;
xev.xselection = xnotify;
- return ((XSendEvent(_ecore_x_disp, requestor, False, 0, &xev) > 0) ? 1 : 0);
+ return ((XSendEvent(_ecore_x_disp, requestor, False, 0, &xev) > 0) ? EINA_TRUE : EINA_FALSE);
} /* 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,
return r;
}
else
- return 0;
+ return EINA_FALSE;
}
}
/* ICCCM says "If the selection cannot be converted into a form based on the target (and parameters, if any), the owner should refuse the SelectionRequest as previously described." */
- return 0;
+ return EINA_FALSE;
/* Default, just return the data
*data_ret = malloc(sel->length);
/* 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,
XICCEncodingStyle style;
if (!data || !size)
- return 0;
+ return EINA_FALSE;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!strcmp(target, ECORE_X_SELECTION_TARGET_TEXT))
style = XUTF8StringStyle;
#endif /* ifdef X_HAVE_UTF8_STRING */
else
- return 0;
+ return EINA_FALSE;
if (!(mystr = strdup(data)))
- return 0;
+ return EINA_FALSE;
#ifdef X_HAVE_UTF8_STRING
if (Xutf8TextListToTextProperty(_ecore_x_disp, &mystr, 1, style,
*size_ret = bufsize;
XFree(text_prop.value);
free(mystr);
- return 1;
+ return EINA_TRUE;
}
#else /* ifdef X_HAVE_UTF8_STRING */
*size_ret = bufsize;
XFree(text_prop.value);
free(mystr);
- return 1;
+ return EINA_TRUE;
}
#endif /* ifdef X_HAVE_UTF8_STRING */
else
{
free(mystr);
- return 0;
+ return EINA_TRUE;
}
} /* _ecore_x_selection_converter_text */
return alarm;
} /* ecore_x_sync_alarm_new */
-EAPI int
+EAPI Eina_Bool
ecore_x_sync_alarm_free(Ecore_X_Sync_Alarm alarm)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XSyncDestroyAlarm(_ecore_x_disp, alarm);
} /* ecore_x_sync_alarm_free */
-EAPI int
+EAPI Eina_Bool
ecore_x_sync_counter_query(Ecore_X_Sync_Counter counter, unsigned int *val)
{
XSyncValue value;
if (XSyncQueryCounter(_ecore_x_disp, counter, &value))
{
*val = (unsigned int)XSyncValueLow32(value);
- return 1;
+ return EINA_TRUE;
}
- return 0;
+ return EINA_FALSE;
} /* ecore_x_sync_counter_query */
EAPI Ecore_X_Sync_Counter
#include "Ecore_X.h"
#include <string.h>
-EAPI int
+EAPI Eina_Bool
ecore_x_test_fake_key_down(const char *key)
{
#ifdef ECORE_XTEST
{
keysym = XStringToKeysym(key);
if (keysym == NoSymbol)
- return 0;
+ return EINA_FALSE;
keycode = XKeysymToKeycode(_ecore_x_disp, keysym);
}
if (keycode == 0)
- return 0;
+ return EINA_FALSE;
- return XTestFakeKeyEvent(_ecore_x_disp, keycode, 1, 0);
+ return XTestFakeKeyEvent(_ecore_x_disp, keycode, 1, 0) ? EINA_TRUE : EINA_FALSE;
#else /* ifdef ECORE_XTEST */
- return 0;
+ return EINA_FALSE;
#endif /* ifdef ECORE_XTEST */
} /* ecore_x_test_fake_key_down */
-EAPI int
+EAPI Eina_Bool
ecore_x_test_fake_key_up(const char *key)
{
#ifdef ECORE_XTEST
{
keysym = XStringToKeysym(key);
if (keysym == NoSymbol)
- return 0;
+ return EINA_FALSE;
keycode = XKeysymToKeycode(_ecore_x_disp, keysym);
}
if (keycode == 0)
- return 0;
+ return EINA_FALSE;
- return XTestFakeKeyEvent(_ecore_x_disp, keycode, 0, 0);
+ return XTestFakeKeyEvent(_ecore_x_disp, keycode, 0, 0) ? EINA_TRUE : EINA_FALSE;
#else /* ifdef ECORE_XTEST */
- return 0;
+ return EINA_FALSE;
#endif /* ifdef ECORE_XTEST */
} /* ecore_x_test_fake_key_up */
-EAPI int
+EAPI Eina_Bool
ecore_x_test_fake_key_press(const char *key)
{
#ifdef ECORE_XTEST
{
keysym = XStringToKeysym(key);
if (keysym == NoSymbol)
- return 0;
+ return EINA_FALSE;
keycode = XKeysymToKeycode(_ecore_x_disp, keysym);
if (XKeycodeToKeysym(_ecore_x_disp, keycode, 0) != keysym)
XTestFakeKeyEvent(_ecore_x_disp,
XKeysymToKeycode(_ecore_x_disp, XK_Shift_L), 0, 0);
- return 1;
+ return EINA_TRUE;
#else /* ifdef ECORE_XTEST */
- return 0;
+ return EINA_FALSE;
#endif /* ifdef ECORE_XTEST */
} /* ecore_x_test_fake_key_press */
* FIXME: To be fixed.
*/
EAPI void
-ecore_x_window_cursor_show(Ecore_X_Window win, int show)
+ecore_x_window_cursor_show(Ecore_X_Window win, Eina_Bool show)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (win == 0)
} /* ecore_x_window_area_expose */
EAPI void
-ecore_x_window_override_set(Ecore_X_Window win, int override)
+ecore_x_window_override_set(Ecore_X_Window win, Eina_Bool override)
{
XSetWindowAttributes att;
int y,
int w,
int h,
- int override,
- int saveunder)
+ Eina_Bool override,
+ Eina_Bool saveunder)
{
Window win;
XSetWindowAttributes attr;
return str;
} /* ecore_x_window_prop_string_get */
-EAPI int
+EAPI Eina_Bool
ecore_x_window_prop_protocol_isset(Ecore_X_Window win,
Ecore_X_WM_Protocol protocol)
{
Atom proto, *protos = NULL;
- int i, ret = 0, protos_count = 0;
+ int i, protos_count = 0;
+ Eina_Bool ret = EINA_FALSE;
/* check for invalid values */
if (protocol >= ECORE_X_WM_PROTOCOL_NUM)
- return 0;
+ return EINA_FALSE;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
proto = _ecore_x_atoms_wm_protocols[protocol];
for (i = 0; i < protos_count; i++)
if (protos[i] == proto)
{
- ret = 1;
+ ret = EINA_TRUE;
break;
}
} /* ecore_x_window_shape_rectangles_get */
EAPI void
-ecore_x_window_shape_events_select(Ecore_X_Window win, int on)
+ecore_x_window_shape_events_select(Ecore_X_Window win, Eina_Bool on)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (on)
return 0;
} /* ecore_x_xinerama_screen_count_get */
-EAPI int
+EAPI Eina_Bool
ecore_x_xinerama_screen_geometry_get(int screen __UNUSED__, int *x, int *y, int *w, int *h)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (h)
*h = _xin_info[i].height;
- return 1;
+ return EINA_TRUE;
}
}
}
if (h)
*h = DisplayHeight(_ecore_x_disp, 0);
- return 0;
+ return EINA_FALSE;
} /* ecore_x_xinerama_screen_geometry_get */