Exemple #1
0
static void
_smart_slider_smart_resize(Evas_Object *o, Evas_Coord w, Evas_Coord h)
{
	Evas_Coord ow, oh;

	evas_object_geometry_get(o, NULL, NULL, &ow, &oh);
	if( (ow == w) && (oh == h) )
		return;

	evas_object_smart_changed(o);
}
Exemple #2
0
static void
_evas_smart_frame_smart_resize(Evas_Object *o,
			       Evas_Coord   w,
			       Evas_Coord   h)
{
   Evas_Coord ow, oh;
   evas_object_geometry_get(o, NULL, NULL, &ow, &oh);
   if ((ow == w) && (oh == h)) return;

   /* this will trigger recalculation */
   evas_object_smart_changed(o);
}
Exemple #3
0
void
_efl_ui_slider_interval_val_set(Evas_Object *obj, Efl_Ui_Slider_Interval_Data *pd)
{
   double pos, pos2;

   EFL_UI_SLIDER_DATA_GET(obj, sd);
   ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);

   if (sd->val_max > sd->val_min)
     {
        pos = (pd->intvl_from - sd->val_min) / (sd->val_max - sd->val_min);
        pos2 = (pd->intvl_to - sd->val_min) / (sd->val_max - sd->val_min);
     }
   else
     {
        pos = 0.0;
        pos2 = 0.0;
     }

   if (pos < 0.0) pos = 0.0;
   else if (pos > 1.0)
     pos = 1.0;

   if (pos2 < 0.0) pos2 = 0.0;
   else if (pos2 > 1.0)
     pos2 = 1.0;

   if (elm_widget_is_legacy(obj))
     {
        efl_ui_drag_value_set(efl_part(wd->resize_obj, "elm.dragable.slider"),
                              pos, pos);
        efl_ui_drag_value_set(efl_part(wd->resize_obj, "elm.dragable2.slider"),
                              pos2, pos2);
     }
   else
     {
        efl_ui_drag_value_set(efl_part(wd->resize_obj, "efl.dragable.slider"),
                              pos, pos);
        efl_ui_drag_value_set(efl_part(wd->resize_obj, "efl.dragable2.slider"),
                              pos2, pos2);
     }

   // emit accessibility event also if value was changed by API
   if (_elm_config->atspi_mode)
     efl_access_value_changed_signal_emit(obj);

   evas_object_smart_changed(obj);
}
static void
_slider_update(Evas_Object *obj, Eina_Bool user_event)
{
   _val_fetch(obj, user_event);
   evas_object_smart_changed(obj);
}
static void
_slider_update(Evas_Object *obj)
{
   evas_object_smart_changed(obj);
}