Add calculate callback to Evas_Smart_Class.
Some people is using it for some time now without problems, so I'm adding it to SVN to get some broader use. Remember to recompile ALL libraries that depend on Evas as it will change the EVAS_SMART_CLASS_VERSION and old classes will fail to load. This will also change Edje so it will postpone _edje_recalc() to render time, calculate() callback, however some methods will force early recalculation. SVN revision: 35860
This commit is contained in:
parent
eab54fb28a
commit
18966c828b
|
@ -652,6 +652,7 @@ _e_box_smart_init(void)
|
||||||
_e_box_smart_color_set,
|
_e_box_smart_color_set,
|
||||||
_e_box_smart_clip_set,
|
_e_box_smart_clip_set,
|
||||||
_e_box_smart_clip_unset,
|
_e_box_smart_clip_unset,
|
||||||
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
_e_smart = evas_smart_class_new(&sc);
|
_e_smart = evas_smart_class_new(&sc);
|
||||||
|
|
|
@ -87,6 +87,7 @@ e_editable_add(Evas *evas)
|
||||||
_e_editable_color_set,
|
_e_editable_color_set,
|
||||||
_e_editable_clip_set,
|
_e_editable_clip_set,
|
||||||
_e_editable_clip_unset,
|
_e_editable_clip_unset,
|
||||||
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
_e_editable_smart = evas_smart_class_new(&sc);
|
_e_editable_smart = evas_smart_class_new(&sc);
|
||||||
|
|
|
@ -99,6 +99,7 @@ e_entry_add(Evas *evas)
|
||||||
_e_entry_color_set,
|
_e_entry_color_set,
|
||||||
_e_entry_clip_set,
|
_e_entry_clip_set,
|
||||||
_e_entry_clip_unset,
|
_e_entry_clip_unset,
|
||||||
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
_e_entry_smart = evas_smart_class_new(&sc);
|
_e_entry_smart = evas_smart_class_new(&sc);
|
||||||
|
|
|
@ -836,6 +836,7 @@ _e_flowlayout_smart_init(void)
|
||||||
_e_flowlayout_smart_color_set,
|
_e_flowlayout_smart_color_set,
|
||||||
_e_flowlayout_smart_clip_set,
|
_e_flowlayout_smart_clip_set,
|
||||||
_e_flowlayout_smart_clip_unset,
|
_e_flowlayout_smart_clip_unset,
|
||||||
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
_e_smart = evas_smart_class_new(&sc);
|
_e_smart = evas_smart_class_new(&sc);
|
||||||
|
|
|
@ -418,6 +418,7 @@ e_fm2_init(void)
|
||||||
_e_fm2_smart_color_set, /* color_set */
|
_e_fm2_smart_color_set, /* color_set */
|
||||||
_e_fm2_smart_clip_set, /* clip_set */
|
_e_fm2_smart_clip_set, /* clip_set */
|
||||||
_e_fm2_smart_clip_unset, /* clip_unset */
|
_e_fm2_smart_clip_unset, /* clip_unset */
|
||||||
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
_e_fm2_smart = evas_smart_class_new(&sc);
|
_e_fm2_smart = evas_smart_class_new(&sc);
|
||||||
|
|
|
@ -3108,6 +3108,7 @@ _e_gadcon_layout_smart_init(void)
|
||||||
_e_gadcon_layout_smart_color_set,
|
_e_gadcon_layout_smart_color_set,
|
||||||
_e_gadcon_layout_smart_clip_set,
|
_e_gadcon_layout_smart_clip_set,
|
||||||
_e_gadcon_layout_smart_clip_unset,
|
_e_gadcon_layout_smart_clip_unset,
|
||||||
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
_e_smart = evas_smart_class_new(&sc);
|
_e_smart = evas_smart_class_new(&sc);
|
||||||
|
|
|
@ -345,6 +345,7 @@ _e_icon_smart_init(void)
|
||||||
_e_icon_smart_color_set,
|
_e_icon_smart_color_set,
|
||||||
_e_icon_smart_clip_set,
|
_e_icon_smart_clip_set,
|
||||||
_e_icon_smart_clip_unset,
|
_e_icon_smart_clip_unset,
|
||||||
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
_e_smart = evas_smart_class_new(&sc);
|
_e_smart = evas_smart_class_new(&sc);
|
||||||
|
|
|
@ -799,6 +799,7 @@ _e_smart_init(void)
|
||||||
_e_smart_color_set,
|
_e_smart_color_set,
|
||||||
_e_smart_clip_set,
|
_e_smart_clip_set,
|
||||||
_e_smart_clip_unset,
|
_e_smart_clip_unset,
|
||||||
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
_e_smart = evas_smart_class_new(&sc);
|
_e_smart = evas_smart_class_new(&sc);
|
||||||
|
|
|
@ -364,6 +364,7 @@ _e_layout_smart_init(void)
|
||||||
_e_layout_smart_color_set,
|
_e_layout_smart_color_set,
|
||||||
_e_layout_smart_clip_set,
|
_e_layout_smart_clip_set,
|
||||||
_e_layout_smart_clip_unset,
|
_e_layout_smart_clip_unset,
|
||||||
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
_e_smart = evas_smart_class_new(&sc);
|
_e_smart = evas_smart_class_new(&sc);
|
||||||
|
|
|
@ -210,6 +210,7 @@ _e_smart_init(void)
|
||||||
_e_smart_color_set,
|
_e_smart_color_set,
|
||||||
_e_smart_clip_set,
|
_e_smart_clip_set,
|
||||||
_e_smart_clip_unset,
|
_e_smart_clip_unset,
|
||||||
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
_e_smart = evas_smart_class_new(&sc);
|
_e_smart = evas_smart_class_new(&sc);
|
||||||
|
|
|
@ -263,6 +263,7 @@ _e_smart_init(void)
|
||||||
_e_smart_color_set,
|
_e_smart_color_set,
|
||||||
_e_smart_clip_set,
|
_e_smart_clip_set,
|
||||||
_e_smart_clip_unset,
|
_e_smart_clip_unset,
|
||||||
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
_e_smart = evas_smart_class_new(&sc);
|
_e_smart = evas_smart_class_new(&sc);
|
||||||
|
|
|
@ -1042,6 +1042,7 @@ _e_smart_init(void)
|
||||||
_e_smart_color_set,
|
_e_smart_color_set,
|
||||||
_e_smart_clip_set,
|
_e_smart_clip_set,
|
||||||
_e_smart_clip_unset,
|
_e_smart_clip_unset,
|
||||||
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
_e_smart = evas_smart_class_new(&sc);
|
_e_smart = evas_smart_class_new(&sc);
|
||||||
|
|
|
@ -410,6 +410,7 @@ _e_smart_init(void)
|
||||||
_e_smart_color_set,
|
_e_smart_color_set,
|
||||||
_e_smart_clip_set,
|
_e_smart_clip_set,
|
||||||
_e_smart_clip_unset,
|
_e_smart_clip_unset,
|
||||||
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
_e_smart = evas_smart_class_new(&sc);
|
_e_smart = evas_smart_class_new(&sc);
|
||||||
|
|
|
@ -542,6 +542,7 @@ _e_smart_init(void)
|
||||||
_e_smart_color_set,
|
_e_smart_color_set,
|
||||||
_e_smart_clip_set,
|
_e_smart_clip_set,
|
||||||
_e_smart_clip_unset,
|
_e_smart_clip_unset,
|
||||||
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
_e_smart = evas_smart_class_new(&sc);
|
_e_smart = evas_smart_class_new(&sc);
|
||||||
|
|
|
@ -366,6 +366,7 @@ _e_smart_init(void)
|
||||||
_e_smart_color_set,
|
_e_smart_color_set,
|
||||||
_e_smart_clip_set,
|
_e_smart_clip_set,
|
||||||
_e_smart_clip_unset,
|
_e_smart_clip_unset,
|
||||||
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
_e_smart = evas_smart_class_new(&sc);
|
_e_smart = evas_smart_class_new(&sc);
|
||||||
|
|
|
@ -167,6 +167,7 @@ _e_spectrum_smart_init(void)
|
||||||
_e_spectrum_smart_color_set,
|
_e_spectrum_smart_color_set,
|
||||||
_e_spectrum_smart_clip_set,
|
_e_spectrum_smart_clip_set,
|
||||||
_e_spectrum_smart_clip_unset,
|
_e_spectrum_smart_clip_unset,
|
||||||
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
_e_spectrum_smart = evas_smart_class_new(&sc);
|
_e_spectrum_smart = evas_smart_class_new(&sc);
|
||||||
|
|
|
@ -839,6 +839,7 @@ _e_table_smart_init(void)
|
||||||
_e_table_smart_color_set,
|
_e_table_smart_color_set,
|
||||||
_e_table_smart_clip_set,
|
_e_table_smart_clip_set,
|
||||||
_e_table_smart_clip_unset,
|
_e_table_smart_clip_unset,
|
||||||
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
_e_smart = evas_smart_class_new(&sc);
|
_e_smart = evas_smart_class_new(&sc);
|
||||||
|
|
|
@ -537,7 +537,7 @@ _e_smart_init(void)
|
||||||
EVAS_SMART_CLASS_VERSION,
|
EVAS_SMART_CLASS_VERSION,
|
||||||
_e_smart_add, _e_smart_del, _e_smart_move, _e_smart_resize,
|
_e_smart_add, _e_smart_del, _e_smart_move, _e_smart_resize,
|
||||||
_e_smart_show, _e_smart_hide, _e_smart_color_set,
|
_e_smart_show, _e_smart_hide, _e_smart_color_set,
|
||||||
_e_smart_clip_set, _e_smart_clip_unset, NULL
|
_e_smart_clip_set, _e_smart_clip_unset, NULL, NULL
|
||||||
};
|
};
|
||||||
_e_smart = evas_smart_class_new(&sc);
|
_e_smart = evas_smart_class_new(&sc);
|
||||||
}
|
}
|
||||||
|
|
|
@ -577,6 +577,7 @@ _e_smart_init(void)
|
||||||
_e_smart_color_set,
|
_e_smart_color_set,
|
||||||
_e_smart_clip_set,
|
_e_smart_clip_set,
|
||||||
_e_smart_clip_unset,
|
_e_smart_clip_unset,
|
||||||
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
_e_smart = evas_smart_class_new(&sc);
|
_e_smart = evas_smart_class_new(&sc);
|
||||||
|
|
Loading…
Reference in New Issue