Elementary tooltip widget
This code snippet shows how to use tooltip widget. It's a small widget that can be attached to other objects. It is usually shown on hover event (or long press).
12345678910111213141516171819Evas_Object *box = elm_box_add(ad->win);evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);elm_win_resize_object_add(ad->win, box);evas_object_show(box);Evas_Object* button = elm_button_add(ad->win);elm_object_text_set(button, "Button 1");evas_object_size_hint_weight_set(button, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);evas_object_size_hint_align_set(button, 0.5, 0.5);evas_object_show(button);elm_box_pack_end(box, button);//set tooltip for our buttonelm_object_tooltip_text_set(button, "This is the first button");elm_object_tooltip_style_set(button, "default");//force tooltip show (then you have to hide it manually)elm_object_tooltip_show(button);elm_object_tooltip_hide(button);