Example #1
0
/**
 * timered scrollbar fade out callback
 * @val - the Alpha value for the stuff in the session bar
 * @_data - the pointer to the session bar struct
 */
static void
session_bar_fade_out_cb(int val, void *_data)
{
   Session_Bar *sb = (Session_Bar *) _data;
   Evas_List *l = NULL;

   if (val > 0)
   {
      int r, g, b, a;
      Estyle *es;

      for (l = sb->sessions; l; l = l->next)
      {
         es = (Estyle *) l->data;
         estyle_get_color(es, &r, &g, &b, &a);
         estyle_set_color(es, r, g, b, val);
      }
      evas_object_color_get(sb->listbg, &r, &g, &b, &a);
      if (a >= val)
         evas_object_color_set(sb->listbg, r, g, b, val);
      evas_object_color_get(sb->bullet, &r, &g, &b, &a);
      evas_object_color_set(sb->bullet, r, g, b, val);
      val -= 5;
      ecore_add_event_timer("session_bar_fade", 0.00005,
                            session_bar_fade_out_cb, val, _data);
   }
   else
   {
      evas_object_hide(sb->listbg);
      evas_object_hide(sb->bullet);
      for (l = sb->sessions; l; l = l->next)
         estyle_hide((Estyle *) l->data);
   }
}
Example #2
0
void
button_mouse_down(void *_data, Evas *_e, Evas_Object *_o,
		void *event_info)
{
	Eina_List *l = _data;
	void (*run) ();

	etox_clear(e_msg);
	etox_clear(e_test);

	if (l) {
		evas_object_hide(o_prev_box);
		evas_object_hide(o_txt_prev_box);

		if (l->next) {
			evas_object_show(o_next_box);
			evas_object_show(o_txt_next_box);
		} else {
			evas_object_hide(o_next_box);
			evas_object_hide(o_txt_next_box);
		}

		current_test = l;
		run = l->data;
		run();
	}

	return;
	_data = NULL;
	_e = NULL;
	_o = NULL;
	event_info = NULL;
}
Example #3
0
 //---------------------------------------------------------------------
 //! @brief Set how the Image is being displayed. This is
 //! usually determined by the model's Validity.
 //! @param[in] _visibility How the Image should be
 //! displayed.
 //---------------------------------------------------------------------
 void Image::setVisibility( Visibility const& _visibility )
 {
     visibility__ = _visibility;
     switch( visibility__ )
     {
         case Visibility::INVISIBLE:
             evas_object_hide( image__ );
             break;
         case Visibility::VISIBLE:
             evas_object_show( image__ );
             break;
         case Visibility::SHADED:
             evas_object_show( image__ );
             setOverlay( SHADED_GREY
                       , SHADED_GREY
                       , SHADED_GREY
                       , 128 );
             break;
         default:
             ASSERT( false
                   , "Wrong value passed to setVisibility => use the Visibility enum." );
             break;
     }
     evas_object_hide( image_pressed__ );
 }
void
esmart_textarea_smart_hide(Evas_Object *o)
{
   Esmart_Text_Area *t;
   
   t = evas_object_smart_data_get(o);
   evas_object_hide(t->text);
   evas_object_hide(t->bg);
   evas_object_hide(t->cursor);   
}
Example #5
0
void
_engage_element_object_hide(Evas_Object * o)
{
  Engage_Element *data;

  if ((data = evas_object_smart_data_get(o))) {
    evas_object_hide(data->clip);
    evas_object_hide(data->icon);
    evas_object_hide(data->behavior);
  }
}
Example #6
0
void
e_entry_hide(E_Entry *entry)
{
   if (!entry->visible) return;
   entry->visible = 0;
   if (!entry->evas) return;
   if (entry->obj_base) ebits_hide(entry->obj_base);
   if (entry->obj_cursor) ebits_hide(entry->obj_cursor);
   if (entry->obj_selection) ebits_hide(entry->obj_selection);
   evas_object_hide(entry->event_box);
   evas_object_hide(entry->clip_box);
   evas_object_hide(entry->text);
}
Example #7
0
static void _elitaire_object_hide(Evas_Object * o)
{
    Elitaire * eli;
    int i;

    eli = (Elitaire *) evas_object_smart_data_get(o);

    evas_object_hide(eli->clip);

    for (i = 0; i < eli->num_stacks; i++) {
        evas_object_hide(eli->stacks[i]);
    }
}
Example #8
0
/* Hides the editable object */
static void
_e_editable_smart_hide(Evas_Object *object)
{
   E_Editable_Smart_Data *sd;

   if ((!object) || (!(sd = evas_object_smart_data_get(object))))
     return;

   evas_object_hide(sd->clip_object);
   evas_object_hide(sd->event_object);
   evas_object_hide(sd->text_object);
   evas_object_hide(sd->cursor_object);
   evas_object_hide(sd->selection_object);
}
Example #9
0
void
button_hide(Evas_Object *obj, char *part_name)
{
   Evas_Object *button;
   button = edje_object_part_external_object_get(obj, part_name);
   evas_object_hide(button);
}
EAPI void
e_widget_button_icon_set(Evas_Object *obj, Evas_Object *icon)
{
   E_Widget_Data *wd;
   int mw, mh;

   wd = e_widget_data_get(obj);
   if (wd->o_icon)
     {
	e_widget_sub_object_del(obj, wd->o_icon);
	evas_object_hide(wd->o_icon);
	edje_object_part_unswallow(wd->o_button, wd->o_icon);
	evas_object_del(wd->o_icon);
	wd->o_icon = NULL;
     }
   if (icon)
     {
	wd->o_icon = icon;
	edje_object_part_swallow(wd->o_button, "e.swallow.icon", icon);
	evas_object_pass_events_set(icon, 1);
	evas_object_show(icon);
	e_widget_sub_object_add(obj, icon);
	wd->type |= E_WIDGET_BUTTON_ICON;
     }
   else
     wd->type = ~(wd->type & E_WIDGET_BUTTON_ICON);
   _e_wid_button_state_send(wd);
   edje_object_size_min_calc(wd->o_button, &mw, &mh);
   e_widget_size_min_set(obj, mw, mh);
}
Example #11
0
static void
message_list_view_delete_clicked(struct MessageListViewData *data,
				 Evas_Object * obj, void *event_info)
{
	g_debug("message_list_view_delete_clicked()");
	evas_object_hide(data->hv);

	data->selected_row = etk_tree_selected_row_get(data->tree);
	if (data->selected_row != NULL) {
		GValueArray *message =
			etk_tree_row_data_get(data->selected_row);

		GHashTable *options = g_hash_table_new(g_str_hash, g_str_equal);
		g_hash_table_insert(options, "id",
				    GINT_TO_POINTER(g_value_get_int
						    (g_value_array_get_nth
						     (message, 0))));
		g_hash_table_insert(options, "delete_callback",
				    message_list_view_message_deleted);
		g_hash_table_insert(options, "delete_callback_data", data);

		struct Window *win = window_new(D_("Delete Message"));
		window_init(win);
		window_view_show(win, options, message_delete_view_show,
				 message_delete_view_hide);
	}
}
Example #12
0
void Widget::hide()
{
    if (!platformWidget())
         return;

    evas_object_hide(platformWidget());
}
Example #13
0
static void
hide(Elation_Module *em)
{
   Elation_Module_Private *pr;
   
   pr = em->data;
   evas_object_hide(pr->video);
}
Example #14
0
 void Image::mouseDown()
 {
     if( Visibility::VISIBLE == visibility__ )
     {
         evas_object_hide( image__ );
         evas_object_show( image_pressed__ );
     }
 }
Example #15
0
void show_url_win(void *data, Evas_Object *obj, void *event_info)
{
	strcpy(url_pre, "http://");
	Evas_Object *notify = data;

	evas_object_hide(menu);
	elm_entry_select_all(en);
	evas_object_show(notify);
}
Example #16
0
static void
_e_icon_smart_hide(Evas_Object *obj)
{
   E_Smart_Data *sd;
   
   sd = evas_object_smart_data_get(obj);
   if (!sd) return;
   evas_object_hide(sd->obj);
}
Example #17
0
static void 
_e_toolbar_smart_hide(Evas_Object *obj) 
{
   E_Toolbar_Smart_Data *sd;
   
   if ((!obj) || !(sd = evas_object_smart_data_get(obj))) return;

   evas_object_hide(sd->o_base);
}
Example #18
0
File: test.c Project: ixdu/caravan
static void
_evas_smart_frame_smart_hide(Evas_Object *o)
{
   EVAS_SMART_FRAME_DATA_GET(o, priv);
   //скрываем детей
   evas_object_hide(priv->bg);

   _evas_smart_frame_parent_sc->hide(o);
}
Example #19
0
static void
_smart_hide(Evas_Object *obj)
{
    Smart_Data *sd;

    sd = evas_object_smart_data_get(obj);
    if (!sd) return;
    evas_object_hide(sd->clip);
}
Example #20
0
static void
_close_dialog ()
{
    if (main_dialog && main_dialog->dialog) {
        evas_object_hide (main_dialog->dialog);
    }
    g_free (main_dialog);
    main_dialog = NULL;
}
Example #21
0
static void
_smart_hide (Evas_Object *obj)
{
  Smart_Dvi *sp;

  sp = evas_object_smart_data_get (obj);
  if (!sp) return;

  evas_object_hide (sp->obj);
}
Example #22
0
static void
_esmart_dragable_object_hide (Evas_Object * o)
{
  Esmart_Draggies *data;

  if ((data = evas_object_smart_data_get (o)))
    {
      evas_object_hide (data->obj);
    }
}
 void WebViewImpl::setVisible(bool visible) {
     if (visible)
     {
         evas_object_show(_ewkView);
     }
     else
     {
         evas_object_hide(_ewkView);
     }
 }
Example #24
0
 void Image::mouseUp()
 {
     if( Visibility::VISIBLE == visibility__ )
     {
         evas_object_hide( image_pressed__ );
         evas_object_show( image__ );
         evas_render( evas_object_evas_get( image__ ) );
         getSignal()->emit();
     }
 }
Example #25
0
static void 
_esmart_resize_object_hide(Evas_Object * o)
{
   Esmart_Resize *data;

   if ((data = (Esmart_Resize *) evas_object_smart_data_get(o))) 
     {
	evas_object_hide(data->obj);
     }
}
Example #26
0
void set_create_priority(void *data, Evas_Object *obj, void *event_info)
{
	Details *det = data;
	evas_object_hide(det->hover);
	//change priority value of selected task
	_Task *tsk = (_Task *)elm_object_item_data_get(det->item);
	tsk->pr = atoi(det->data);
	//update button label
	elm_object_text_set(det->button, det->data);
	WRITE = 1;
}
Example #27
0
void
upload_done(Upload *ul, Enlil_Photo *photo)
{
   Enlil_Photo_Data *photo_data = enlil_photo_user_data_get(photo);
   Enlil_Album *album = enlil_photo_album_get(photo);
   Enlil_Album_Data *album_data = enlil_album_user_data_get(album);

   evas_object_hide(ul->main);

   photo_data->netsync.state = PHOTO_NETSYNC_NONE;
}
Example #28
0
void show_controls(void *data, Evas_Object *obj, void *event_info)
{
   evas_object_show(menu_bt);
   evas_object_show(back_bt);
   evas_object_show(fwd_bt);
   evas_object_show(up_bt);
   evas_object_show(down_bt);
   evas_object_show(left_bt);
   evas_object_show(right_bt);
   evas_object_hide(controls_bt);
}
Example #29
0
void goto_url(void *data, Evas_Object *obj, void *event_info)
{
	Evas_Object *en = data;
	char url[255];

	//TODO: Add error window for exception
	sprintf(url, "%s%s", url_pre, elm_entry_entry_get(en));
	printf("%s\n", url);
	ewk_webview_object_load_url(view, url);
	evas_object_hide(url_notify);
}
Example #30
0
/**
 * Hides the selection of the editable object
 *
 * @param editable an editable object
 */
EAPI void
e_editable_selection_hide(Evas_Object *editable)
{
   E_Editable_Smart_Data *sd;

   if ((!editable) || (!(sd = evas_object_smart_data_get(editable))))
     return;
   if (!sd->selection_visible) return;
   sd->selection_visible = 0;
   evas_object_hide(sd->selection_object);
}