Michael Bouchaud <michael.bouchaud@gmail.com>
Jonathan Atton (Watchwolf) <jonathan.atton@gmail.com>
Brian Wang <brian.wang.0721@gmail.com>
-
+Mike Blumenkrantz (zmike) <mike@zentific.com>
const char *hover_style;
};
+static const char *widtype = NULL;
static void _del_pre_hook(Evas_Object *obj);
static void _del_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "anchorblock");
elm_widget_type_set(obj, "anchorblock");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_anchorblock_text_set(Evas_Object *obj, const char *text)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
elm_entry_entry_set(wd->entry, text);
if (wd->hover) evas_object_del(wd->hover);
EAPI void
elm_anchorblock_hover_parent_set(Evas_Object *obj, Evas_Object *parent)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->hover_parent)
evas_object_event_callback_del_full(wd->hover_parent, EVAS_CALLBACK_DEL, _parent_del, obj);
EAPI void
elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->hover_style) eina_stringshare_del(wd->hover_style);
wd->hover_style = NULL;
EAPI void
elm_anchorblock_hover_end(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->hover) evas_object_del(wd->hover);
if (wd->pop) evas_object_del(wd->pop);
const char *hover_style;
};
+static const char *widtype = NULL;
static void _del_pre_hook(Evas_Object *obj);
static void _del_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "anchorview");
elm_widget_type_set(obj, "anchorview");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_anchorview_text_set(Evas_Object *obj, const char *text)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
elm_entry_entry_set(wd->entry, text);
if (wd->hover) evas_object_del(wd->hover);
EAPI void
elm_anchorview_hover_parent_set(Evas_Object *obj, Evas_Object *parent)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->hover_parent)
evas_object_event_callback_del_full(wd->hover_parent, EVAS_CALLBACK_DEL, _parent_del, obj);
EAPI void
elm_anchorview_hover_style_set(Evas_Object *obj, const char *style)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->hover_style) eina_stringshare_del(wd->hover_style);
wd->hover_style = NULL;
EAPI void
elm_anchorview_hover_end(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->hover) evas_object_del(wd->hover);
if (wd->pop) evas_object_del(wd->pop);
EAPI void
elm_anchorview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
elm_scroller_bounce_set(wd->scroller, h_bounce, v_bounce);
}
Elm_Genlist_Item_Class itc;
+static const char *widtype = NULL;
static void _populate(Evas_Object *obj, const char *path, Elm_Genlist_Item *parent);
static void _do_anchors(Evas_Object *obj, const char *path);
wd = ELM_NEW(Widget_Data);
wd->expand = EINA_FALSE;
obj = elm_widget_add(evas_object_evas_get(parent));
+ ELM_SET_WIDTYPE(widtype, "fileselector");
elm_widget_type_set(obj, "fileselector");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (is_save)
EAPI Eina_Bool
elm_fileselector_is_save_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->entry2 ? EINA_TRUE : EINA_FALSE;
}
EAPI void
elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if(wd->only_folder == only) return ;
EAPI Eina_Bool
elm_fileselector_only_folder_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->only_folder;
}
EAPI void
elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool only)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *box, *bt;
EAPI Eina_Bool
elm_fileselector_ok_cancel_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->buttons.bx ? EINA_TRUE : EINA_FALSE;
}
EAPI void
elm_fileselector_expandable_set(Evas_Object *obj, Eina_Bool expand)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->expand = expand;
}
EAPI const char *
elm_fileselector_path_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->path;
}
EAPI const char*
elm_fileselector_selected_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Elm_Genlist_Item *it;
void *data;
};
+static const char *widtype = NULL;
static void _del_pre_hook(Evas_Object *obj);
static void _del_hook(Evas_Object *obj);
static void _disable_hook(Evas_Object *obj);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "hoversel");
elm_widget_type_set(obj, "hoversel");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI void
elm_hoversel_label_set(Evas_Object *obj, const char *label)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI void
elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->horizontal = !!horizontal;
}
EAPI const char*
elm_hoversel_label_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if ((!wd) || (!wd->btn)) return NULL;
EAPI void
elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI Evas_Object *
elm_hoversel_icon_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if ((!wd) || (!wd->btn)) return NULL;
EAPI void
elm_hoversel_hover_begin(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI void
elm_hoversel_hover_end(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
{
Elm_Hoversel_Item *it;
Eina_List *l, *ll;
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
{
Elm_Hoversel_Item *it;
Eina_List *l, *ll;
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
EAPI Elm_Hoversel_Item *
elm_hoversel_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
Elm_Hoversel_Item *it = calloc(1, sizeof(Elm_Hoversel_Item));
Eina_Bool auto_write : 1;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
static void _on_focus_hook(void *data, Evas_Object *obj);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "notepad");
elm_widget_type_set(obj, "notepad");
elm_widget_sub_object_add(parent, obj);
elm_widget_on_focus_hook_set(obj, _on_focus_hook, NULL);
EAPI void
elm_notepad_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->delay_write)
{
EAPI void
elm_notepad_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
elm_scroller_bounce_set(wd->scr, h_bounce, v_bounce);
}
Elm_Scroller_Policy policy_h, policy_v;
};
+static const char *widtype = NULL;
static void
_del_hook(Evas_Object *obj)
{
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "scrolled_entry");
elm_widget_type_set(obj, "scrolled_entry");
elm_widget_sub_object_add(parent, obj);
elm_widget_on_focus_hook_set(obj, _on_focus_hook, NULL);
EAPI void
elm_scrolled_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_single_line_set(wd->entry, single_line);
EAPI void
elm_scrolled_entry_password_set(Evas_Object *obj, Eina_Bool password)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_password_set(wd->entry, password);
EAPI void
elm_scrolled_entry_entry_set(Evas_Object *obj, const char *entry)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_entry_set(wd->entry, entry);
EAPI const char *
elm_scrolled_entry_entry_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
return elm_entry_entry_get(wd->entry);
EAPI const char *
elm_scrolled_entry_selection_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
return elm_entry_selection_get(wd->entry);
EAPI void
elm_scrolled_entry_entry_insert(Evas_Object *obj, const char *entry)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_entry_insert(wd->entry, entry);
EAPI void
elm_scrolled_entry_line_wrap_set(Evas_Object *obj, Eina_Bool wrap)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_line_wrap_set(wd->entry, wrap);
EAPI void
elm_scrolled_entry_line_char_wrap_set(Evas_Object *obj, Eina_Bool wrap)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_line_char_wrap_set(wd->entry, wrap);
EAPI void
elm_scrolled_entry_editable_set(Evas_Object *obj, Eina_Bool editable)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_editable_set(wd->entry, editable);
EAPI void
elm_scrolled_entry_select_none(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_select_none(wd->entry);
EAPI void
elm_scrolled_entry_select_all(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_select_all(wd->entry);
EAPI Eina_Bool
elm_scrolled_entry_cursor_next(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return 0;
return elm_entry_cursor_next(wd->entry);
EAPI Eina_Bool
elm_scrolled_entry_cursor_prev(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return 0;
return elm_entry_cursor_prev(wd->entry);
EAPI Eina_Bool
elm_scrolled_entry_cursor_up(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return 0;
return elm_entry_cursor_up(wd->entry);
EAPI Eina_Bool
elm_scrolled_entry_cursor_down(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return 0;
return elm_entry_cursor_down(wd->entry);
EAPI void
elm_scrolled_entry_cursor_begin_set(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_cursor_begin_set(wd->entry);
EAPI void
elm_scrolled_entry_cursor_end_set(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_cursor_end_set(wd->entry);
EAPI void
elm_scrolled_entry_cursor_line_begin_set(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_cursor_line_begin_set(wd->entry);
EAPI void
elm_scrolled_entry_cursor_line_end_set(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_cursor_line_end_set(wd->entry);
EAPI void
elm_scrolled_entry_cursor_selection_begin(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_cursor_selection_begin(wd->entry);
EAPI void
elm_scrolled_entry_cursor_selection_end(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_cursor_selection_end(wd->entry);
EAPI Eina_Bool
elm_scrolled_entry_cursor_is_format_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return 0;
return elm_entry_cursor_is_format_get(wd->entry);
EAPI Eina_Bool
elm_scrolled_entry_cursor_is_visible_format_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return 0;
return elm_entry_cursor_is_visible_format_get(wd->entry);
EAPI const char *
elm_scrolled_entry_cursor_content_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
return elm_entry_cursor_content_get(wd->entry);
EAPI void
elm_scrolled_entry_selection_cut(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_selection_cut(wd->entry);
EAPI void
elm_scrolled_entry_selection_copy(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_selection_copy(wd->entry);
EAPI void
elm_scrolled_entry_selection_paste(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_selection_paste(wd->entry);
EAPI void
elm_scrolled_entry_context_menu_clear(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_context_menu_clear(wd->entry);
EAPI void
elm_scrolled_entry_context_menu_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_context_menu_item_add(wd->entry, label, icon_file, icon_type, func, data);
EAPI void
elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_entry_context_menu_disabled_set(wd->entry, disabled);
EAPI Eina_Bool
elm_scrolled_entry_context_menu_disabled_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return 0;
return elm_entry_context_menu_disabled_get(wd->entry);
EAPI void
elm_scrolled_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
wd->policy_h = h;
EAPI void
elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_scroller_bounce_set(wd->scroller, h_bounce, v_bounce);
const char *file, *group;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _custom_resize(void *data, Evas *a, Evas_Object *obj, void *event_info);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "bg");
elm_widget_type_set(obj, "bg");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_bg_file_set(Evas_Object *obj, const char *file, const char *group)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
const char *p;
Eina_Bool homogeneous:1;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
static void _changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "box");
elm_widget_type_set(obj, "box");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_box_horizontal_set(Evas_Object *obj, Eina_Bool horizontal)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->horizontal = !!horizontal;
evas_object_smart_calculate(wd->box);
EAPI void
elm_box_homogenous_set(Evas_Object *obj, Eina_Bool homogenous)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->homogeneous = !!homogenous;
evas_object_smart_calculate(wd->box);
EAPI void
elm_box_pack_start(Evas_Object *obj, Evas_Object *subobj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
elm_widget_sub_object_add(obj, subobj);
evas_object_box_prepend(wd->box, subobj);
EAPI void
elm_box_pack_end(Evas_Object *obj, Evas_Object *subobj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
elm_widget_sub_object_add(obj, subobj);
evas_object_box_append(wd->box, subobj);
EAPI void
elm_box_pack_before(Evas_Object *obj, Evas_Object *subobj, Evas_Object *before)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
elm_widget_sub_object_add(obj, subobj);
evas_object_box_insert_before(wd->box, subobj, before);
EAPI void
elm_box_pack_after(Evas_Object *obj, Evas_Object *subobj, Evas_Object *after)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
elm_widget_sub_object_add(obj, subobj);
evas_object_box_insert_after(wd->box, subobj, after);
EAPI void
elm_box_clear(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
evas_object_box_remove_all(wd->box, 1);
}
EAPI void
elm_box_unpack(Evas_Object *obj, Evas_Object *subobj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
evas_object_box_remove(wd->box, subobj);
}
EAPI void
elm_box_unpack_all(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
evas_object_box_remove_all(wd->box, 0);
}
const char *label, *info;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "bubble");
elm_widget_type_set(obj, "bubble");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_bubble_label_set(Evas_Object *obj, const char *label)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->label) eina_stringshare_del(wd->label);
if (label) wd->label = eina_stringshare_add(label);
EAPI const char*
elm_bubble_label_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
return wd->label;
EAPI void
elm_bubble_info_set(Evas_Object *obj, const char *info)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->info) eina_stringshare_del(wd->info);
if (info) wd->info = eina_stringshare_add(info);
EAPI void
elm_bubble_content_set(Evas_Object *obj, Evas_Object *content)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if ((wd->content != content) && (wd->content))
elm_widget_sub_object_del(obj, wd->content);
EAPI void
elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if ((wd->icon != icon) && (wd->icon))
elm_widget_sub_object_del(obj, wd->icon);
EAPI Evas_Object *
elm_bubble_icon_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
return wd->icon;
EAPI void
elm_bubble_corner_set(Evas_Object *obj, const char *corner)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
_elm_theme_set(wd->bbl, "bubble", corner, elm_widget_style_get(obj));
if (wd->icon)
Ecore_Timer *timer;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _disable_hook(Evas_Object *obj);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "button");
elm_widget_type_set(obj, "button");
elm_widget_sub_object_add(parent, obj);
elm_widget_on_focus_hook_set( obj, _on_focus_hook, NULL );
EAPI void
elm_button_label_set(Evas_Object *obj, const char *label)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord mw, mh;
EAPI const char*
elm_button_label_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
return wd->label;
EAPI void
elm_button_icon_set(Evas_Object *obj, Evas_Object *icon)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
if ((wd->icon != icon) && (wd->icon))
EAPI Evas_Object *
elm_button_icon_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
return wd->icon;
EAPI void
elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI void
elm_button_autorepeat_initital_timeout_set(Evas_Object *obj, double t)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI void
elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
Eina_Bool selected : 1;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "carousel");
elm_widget_type_set(obj, "carousel");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI Elm_Carousel_Item *
elm_carousel_item_add(Evas_Object *obj, Evas_Object *icon, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord mw, mh;
Elm_Carousel_Item *it = calloc(1, sizeof(Elm_Carousel_Item));
const char *label;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _disable_hook(Evas_Object *obj);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "check");
elm_widget_type_set(obj, "check");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_check_label_set(Evas_Object *obj, const char *label)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord mw, mh;
EAPI const char*
elm_check_label_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
return wd->label;
EAPI void
elm_check_icon_set(Evas_Object *obj, Evas_Object *icon)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if ((wd->icon != icon) && (wd->icon))
elm_widget_sub_object_del(obj, wd->icon);
EAPI Evas_Object *
elm_check_icon_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
return wd->icon;
EAPI void
elm_check_state_set(Evas_Object *obj, Eina_Bool state)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (state != wd->state)
{
EAPI Eina_Bool
elm_check_state_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->state;
}
EAPI void
elm_check_state_pointer_set(Evas_Object *obj, Eina_Bool *statep)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (statep)
{
} cur;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static int _ticker(void *data);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "clock");
elm_widget_type_set(obj, "clock");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->hrs = hrs;
wd->min = min;
EAPI void
elm_clock_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (hrs) *hrs = wd->hrs;
if (min) *min = wd->min;
EAPI void
elm_clock_edit_set(Evas_Object *obj, Eina_Bool edit)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->edit = edit;
_time_update(obj);
EAPI void
elm_clock_show_am_pm_set(Evas_Object *obj, Eina_Bool am_pm)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->am_pm = am_pm;
_time_update(obj);
EAPI void
elm_clock_show_seconds_set(Evas_Object *obj, Eina_Bool seconds)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->seconds = seconds;
_time_update(obj);
};
/* local function prototypes */
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
evas = evas_object_evas_get(parent);
obj = elm_widget_add(evas);
+ ELM_SET_WIDTYPE(widtype, "conform");
elm_widget_type_set(obj, "conformant");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_conformant_content_set(Evas_Object *obj, Evas_Object *content)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if ((wd->content != content) && (wd->content))
void *data;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _disable_hook(Evas_Object *obj);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "entry");
elm_widget_type_set(obj, "entry");
elm_widget_sub_object_add(parent, obj);
elm_widget_on_focus_hook_set(obj, _on_focus_hook, NULL);
EAPI void
elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
const char *t;
EAPI void
elm_entry_password_set(Evas_Object *obj, Eina_Bool password)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
const char *t;
EAPI void
elm_entry_entry_set(Evas_Object *obj, const char *entry)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!entry) entry = "<br>";
EAPI const char *
elm_entry_entry_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
const char *text, *s = NULL;
size_t len;
EAPI const char *
elm_entry_selection_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
EAPI void
elm_entry_entry_insert(Evas_Object *obj, const char *entry)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
edje_object_part_text_insert(wd->ent, "elm.text", entry);
EAPI void
elm_entry_line_wrap_set(Evas_Object *obj, Eina_Bool wrap)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
const char *t;
EAPI void
elm_entry_line_char_wrap_set(Evas_Object *obj, Eina_Bool wrap)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
const char *t;
EAPI void
elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
const char *t;
EAPI void
elm_entry_select_none(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->selmode)
EAPI void
elm_entry_select_all(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->selmode)
EAPI Eina_Bool
elm_entry_cursor_next(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return edje_object_part_text_cursor_next(wd->ent, "elm.text", EDJE_CURSOR_MAIN);
}
EAPI Eina_Bool
elm_entry_cursor_prev(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return edje_object_part_text_cursor_prev(wd->ent, "elm.text", EDJE_CURSOR_MAIN);
}
EAPI Eina_Bool
elm_entry_cursor_up(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return edje_object_part_text_cursor_up(wd->ent, "elm.text", EDJE_CURSOR_MAIN);
}
EAPI Eina_Bool
elm_entry_cursor_down(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return edje_object_part_text_cursor_down(wd->ent, "elm.text", EDJE_CURSOR_MAIN);
}
EAPI void
elm_entry_cursor_begin_set(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
edje_object_part_text_cursor_begin_set(wd->ent, "elm.text", EDJE_CURSOR_MAIN);
}
EAPI void
elm_entry_cursor_end_set(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
edje_object_part_text_cursor_end_set(wd->ent, "elm.text", EDJE_CURSOR_MAIN);
}
EAPI void
elm_entry_cursor_line_begin_set(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
edje_object_part_text_cursor_line_begin_set(wd->ent, "elm.text", EDJE_CURSOR_MAIN);
}
EAPI void
elm_entry_cursor_line_end_set(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
edje_object_part_text_cursor_line_end_set(wd->ent, "elm.text", EDJE_CURSOR_MAIN);
}
EAPI void
elm_entry_cursor_selection_begin(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
edje_object_part_text_select_all(wd->ent, "elm.text");
edje_object_part_text_cursor_copy(wd->ent, "elm.text", EDJE_CURSOR_MAIN, EDJE_CURSOR_SELECTION_BEGIN);
EAPI void
elm_entry_cursor_selection_end(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
edje_object_part_text_cursor_copy(wd->ent, "elm.text", EDJE_CURSOR_MAIN, EDJE_CURSOR_SELECTION_END);
}
EAPI Eina_Bool
elm_entry_cursor_is_format_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return edje_object_part_text_cursor_is_format_get(wd->ent, "elm.text", EDJE_CURSOR_MAIN);
}
EAPI Eina_Bool
elm_entry_cursor_is_visible_format_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return edje_object_part_text_cursor_is_visible_format_get(wd->ent, "elm.text", EDJE_CURSOR_MAIN);
}
EAPI const char *
elm_entry_cursor_content_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return edje_object_part_text_cursor_content_get(wd->ent, "elm.text", EDJE_CURSOR_MAIN);
}
EAPI void
elm_entry_selection_cut(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
_cut(obj, NULL, NULL);
}
EAPI void
elm_entry_selection_copy(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
_copy(obj, NULL, NULL);
}
EAPI void
elm_entry_selection_paste(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
_paste(obj, NULL, NULL);
}
EAPI void
elm_entry_context_menu_clear(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Eina_List *l;
Elm_Entry_Context_Menu_Item *it;
EAPI void
elm_entry_context_menu_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Elm_Entry_Context_Menu_Item *it;
EAPI void
elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
if (wd->context_menu == !disabled) return;
EAPI Eina_Bool
elm_entry_context_menu_disabled_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return EINA_FALSE;
return !wd->context_menu;
Eina_Bool state : 1;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "flip");
elm_widget_type_set(obj, "flip");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_flip_content_front_set(Evas_Object *obj, Evas_Object *content)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->front.content == content) return;
EAPI void
elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->back.content == content) return;
EAPI Eina_Bool
elm_flip_front_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->state;
}
EAPI void
elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
}
EAPI void
elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd->animator) wd->animator = ecore_animator_add(_animate, obj);
wd->mode = mode;
Evas_Object *content;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "frame");
elm_widget_type_set(obj, "frame");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_frame_label_set(Evas_Object *obj, const char *label)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
edje_object_part_text_set(wd->frm, "elm.text", label);
EAPI const char*
elm_frame_label_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if ((!wd) || (!wd->frm)) return NULL;
EAPI void
elm_frame_content_set(Evas_Object *obj, Evas_Object *content)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if ((wd->content != content) && (wd->content))
Widget_Data *wd;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _show_region_hook(void *data, Evas_Object *obj);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "genlist");
elm_widget_type_set(obj, "genlist");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
Elm_Genlist_Item_Flags flags,
void (*func) (void *data, Evas_Object *obj, void *event_info), const void *func_data)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Elm_Genlist_Item *it = _item_new(wd, itc, data, parent, flags, func, func_data);
Elm_Genlist_Item_Flags flags,
void (*func) (void *data, Evas_Object *obj, void *event_info), const void *func_data)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Elm_Genlist_Item *it = _item_new(wd, itc, data, parent, flags, func, func_data);
Elm_Genlist_Item_Flags flags,
void (*func) (void *data, Evas_Object *obj, void *event_info), const void *func_data)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Elm_Genlist_Item *it = _item_new(wd, itc, data, NULL, flags, func, func_data);
Elm_Genlist_Item_Flags flags,
void (*func) (void *data, Evas_Object *obj, void *event_info), const void *func_data)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Elm_Genlist_Item *it = _item_new(wd, itc, data, NULL, flags, func, func_data);
EAPI void
elm_genlist_clear(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
while (wd->items)
EAPI void
elm_genlist_multi_select_set(Evas_Object *obj, Eina_Bool multi)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->multi = multi;
EAPI Elm_Genlist_Item *
elm_genlist_selected_item_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->selected) return wd->selected->data;
EAPI const Eina_List *
elm_genlist_selected_items_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->selected;
EAPI Eina_List *
elm_genlist_realized_items_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Eina_List *list = NULL;
Item_Block *itb;
EAPI Elm_Genlist_Item *
elm_genlist_at_xy_item_get(const Evas_Object *obj, Evas_Coord x, Evas_Coord y, int *posret)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord ox, oy, ow, oh;
Item_Block *itb;
EAPI Elm_Genlist_Item *
elm_genlist_first_item_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd->items) return NULL;
Elm_Genlist_Item *it = (Elm_Genlist_Item *)(wd->items);
EAPI Elm_Genlist_Item *
elm_genlist_last_item_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd->items) return NULL;
Elm_Genlist_Item *it = (Elm_Genlist_Item *)(wd->items->last);
EAPI void
elm_genlist_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->mode == mode) return;
EAPI void
elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->always_select = always_select;
}
EAPI void
elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->no_select = no_select;
}
EAPI void
elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->compress = compress;
}
EAPI void
elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
elm_smart_scroller_bounce_allow_set(wd->scr, h_bounce, v_bounce);
}
EAPI void
elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (homogeneous)
EAPI void
elm_genlist_block_count_set(Evas_Object *obj, int n)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->max_items_per_block = n;
}
Evas_Object *obj;
};
+static const char *widtype = NULL;
static void _del_pre_hook(Evas_Object *obj);
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void
_hov_hide(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
const Eina_List *l;
const Subinfo *si;
static void
_target_del(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
wd->target = NULL;
static void
_signal_dismiss(void *data, Evas_Object *obj, const char *emission, const char *source)
{
+
Widget_Data *wd = elm_widget_data_get(data);
evas_object_hide(data);
static void
_parent_show(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
}
static void
_parent_hide(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
if (wd) evas_object_hide(wd->cov);
static void
_parent_del(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
elm_hover_parent_set(data, NULL);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "hover");
elm_widget_type_set(obj, "hover");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_hover_target_set(Evas_Object *obj, Evas_Object *target)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->target)
EAPI void
elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->parent)
EAPI void
elm_hover_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Subinfo *si;
const Eina_List *l;
EAPI const char *
elm_hover_best_content_location_get(const Evas_Object *obj, Elm_Hover_Axis pref_axis)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord x = 0, y = 0, w = 0, h = 0, x2 = 0, y2 = 0, w2 = 0, h2 = 0;
Evas_Coord spc_l, spc_r, spc_t, spc_b;
Eina_Bool no_scale : 1;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "icon");
elm_widget_type_set(obj, "icon");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI Eina_Bool
elm_icon_file_set(Evas_Object *obj, const char *file, const char *group)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Eina_Bool ret;
const char *p;
EAPI Eina_Bool
elm_icon_standard_set(Evas_Object *obj, const char *name)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Eina_Bool ret;
EAPI void
elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI void
elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI void
elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI void
elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI void
elm_icon_prescale_set(Evas_Object *obj, int size)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
Eina_Bool no_scale : 1;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "image");
elm_widget_type_set(obj, "image");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI Eina_Bool
elm_image_file_set(Evas_Object *obj, const char *file, const char *group)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Eina_Bool ret;
const char *p;
EAPI void
elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI void
elm_image_object_size_get(const Evas_Object *obj, int *w, int *h)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
_els_smart_icon_size_get(wd->img, w, h);
EAPI void
elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI void
elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI void
elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI void
elm_image_prescale_set(Evas_Object *obj, int size)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI void
elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
Eina_Bool selected : 1;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
static int
_delay_change(void *data)
{
+
Widget_Data *wd = elm_widget_data_get(data);
void *d;
static void
_wheel(void *data, Evas *e, Evas_Object *o, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
Evas_Event_Mouse_Wheel *ev = event_info;
Evas_Object *obj = o;
static void
_mouse_down(void *data, Evas *e, Evas_Object *o, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
Evas_Event_Mouse_Down *ev = event_info;
Evas_Coord x, y;
static void
_mouse_up(void *data, Evas *e, Evas_Object *o, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
Evas_Event_Mouse_Up *ev = event_info;
void *d;
static void
_mouse_move(void *data, Evas *e, Evas_Object *o, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
Evas_Event_Mouse_Move *ev = event_info;
Evas_Coord minw = 0, minh = 0, x, y, dx, dy, adx, ady;
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "index");
elm_widget_type_set(obj, "index");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_index_active_set(Evas_Object *obj, Eina_Bool active)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI void
elm_index_item_level_set(Evas_Object *obj, int level)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI int
elm_index_item_level_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return 0;
EAPI const void *
elm_index_item_selected_get(Evas_Object *obj, int level)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Eina_List *l;
Item *it;
EAPI void
elm_index_item_append(Evas_Object *obj, const char *letter, const void *item)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Item *it;
EAPI void
elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Item *it;
EAPI void
elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Item *it, *it_rel;
EAPI void
elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Item *it, *it_rel;
EAPI void
elm_index_item_del(Evas_Object *obj, const void *item)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Item *it;
EAPI void
elm_index_item_clear(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Item *it;
Eina_List *l, *clear = NULL;
EAPI void
elm_index_item_go(Evas_Object *obj, int level)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Item *it;
Eina_Bool changed : 1;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
static void
_resize(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
if (wd->linewrap)
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "label");
elm_widget_type_set(obj, "label");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_label_label_set(Evas_Object *obj, const char *label)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!label) label = "";
EAPI const char *
elm_label_label_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
EAPI void
elm_label_line_wrap_set(Evas_Object *obj, Eina_Bool wrap)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
const char *t;
if (wd->linewrap == wrap) return;
EAPI Eina_Bool
elm_label_line_wrap_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->linewrap;
}
EAPI void
elm_label_wrap_width_set(Evas_Object *obj, Evas_Coord w)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->wrap_w == w) return;
wd->wrap_w = w;
EAPI Evas_Coord
elm_label_wrap_width_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->wrap_w;
}
Evas_Object *obj;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
static void
_del_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Subinfo *si;
static void
_theme_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
edje_object_scale_set(wd->lay, elm_widget_scale_get(obj) *
static void
_changed_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->needs_size_calc)
{
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord minw = -1, minh = -1;
static void
_request_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->needs_size_calc) return;
wd->needs_size_calc = 1;
static void
_sub_del(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *sub = event_info;
Eina_List *l;
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "layout");
elm_widget_type_set(obj, "layout");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI Eina_Bool
elm_layout_file_set(Evas_Object *obj, const char *file, const char *group)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Eina_Bool ret = edje_object_file_set(wd->lay, file, group);
EAPI Eina_Bool
elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Eina_Bool ret = _elm_theme_set(wd->lay, clas, group, style);
EAPI void
elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Subinfo *si;
const Eina_List *l;
EAPI Evas_Object *
elm_layout_edje_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->lay;
EAPI void
elm_layout_sizing_eval(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
_request_sizing_eval(obj);
}
Eina_Bool dummy_end : 1;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
static void
_del_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Elm_List_Item *it;
Eina_List *n;
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
static void
_theme_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Elm_List_Item *it;
Eina_List *n;
static void
_on_focus_hook(void *data, Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
// if (elm_widget_focus_get(obj))
// elm_widget_focus_steal(wd->entry);
static void
_changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
// _fix_items(data);
// _sizing_eval(data);
static void
_sub_del(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *sub = event_info;
const Eina_List *l;
static Elm_List_Item *
_item_new(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Elm_List_Item *it;
static void
_fix_items(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
const Eina_List *l;
Elm_List_Item *it;
static void
_hold_on(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
static void
_hold_off(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
static void
_freeze_on(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
static void
_freeze_off(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
wd->self = obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "list");
elm_widget_type_set(obj, "list");
elm_widget_sub_object_add(parent, obj);
elm_widget_on_focus_hook_set(obj, _on_focus_hook, NULL);
EAPI Elm_List_Item *
elm_list_item_append(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Elm_List_Item *it = _item_new(obj, label, icon, end, func, data);
EAPI Elm_List_Item *
elm_list_item_prepend(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Elm_List_Item *it = _item_new(obj, label, icon, end, func, data);
if ((!before) || (!before->node)) return NULL;
ELM_LIST_ITEM_CHECK_DELETED_RETURN(before, NULL);
+ ELM_CHECK_WIDTYPE(obj, widtype);
wd = elm_widget_data_get(obj);
it = _item_new(obj, label, icon, end, func, data);
wd->items = eina_list_prepend_relative_list(wd->items, it, before->node);
if ((!after) || (!after->node)) return NULL;
ELM_LIST_ITEM_CHECK_DELETED_RETURN(after, NULL);
+ ELM_CHECK_WIDTYPE(obj, widtype);
wd = elm_widget_data_get(obj);
it = _item_new(obj, label, icon, end, func, data);
wd->items = eina_list_append_relative_list(wd->items, it, after->node);
EAPI void
elm_list_clear(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Elm_List_Item *it;
EAPI void
elm_list_go(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
_fix_items(obj);
EAPI void
elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->multi = multi;
EAPI Eina_Bool
elm_list_multi_select_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->multi;
EAPI void
elm_list_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->mode == mode) return;
EAPI Elm_List_Mode
elm_list_horizontal_mode_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->mode;
EAPI void
elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->always_select = always_select;
EAPI const Eina_List *
elm_list_items_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->items;
EAPI Elm_List_Item *
elm_list_selected_item_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->selected) return wd->selected->data;
EAPI const Eina_List *
elm_list_selected_items_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->selected;
EAPI void
elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
elm_smart_scroller_bounce_allow_set(wd->scr, h_bounce, v_bounce);
}
EAPI void
elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
elm_scroller_policy_set(wd->scr, policy_h, policy_v);
}
#ifdef HAVE_ELEMENTARY_X
static int _elm_window_property_change(void *data, int ev_type, void *ev);
#endif
+static const char *widtype = NULL;
static void _elm_rescale(void);
char *_elm_appname = NULL;
};
+static const char *widtype = NULL;
static void _pan_calculate(Evas_Object *obj);
static void _del_hook(Evas_Object *obj);
static void
rect_place(Evas_Object *obj, Evas_Coord px, Evas_Coord py, Evas_Coord ox, Evas_Coord oy, Evas_Coord ow, Evas_Coord oh)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord ax, ay, gw, gh, hh, ww;
static void
marker_place(Evas_Object *obj, Grid *g, Evas_Coord px, Evas_Coord py, Evas_Coord ox, Evas_Coord oy, Evas_Coord ow, Evas_Coord oh)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord ax, ay, gw, gh, tx, ty;
Eina_List *l, *markers;
static void
grid_place(Evas_Object *obj, Grid *g, Evas_Coord px, Evas_Coord py, Evas_Coord ox, Evas_Coord oy, Evas_Coord ow, Evas_Coord oh)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord ax, ay, gw, gh, tx, ty;
int xx, yy, ww, hh;
static void
grid_clear(Evas_Object *obj, Grid *g)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
char buf[PATH_MAX];
static Grid *
grid_create(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Grid *g;
static void
grid_load(Evas_Object *obj, Grid *g)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
int x, y;
int size;
static void
grid_clearall(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Grid *g;
static void
_smooth_update(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Eina_List *l;
Grid *g;
static int
_scr_timeout(void *data)
{
+
Widget_Data *wd = elm_widget_data_get(data);
wd->nosmooth--;
if (wd->nosmooth == 0) _smooth_update(data);
static void
_scr(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
if (!wd->scr_timer)
{
static int
zoom_do(Evas_Object *obj, double t)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord xx, yy, ow, oh;
_zoom_anim(void *data)
{
Evas_Object *obj = data;
+
Widget_Data *wd = elm_widget_data_get(obj);
double t;
int go;
static int
_long_press(void *data)
{
+
Widget_Data *wd = elm_widget_data_get(data);
wd->long_timer = NULL;
wd->longpressed = EINA_TRUE;
static void
_mouse_down(void *data, Evas *evas, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
Evas_Event_Mouse_Down *ev = event_info;
if (ev->button != 1) return;
static void
_mouse_up(void *data, Evas *evas, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
Evas_Event_Mouse_Up *ev = event_info;
if (ev->button != 1) return;
Elm_Map_Group_Class *group_clas;
Elm_Map_Marker_Class *marker_clas;
+
Widget_Data *wd = elm_widget_data_get(obj);
EINA_LIST_FREE(wd->groups_clas, group_clas)
Eina_Bool free_marker = EINA_TRUE;
Eina_List *l;
+
Widget_Data *wd = elm_widget_data_get(obj);
grid_clearall(obj);
static void
_theme_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
elm_smart_scroller_theme_set(wd->scr, "map", "base", elm_widget_style_get(obj));
edje_object_scale_set(wd->scr, elm_widget_scale_get(obj) * _elm_config->scale);
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
static void
_hold_on(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_smart_scroller_hold_set(wd->scr, 1);
static void
_hold_off(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_smart_scroller_hold_set(wd->scr, 0);
static void
_freeze_on(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_smart_scroller_freeze_set(wd->scr, 1);
static void
_freeze_off(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_smart_scroller_freeze_set(wd->scr, 0);
static void
_scr_drag_start(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
wd->center_on.enabled = EINA_FALSE;
evas_object_smart_callback_call(data, "scroll,drag,start", NULL);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "map");
elm_widget_type_set(obj, "map");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_map_zoom_set(Evas_Object *obj, int zoom)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Eina_List *l;
Grid *g, *g_zoom = NULL;
EAPI double
elm_map_zoom_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->zoom;
}
EAPI void
elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->mode == mode) return;
wd->mode = mode;
EAPI Elm_Map_Zoom_Mode
elm_map_zoom_mode_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->mode;
}
EAPI void
elm_map_geo_region_bring_in(Evas_Object *obj, double lon, double lat)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
int rx, ry, rw, rh;
EAPI void
elm_map_geo_region_show(Evas_Object *obj, double lon, double lat)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
int rx, ry, rw, rh;
EAPI void
elm_map_geo_region_get(Evas_Object *obj, double *lon, double *lat)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord sx, sy, sw, sh;
EAPI void
elm_map_paused_set(Evas_Object *obj, Eina_Bool paused)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->paused == !!paused) return;
wd->paused = paused;
EAPI void
elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->paused_markers == !!paused) return;
wd->paused_markers = paused;
EAPI Eina_Bool
elm_map_paused_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->paused;
}
EAPI Eina_Bool
elm_map_paused_markers_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->paused_markers;
}
int i, j;
Eina_List *l;
Marker_Group *group;
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
int mpi, mpj;
int tabi[9];
EAPI void
elm_map_max_marker_per_group_set(Evas_Object *obj, int max)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->markers_max_num = max;
}
EAPI void
elm_map_bubbles_close(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Marker_Group *group;
Eina_List *l, *l_next;
EAPI Elm_Map_Group_Class *
elm_map_group_class_new(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Elm_Map_Group_Class *clas = calloc(1, sizeof(Elm_Map_Group_Class));
EAPI void
elm_map_group_class_hide_set(Evas_Object *obj, Elm_Map_Group_Class *clas, Eina_Bool hide)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if(clas->hide == hide) return ;
EAPI Elm_Map_Marker_Class *
elm_map_marker_class_new(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Elm_Map_Marker_Class *clas = calloc(1, sizeof(Elm_Map_Marker_Class));
EAPI void
elm_map_source_set(Evas_Object *obj, Elm_Map_Sources source)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Grid *grid;
int zoom;
EAPI Elm_Map_Sources
elm_map_source_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->source;
}
Eina_Bool smooth : 1;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
static void
_del_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
free(wd);
}
static void
_theme_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
_sizing_eval(obj);
}
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord minw = -1, minh = -1, minw2 = -1, minh2 = -1;
Evas_Coord maxw = -1, maxh = -1, maxw2 = -1, maxh2 = -1;
static void
_changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
_sizing_eval(data);
}
static void
_sub_del(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *sub = event_info;
static void
_mapbuf(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord x, y, w, h;
static void
_configure(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->content)
{
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "mapbuf");
elm_widget_type_set(obj, "mapbuf");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_mapbuf_content_set(Evas_Object *obj, Evas_Object *content)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->content == content) return;
EAPI void
elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->enabled == enabled) return;
wd->enabled = enabled;
EAPI Eina_Bool
elm_mapbuf_enabled_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->enabled;
}
EAPI void
elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->smooth == smooth) return;
wd->smooth = smooth;
EAPI Eina_Bool
elm_mapbuf_smooth_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->smooth;
}
EAPI void
elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->alpha == alpha) return;
wd->alpha = alpha;
EAPI Eina_Bool
elm_mapbuf_alpha_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->alpha;
}
Evas_Coord xloc, yloc;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
static void
_del_pre_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
evas_object_event_callback_del_full(wd->parent, EVAS_CALLBACK_RESIZE, _parent_resize, obj);
{
Eina_List *l, *ll = NULL;
Elm_Menu_Item *item;
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
{
Eina_List *l, *_l, *ll = NULL;
Elm_Menu_Item *item;
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
Eina_List *l;
Elm_Menu_Item *item;
Evas_Coord x_p,y_p,w_p,h_p,x2,y2,w2,h2,bx,by,bw,bh;
+
Widget_Data *wd = elm_widget_data_get(obj);
if ((!wd) || (!wd->parent)) return;
static void
_changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
// Widget_Data *wd = elm_widget_data_get(data);
_sizing_eval(data);
static void
_menu_resize(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
// Widget_Data *wd = elm_widget_data_get(data);
_sizing_eval(data);
static void
_parent_resize(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
// Widget_Data *wd = elm_widget_data_get(data);
_sizing_eval(data);
{
Eina_List *l;
Elm_Menu_Item *item2;
+
Widget_Data *wd = elm_widget_data_get(data);
evas_object_hide(wd->hv);
static void
_show(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
evas_object_show(wd->hv);
}
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "menu");
elm_widget_type_set(obj, "menu");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
{
Eina_List *l, *_l, *ll = NULL;
Elm_Menu_Item *item;
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI void
elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_menu_item_add(Evas_Object *obj, Elm_Menu_Item *parent, Evas_Object *icon, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data)
{
Elm_Menu_Item *subitem;
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
elm_menu_item_separator_add(Evas_Object *obj, Elm_Menu_Item *parent)
{
Elm_Menu_Item *subitem;
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
Ecore_Timer *timer;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
static void
_del_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
elm_notify_content_set(obj, NULL);
static void
_theme_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord x,y,w,h;
static void
_sub_del(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (event_info == wd->content)
static void
_signal_block_clicked(void *data, Evas_Object *obj, const char *emission, const char *source)
{
+
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
evas_object_smart_callback_call(data, "block,clicked", NULL);
static void
_calc(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord minw = -1, minh = -1;
Evas_Coord x, y, w, h;
_timer_cb(void *data)
{
Evas_Object *obj = data;
+
Widget_Data *wd = elm_widget_data_get(obj);
wd->timer = NULL;
static void
_show(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
evas_object_show(wd->notify);
static void
_hide(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
evas_object_hide(wd->notify);
static void
_parent_del(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
wd->parent = NULL;
static void
_parent_hide(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
wd->parent = NULL;
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "notify");
elm_widget_type_set(obj, "notify");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_notify_content_set(Evas_Object *obj, Evas_Object *content)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->content)
EAPI void
elm_notify_parent_set(Evas_Object *obj, Evas_Object *parent)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if(wd->parent)
EAPI void
elm_notify_orient_set(Evas_Object *obj, Elm_Notify_Orient orient)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->orient = orient;
EAPI void
elm_notify_timeout_set(Evas_Object *obj, int timeout)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->timeout = timeout;
EAPI void
elm_notify_timer_init(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->timer) ecore_timer_del(wd->timer);
EAPI void
elm_notify_repeat_events_set(Evas_Object *obj, Eina_Bool repeat)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (repeat == wd->repeat_events) return;
Eina_Bool popme : 1;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
static void
_del_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
free(wd);
static void
_theme_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Eina_List *l;
Item *it;
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord minw = -1, minh = -1;
Eina_List *l;
static void
_eval_top(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Item *it, *ittop;
static void
_move(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
Evas_Coord x, y;
Eina_List *l;
static void
_sub_del(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
Evas_Object *sub = event_info;
Eina_List *l;
static void
_resize(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
Evas_Coord w, h;
Eina_List *l;
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "pager");
elm_widget_type_set(obj, "pager");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_pager_content_push(Evas_Object *obj, Evas_Object *content)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Item *it = ELM_NEW(Item);
Evas_Coord x, y, w, h;
EAPI void
elm_pager_content_pop(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Eina_List *ll;
Item *it;
EAPI void
elm_pager_content_promote(Evas_Object *obj, Evas_Object *content)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Eina_List *l;
Item *it;
EAPI Evas_Object *
elm_pager_content_bottom_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Item *it;
EAPI Evas_Object *
elm_pager_content_top_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Item *it;
Eina_Bool hidden : 1;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
static void
_del_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
free(wd);
static void
_theme_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
int scale = 0;
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord mw = -1, mh = -1;
Evas_Coord vw = 0, vh = 0;
static void
_resize(void *data, Evas *evas, Evas_Object *obj, void *event)
{
+
Widget_Data *wd = elm_widget_data_get(data);
Evas_Coord mw, mh, vw, vh, w, h;
static void
_toggle_panel(void *data, Evas_Object *obj, const char *emission, const char *source)
{
+
Widget_Data *wd = elm_widget_data_get(data);
if (wd->hidden)
wd = ELM_NEW(Widget_Data);
evas = evas_object_evas_get(parent);
obj = elm_widget_add(evas);
+ ELM_SET_WIDTYPE(widtype, "panel");
elm_widget_type_set(obj, "panel");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->orient = orient;
EAPI void
elm_panel_content_set(Evas_Object *obj, Evas_Object *content)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
evas_object_box_remove_all(wd->bx, EINA_TRUE);
int size;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
static void
_del_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
free(wd);
}
static void
_theme_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
edje_object_scale_set(wd->frm, elm_widget_scale_get(obj) * _elm_config->scale);
_sizing_eval(obj);
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "photo");
elm_widget_type_set(obj, "photo");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI Eina_Bool
elm_photo_file_set(Evas_Object *obj, const char *file)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!_els_smart_icon_file_key_set(wd->img, file, NULL))
return 0;
EAPI void
elm_photo_size_set(Evas_Object *obj, int size)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (size < 0) size = 0;
wd->size = size;
Widget_Data *wd;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _show_region_hook(void *data, Evas_Object *obj);
static void
img_place(Evas_Object *obj, Evas_Coord px, Evas_Coord py, Evas_Coord ox, Evas_Coord oy, Evas_Coord ow, Evas_Coord oh)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord ax, ay, gw, gh;
int x, y;
static void
grid_place(Evas_Object *obj, Grid *g, Evas_Coord px, Evas_Coord py, Evas_Coord ox, Evas_Coord oy, Evas_Coord ow, Evas_Coord oh)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord ax, ay, gw, gh, tx, ty;
int x, y;
static void
grid_clear(Evas_Object *obj, Grid *g)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
int x, y;
static Grid *
grid_create(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
int x, y;
Grid *g;
static void
grid_load(Evas_Object *obj, Grid *g)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
int x, y;
Evas_Coord ox, oy, ow, oh, cvx, cvy, cvw, cvh, gw, gh, ax, ay, tx, ty;
static void
grid_clearall(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Grid *g;
static void
_smooth_update(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
int x, y;
Eina_List *l;
static int
_scr_timeout(void *data)
{
+
Widget_Data *wd = elm_widget_data_get(data);
wd->nosmooth--;
if (wd->nosmooth == 0) _smooth_update(data);
static void
_scr(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
if (!wd->scr_timer)
{
_main_preloaded(void *data, Evas *e, Evas_Object *o, void *event_info)
{
Evas_Object *obj = data;
+
Widget_Data *wd = elm_widget_data_get(obj);
Grid *g;
static int
zoom_do(Evas_Object *obj, double t)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord xx, yy, ow, oh;
_zoom_anim(void *data)
{
Evas_Object *obj = data;
+
Widget_Data *wd = elm_widget_data_get(obj);
double t;
int go;
static void
_mouse_move(void *data, Evas *evas, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
Evas_Event_Mouse_Move *ev = event_info;
}
static int
_long_press(void *data)
{
+
Widget_Data *wd = elm_widget_data_get(data);
wd->long_timer = NULL;
wd->longpressed = EINA_TRUE;
static void
_mouse_down(void *data, Evas *evas, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
Evas_Event_Mouse_Down *ev = event_info;
if (ev->button != 1) return;
static void
_mouse_up(void *data, Evas *evas, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
Evas_Event_Mouse_Up *ev = event_info;
if (ev->button != 1) return;
static void
_del_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Grid *g;
static void
_theme_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
elm_smart_scroller_theme_set(wd->scr, "photocam", "base", elm_widget_style_get(obj));
edje_object_scale_set(wd->scr, elm_widget_scale_get(obj) * _elm_config->scale);
static void
_show_region_hook(void *data, Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(data);
Evas_Coord x, y, w, h;
elm_widget_show_region_get(obj, &x, &y, &w, &h);
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
static void
_hold_on(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_smart_scroller_hold_set(wd->scr, 1);
static void
_hold_off(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_smart_scroller_hold_set(wd->scr, 0);
static void
_freeze_on(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_smart_scroller_freeze_set(wd->scr, 1);
static void
_freeze_off(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_smart_scroller_freeze_set(wd->scr, 0);
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "photocam");
elm_widget_type_set(obj, "photocam");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI int
elm_photocam_file_set(Evas_Object *obj, const char *file)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
int w, h;
*/
EAPI const char * elm_photocam_file_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->file;
}
EAPI void
elm_photocam_zoom_set(Evas_Object *obj, double zoom)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Eina_List *l;
Grid *g, *g_zoom = NULL;
EAPI double
elm_photocam_zoom_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->zoom;
}
EAPI void
elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->mode == mode) return;
wd->mode = mode;
EAPI Elm_Photocam_Zoom_Mode
elm_photocam_zoom_mode_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->mode;
}
EAPI void
elm_photocam_image_size_get(Evas_Object *obj, int *w, int *h)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (w) *w = wd->size.imw;
if (h) *h = wd->size.imh;
EAPI void
elm_photocam_region_get(Evas_Object *obj, int *x, int *y, int *w, int *h)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord sx, sy, sw, sh;
int iw, ih;
EAPI void
elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
int rx, ry, rw, rh;
EAPI void
elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
int rx, ry, rw, rh;
EAPI void
elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->paused == !!paused) return;
wd->paused = paused;
EAPI Eina_Bool
elm_photocam_paused_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->paused;
}
EAPI Evas_Object *
elm_photocam_internal_image_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->img;
}
EAPI Eina_List *_stringlist_get(const char *str);
EAPI void _stringlist_free(Eina_List *list);
-
+#define ELM_SET_WIDTYPE(widtype, type) if (!widtype) widtype = eina_stringshare_add(type);
+#define ELM_CHECK_WIDTYPE(obj, widtype) if (elm_widget_type_get(obj) != widtype) return;
extern char *_elm_appname;
extern Elm_Config *_elm_config;
double val;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
static void
_del_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->label) eina_stringshare_del(wd->label);
if (wd->units) eina_stringshare_del(wd->units);
static void
_theme_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
edje_object_part_unswallow(NULL, wd->spacer);
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord minw = -1, minh = -1;
static void
_changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
if (obj != wd->icon) return;
_sizing_eval(data);
static void
_sub_del(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *sub = event_info;
if (sub == wd->icon)
static void
_val_fetch(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
double posx = MIN_RATIO_LVL, posy = MIN_RATIO_LVL, pos = MIN_RATIO_LVL;
static void
_val_set(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
double pos;
pos = wd->val;
static void
_units_set(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->units)
{
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "progressbar");
elm_widget_type_set(obj, "progressbar");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_progressbar_pulse_set (Evas_Object *obj, Eina_Bool pulse)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
pulse = !!pulse;
if (wd->pulse == pulse) return;
EAPI void
elm_progressbar_pulse (Evas_Object *obj, Eina_Bool state)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
state = !!state;
if (!wd->pulse && wd->pulse_state == state) return;
EAPI void
elm_progressbar_value_set (Evas_Object *obj, double val)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->val == val) return;
wd->val = val;
EAPI double
elm_progressbar_value_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->val;
}
EAPI void
elm_progressbar_label_set(Evas_Object *obj, const char *label)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->label) eina_stringshare_del(wd->label);
EAPI void
elm_progressbar_icon_set(Evas_Object *obj, Evas_Object *icon)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if ((wd->icon != icon) && (wd->icon))
elm_widget_sub_object_del(obj, wd->icon);
EAPI void
elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->size == size) return;
wd->size = size;
EAPI void
elm_progressbar_unit_format_set(Evas_Object *obj, const char *units)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->units) eina_stringshare_del(wd->units);
if (units)
EAPI void
elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
horizontal = !!horizontal;
if (wd->horizontal == horizontal) return;
EAPI void
elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
inverted = !!inverted;
if (wd->inverted == inverted) return;
Group *group;
};
+static const char *widtype = NULL;
static void _state_set(Evas_Object *obj, Eina_Bool state);
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void
_del_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->label) eina_stringshare_del(wd->label);
wd->group->radios = eina_list_remove(wd->group->radios, obj);
static void
_theme_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
_elm_theme_set(wd->chk, "radio", "base", elm_widget_style_get(obj));
if (wd->icon)
static void
_disable_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (elm_widget_disabled_get(obj))
{
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord minw = -1, minh = -1;
static void
_changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
if (obj != wd->icon) return;
_sizing_eval(data);
static void
_sub_del(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *sub = event_info;
if (sub == wd->icon)
static void
_state_set(Evas_Object *obj, Eina_Bool state)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if ((state != wd->state) && (!elm_widget_disabled_get(obj)))
{
static void
_signal_radio_on(void *data, Evas_Object *obj, const char *emission, const char *source)
{
+
Widget_Data *wd = elm_widget_data_get(data);
if (wd->group->value == wd->value) return;
wd->group->value = wd->value;
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "radio");
elm_widget_type_set(obj, "radio");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_radio_label_set(Evas_Object *obj, const char *label)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord mw, mh;
EAPI const char*
elm_radio_label_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
EAPI void
elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if ((wd->icon != icon) && (wd->icon))
elm_widget_sub_object_del(obj, wd->icon);
EAPI Evas_Object *
elm_radio_icon_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
return wd->icon;
EAPI void
elm_radio_group_add(Evas_Object *obj, Evas_Object *group)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Widget_Data *wd2 = elm_widget_data_get(group);
Eina_Bool state = EINA_FALSE;
EAPI void
elm_radio_state_value_set(Evas_Object *obj, int value)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
// if (wd->value == value) return;
wd->value = value;
EAPI void
elm_radio_value_set(Evas_Object *obj, int value)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
const Eina_List *l;
Evas_Object *child;
EAPI int
elm_radio_value_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->group->value;
}
EAPI void
elm_radio_value_pointer_set(Evas_Object *obj, int *valuep)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (valuep)
Evas_Coord pagesize_h, pagesize_v;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _show_region_hook(void *data, Evas_Object *obj);
static void
_del_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
free(wd);
static void
_theme_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_smart_scroller_theme_set(wd->scr, "scroller", "base", elm_widget_style_get(obj));
static void
_show_region_hook(void *data, Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(data);
Evas_Coord x, y, w, h;
if (!wd) return;
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord vw, vh, minw, minh, maxw, maxh, w, h, vmw, vmh;
double xw, xy;
static void
_sub_del(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *sub = event_info;
static void
_hold_on(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
static void
_hold_off(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
static void
_freeze_on(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
static void
_freeze_off(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "scroller");
elm_widget_type_set(obj, "scroller");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_scroller_content_set(Evas_Object *obj, Evas_Object *content)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
if ((wd->content != content) && (wd->content))
EAPI void
elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
wd->min_w = w;
EAPI void
elm_scroller_region_show(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_smart_scroller_child_region_show(wd->scr, x, y, w, h);
EAPI void
elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
const Elm_Scroller_Policy map[3] =
{
EAPI void
elm_scroller_region_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
if ((x) && (y)) elm_smart_scroller_child_pos_get(wd->scr, x, y);
EAPI void
elm_scroller_child_size_get(Evas_Object *obj, Evas_Coord *w, Evas_Coord *h)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
evas_object_geometry_get(wd->content, NULL, NULL, w, h);
EAPI void
elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_smart_scroller_bounce_allow_set(wd->scr, h_bounce, v_bounce);
EAPI void
elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
wd->pagerel_h = h_pagerel;
EAPI void
elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
wd->pagesize_h = h_pagesize;
EAPI void
elm_scroller_region_bring_in(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_smart_scroller_region_bring_in(wd->scr, x, y, w, h);
Eina_Bool horizontal;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
static void
_del_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
free(wd);
}
static void
_theme_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->horizontal)
_elm_theme_set(wd->sep, "separator", "horizontal", elm_widget_style_get(obj));
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "separator");
wd->horizontal = EINA_FALSE;
elm_widget_type_set(obj, "separator");
elm_widget_sub_object_add(parent, obj);
EAPI void
elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
horizontal = !!horizontal;
EAPI Eina_Bool
elm_separator_horizontal_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return EINA_FALSE;
return wd->horizontal;
Evas_Coord size;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
static void
_del_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->label) eina_stringshare_del(wd->label);
if (wd->indicator) eina_stringshare_del(wd->units);
static void
_theme_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->horizontal)
_elm_theme_set(wd->slider, "slider", "horizontal", elm_widget_style_get(obj));
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
static void
_changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
if (obj != wd->icon) return;
_sizing_eval(data);
static void
_sub_del(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *sub = event_info;
if (sub == wd->icon)
static int
_delay_change(void *data)
{
+
Widget_Data *wd = elm_widget_data_get(data);
wd->delay = NULL;
evas_object_smart_callback_call(data, "delay,changed", NULL);
static void
_val_fetch(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
double posx = 0.0, posy = 0.0, pos = 0.0, val;
static void
_val_set(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
double pos;
if (wd->val_max > wd->val_min)
static void
_units_set(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->units)
{
static void
_indicator_set(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->indicator_format_func)
{
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "slider");
elm_widget_type_set(obj, "slider");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_slider_label_set(Evas_Object *obj, const char *label)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->label) eina_stringshare_del(wd->label);
EAPI const char*
elm_slider_label_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
EAPI void
elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if ((wd->icon != icon) && (wd->icon))
elm_widget_sub_object_del(obj, wd->icon);
EAPI Evas_Object *
elm_slider_icon_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
return wd->icon;
EAPI void
elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->size == size) return;
wd->size = size;
EAPI void
elm_slider_unit_format_set(Evas_Object *obj, const char *units)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->units) eina_stringshare_del(wd->units);
if (units)
EAPI void
elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->indicator) eina_stringshare_del(wd->indicator);
if (indicator) wd->indicator = eina_stringshare_add(indicator);
EAPI void
elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
horizontal = !!horizontal;
if (wd->horizontal == horizontal) return;
EAPI void
elm_slider_min_max_set(Evas_Object *obj, double min, double max)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if ((wd->val_min == min) && (wd->val_max == max)) return;
wd->val_min = min;
EAPI void
elm_slider_value_set(Evas_Object *obj, double val)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->val == val) return;
wd->val = val;
EAPI double
elm_slider_value_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->val;
}
EAPI void
elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
inverted = !!inverted;
if (wd->inverted == inverted) return;
EAPI void
elm_slider_indicator_format_function_set(Evas_Object *obj, const char *(*func)(double val))
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->indicator_format_func = func;
_indicator_set(obj);
int timeout;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
static void
_del_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
elm_slideshow_clear(obj);
static void
_theme_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if(!wd) return;
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord minw = -1, minh = -1;
_end(void *data, Evas_Object *obj, const char *emission, const char *source)
{
Elm_Slideshow_Item *item;
+
Widget_Data *wd = elm_widget_data_get(data);
item = wd->previous;
_timer_cb(void *data)
{
Evas_Object *obj = data;
+
Widget_Data *wd = elm_widget_data_get(obj);
wd->timer = NULL;
{
Elm_Slideshow_Item *_item;
Evas_Object *obj = item->obj;
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord w, h;
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "slideshow");
elm_widget_type_set(obj, "slideshow");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data)
{
Elm_Slideshow_Item *item;
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if(!wd) return NULL;
{
char buf[1024];
Elm_Slideshow_Item *next = NULL;
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
{
char buf[1024];
Elm_Slideshow_Item *prev;
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
const Eina_List *
elm_slideshow_transitions_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if(!wd) return NULL;
EAPI void
elm_slideshow_transition_set(Evas_Object *obj, const char *transition)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if(!wd) return;
EAPI void
elm_slideshow_timeout_set(Evas_Object *obj ,int timeout)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if(!wd) return;
EAPI int
elm_slideshow_timeout_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if(!wd) return -1;
EAPI void
elm_slideshow_loop_set(Evas_Object *obj, int loop)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if(!wd) return;
elm_slideshow_clear(Evas_Object *obj)
{
Elm_Slideshow_Item *item;
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if(!wd) return;
EAPI const Eina_List*
elm_slideshow_items_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
EAPI Elm_Slideshow_Item*
elm_slideshow_item_current_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
Eina_Bool dragging : 1;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _disable_hook(Evas_Object *obj);
static void _write_label(Evas_Object *obj);
static void
_del_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
if (wd->label) eina_stringshare_del(wd->label);
static void
_disable_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (elm_widget_disabled_get(obj))
edje_object_signal_emit(wd->spinner, "elm,state,disabled", "elm");
static void
_theme_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
_elm_theme_set(wd->spinner, "spinner", "base", elm_widget_style_get(obj));
edje_object_part_swallow(wd->spinner, "elm.swallow.entry", wd->ent);
static int
_delay_change(void *data)
{
+
Widget_Data *wd = elm_widget_data_get(data);
wd->delay = NULL;
evas_object_smart_callback_call(data, "delay,changed", NULL);
static void
_write_label(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
char buf[1024];
static Eina_Bool
_value_set(Evas_Object *obj, double delta)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
double new_val;
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord minw = -1, minh = -1;
static void
_val_set(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
double pos = 0.0;
static void
_drag(void *data, Evas_Object *obj, const char *emission, const char *source)
{
+
Widget_Data *wd = elm_widget_data_get(data);
double pos = 0.0, offset, delta;
static void
_drag_start(void *data, Evas_Object *obj, const char *emission, const char *source)
{
+
Widget_Data *wd = elm_widget_data_get(data);
double pos;
static void
_drag_stop(void *data, Evas_Object *obj, const char *emission, const char *source)
{
+
Widget_Data *wd = elm_widget_data_get(data);
wd->drag_start_pos = 0;
static void
_hide_entry(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
static void
_reset_value(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
static void
_apply_entry_value(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
const char *str;
char *end;
static void
_toggle_entry(void *data, Evas_Object *obj, const char *emission, const char *source)
{
+
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
static int
_spin_value(void *data)
{
+
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return ECORE_CALLBACK_CANCEL;
static void
_val_inc_start(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
static void
_val_inc_stop(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
static void
_val_dec_start(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
static void
_val_dec_stop(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
static void
_button_inc_start(void *data, Evas_Object *obj, const char *emission, const char *source)
{
+
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
static void
_button_inc_stop(void *data, Evas_Object *obj, const char *emission, const char *source)
{
+
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
static void
_button_dec_start(void *data, Evas_Object *obj, const char *emission, const char *source)
{
+
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
static void
_button_dec_stop(void *data, Evas_Object *obj, const char *emission, const char *source)
{
+
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
static void
_entry_activated(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
_entry_event_key_down(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
Evas_Event_Key_Down *ev = event_info;
+
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
_entry_event_key_up(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
Evas_Event_Key_Down *ev = event_info;
+
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "spinner");
elm_widget_type_set(obj, "spinner");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_spinner_label_format_set(Evas_Object *obj, const char *fmt)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->label) eina_stringshare_del(wd->label);
EAPI const char *
elm_spinner_label_format_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
EAPI void
elm_spinner_min_max_set(Evas_Object *obj, double min, double max)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if ((wd->val_min == min) && (wd->val_max == max)) return;
EAPI void
elm_spinner_step_set(Evas_Object *obj, double step)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->step = step;
}
EAPI void
elm_spinner_value_set(Evas_Object *obj, double val)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->val == val) return;
EAPI double
elm_spinner_value_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->val;
}
EAPI void
elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
wd->wrap = wrap;
}
Evas_Object *tbl;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
static void _changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info);
static void
_del_pre_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
evas_object_event_callback_del_full
static void
_del_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
free(wd);
}
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
Evas_Coord w, h;
_sub_del(void *data, Evas_Object *obj, void *event_info)
{
/* We do not add this callback, consequently we do not need to delete it
+
Widget_Data *wd = elm_widget_data_get(obj);
evas_Object *sub = event_info;
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "table");
elm_widget_type_set(obj, "table");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_table_homogenous_set(Evas_Object *obj, Eina_Bool homogenous)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
evas_object_table_homogeneous_set(wd->tbl, homogenous);
}
EAPI void
elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
evas_object_table_padding_set(wd->tbl, horizontal, vertical);
}
EAPI void
elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
elm_widget_sub_object_add(obj, subobj);
evas_object_table_pack(wd->tbl, subobj, x, y, w, h);
EAPI void
elm_table_unpack(Evas_Object *obj, Evas_Object *subobj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
elm_widget_sub_object_del(obj, subobj);
evas_object_table_unpack(wd->tbl, subobj);
EAPI void
elm_table_clear(Evas_Object *obj, Eina_Bool clear)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
evas_object_table_clear(wd->tbl, clear);
}
const char *ontext, *offtext;
};
+static const char *widtype = NULL;
static void _del_hook(Evas_Object *obj);
static void _disable_hook(Evas_Object *obj);
static void _theme_hook(Evas_Object *obj);
static void
_del_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->label) eina_stringshare_del(wd->label);
if (wd->ontext) eina_stringshare_del(wd->ontext);
static void
_disable_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (elm_widget_disabled_get(obj))
edje_object_signal_emit(wd->tgl, "elm,state,disabled", "elm");
static void
_theme_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
_elm_theme_set(wd->tgl, "toggle", "base", elm_widget_style_get(obj));
if (wd->icon)
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord minw = -1, minh = -1;
static void
_changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
if (obj != wd->icon) return;
_sizing_eval(data);
static void
_sub_del(void *data, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *sub = event_info;
static void
_signal_toggle_off(void *data, Evas_Object *obj, const char *emission, const char *source)
{
+
Widget_Data *wd = elm_widget_data_get(data);
wd->state = 0;
static void
_signal_toggle_on(void *data, Evas_Object *obj, const char *emission, const char *source)
{
+
Widget_Data *wd = elm_widget_data_get(data);
wd->state = 1;
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "toggle");
elm_widget_type_set(obj, "toggle");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_toggle_label_set(Evas_Object *obj, const char *label)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->label) eina_stringshare_del(wd->label);
EAPI const char*
elm_toggle_label_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
EAPI void
elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if ((wd->icon != icon) && (wd->icon))
EAPI Evas_Object *
elm_toggle_icon_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
EAPI void
elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->ontext) eina_stringshare_del(wd->ontext);
EAPI void
elm_toggle_state_set(Evas_Object *obj, Eina_Bool state)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (state != wd->state)
EAPI Eina_Bool
elm_toggle_state_get(const Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
return wd->state;
EAPI void
elm_toggle_state_pointer_set(Evas_Object *obj, Eina_Bool *statep)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (statep)
Evas_Object *o_menu;
};
+static const char *widtype = NULL;
static void _item_show(Elm_Toolbar_Item *it);
static void _item_select(Elm_Toolbar_Item *it);
static void _item_disable(Elm_Toolbar_Item *it, Eina_Bool disabled);
static void
_del_pre_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Elm_Toolbar_Item *it;
static void
_del_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
static void
_theme_hook(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
const Eina_List *l;
Elm_Toolbar_Item *it;
static void
_sizing_eval(Evas_Object *obj)
{
+
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord minw = -1, minh = -1;
Evas_Coord vw = 0, vh = 0;
static void
_resize(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+
Widget_Data *wd = elm_widget_data_get(data);
Evas_Coord mw, mh, vw, vh, x, y, w, h;
const Eina_List *l;
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
+ ELM_SET_WIDTYPE(widtype, "toolbar");
elm_widget_type_set(obj, "toolbar");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
EAPI void
elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI int
elm_toolbar_icon_size_get(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return 0;
EAPI Elm_Toolbar_Item *
elm_toolbar_item_add(Evas_Object *obj, Evas_Object *icon, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord mw, mh;
Elm_Toolbar_Item *it;
EAPI void
elm_toolbar_scrollable_set(Evas_Object *obj, Eina_Bool scrollable)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
EAPI void
elm_toolbar_homogenous_set(Evas_Object *obj, Eina_Bool homogenous)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
{
Eina_List *l;
Elm_Toolbar_Item *it;
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if ((!wd) || (!parent)) return;
{
Eina_List *l;
Elm_Toolbar_Item *it;
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
{
Eina_List *l;
Elm_Toolbar_Item *it;
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
};
/* local subsystem functions */
+static const char *widtype = NULL;
static void _smart_reconfigure(Smart_Data *sd);
static void _smart_add(Evas_Object *obj);
static void _smart_del(Evas_Object *obj);
} screen;
};
+static const char *widtype = NULL;
static void _elm_win_obj_callback_del(void *data, Evas *e, Evas_Object *obj, void *event_info);
static void _elm_win_obj_intercept_show(void *data, Evas_Object *obj);
static void _elm_win_move(Ecore_Evas *ee);
Elm_Win *win;
int x, y;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+
win = elm_widget_data_get(obj);
if (!win) return;
ecore_evas_geometry_get(ee, &x, &y, NULL, NULL);
Evas_Object *obj = ecore_evas_object_associate_get(ee);
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+
win = elm_widget_data_get(obj);
if (!win) return;
if (win->deferred_resize_job) ecore_job_del(win->deferred_resize_job);
Evas_Object *obj = ecore_evas_object_associate_get(ee);
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+
win = elm_widget_data_get(obj);
if (!win) return;
/*NB: Why two different "focus signals" here ??? */
Evas_Object *obj = ecore_evas_object_associate_get(ee);
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+
win = elm_widget_data_get(obj);
if (!win) return;
evas_object_smart_callback_call(win->win_obj, "focus-out", NULL); // FIXME: remove me
Evas_Object *obj = ecore_evas_object_associate_get(ee);
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+
win = elm_widget_data_get(obj);
if (!win) return;
int autodel = win->autodel;
{
const Eina_List *l;
const Evas_Object *child;
+
Elm_Win *win = elm_widget_data_get(obj);
Evas_Coord w, h, minw = -1, minh = -1, maxw = -1, maxh = -1;
int xx = 1, xy = 1;
win->evas = ecore_evas_get(win->ee);
win->win_obj = elm_widget_add(win->evas);
elm_widget_type_set(win->win_obj, "win");
+ ELM_SET_WIDTYPE(widtype, "win");
elm_widget_data_set(win->win_obj, win);
evas_object_color_set(win->win_obj, 0, 0, 0, 0);
evas_object_move(win->win_obj, 0, 0);
Evas_Coord w, h;
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
win->subobjs = eina_list_append(win->subobjs, subobj);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
evas_object_event_callback_del_full(subobj,
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
ecore_evas_title_set(win->ee, title);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
win->autodel = autodel;
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
ecore_evas_activate(win->ee);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
ecore_evas_lower(win->ee);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
ecore_evas_raise(win->ee);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
ecore_evas_borderless_set(win->ee, borderless);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
return ecore_evas_borderless_get(win->ee);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
ecore_evas_shaped_set(win->ee, shaped);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
return ecore_evas_shaped_get(win->ee);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
if (win->xwin)
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
return ecore_evas_alpha_get(win->ee);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
ecore_evas_override_set(win->ee, override);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
return ecore_evas_override_get(win->ee);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
switch (_elm_config->engine)
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
switch (_elm_config->engine)
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
ecore_evas_maximized_set(win->ee, maximized);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
return ecore_evas_maximized_get(win->ee);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
ecore_evas_iconified_set(win->ee, iconified);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
return ecore_evas_iconified_get(win->ee);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
ecore_evas_layer_set(win->ee, layer);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return -1;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return -1;
return ecore_evas_layer_get(win->ee);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
if (win->rot == rotation) return;
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
if (win->rot == rotation) return;
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return -1;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return -1;
return win->rot;
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
ecore_evas_sticky_set(win->ee, sticky);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
return ecore_evas_sticky_get(win->ee);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
if (mode == win->kbdmode) return;
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
_elm_win_xwindow_get(win);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
if (x) *x = win->screen.x;
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
_elm_win_xwindow_get(win);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
_elm_win_xwindow_get(win);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
_elm_win_xwindow_get(win);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
_elm_win_xwindow_get(win);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
_elm_win_xwindow_get(win);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return -1;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return -1;
_elm_win_xwindow_get(win);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
_elm_win_xwindow_get(win);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return -1;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return -1;
_elm_win_xwindow_get(win);
{
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
_elm_win_xwindow_get(win);
Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return NULL;
+ ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return NULL;
wd = ELM_NEW(Widget_Data);
EAPI void
elm_win_inwin_activate(Evas_Object *obj)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
evas_object_raise(obj);
evas_object_show(obj);
EAPI void
elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content)
{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if ((wd->content) && (wd->content != content))
elm_widget_sub_object_del(obj, wd->content);