/** ghost line **/ void ghost_line_create(void) { Evas *e; e = shell->evas; if (!o_line) { o_line = evas_object_line_add(e); evas_object_color_set(o_line, ALPHA2, ALPHA2/5, ALPHA2/5, ALPHA2); evas_object_layer_set(o_line, 17); evas_object_pass_events_set(o_line, 1); } }
Evas_Object * _line_item(Evas *e, double w) { Evas_Object *o; if (w > 1) { o = evas_object_polygon_add(e); } else { o = evas_object_line_add(e); } return o; }
static void display_hint(double scroll_amount) { if(!scroll_hint) { Ewl_Embed *emb = ewl_embed_widget_find(pdfwidget); scroll_hint = evas_object_line_add(emb->canvas); evas_object_color_set(scroll_hint, 0, 200, 0, 255); } int y_coord = round(scroll_amount); if(y_coord < 0) { y_coord += CURRENT_H(scrollpane); } evas_object_line_xy_set(scroll_hint, 0, y_coord, CURRENT_W(scrollpane), y_coord); evas_object_show(scroll_hint); if(hint_timer) { // previously set, did not fire ecore_timer_del(hint_timer); } hint_timer = ecore_timer_add(2.0, hide_hint, NULL); }