summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_gfx_color.c (follow)
AgeCommit message (Collapse)Author
2019-07-29Fix build breakXavi Artigas
Caused by 1c0a459293981ef9691b9bb5acd468ba84e502b4 I should have been more careful before approving, my bad.
2019-07-29efl_gfx_color: fix color_code_setAli Alzyod
Summary: There are two parts for this patch: 1- Fix sigmentation fault when using (efl_gfx_color_color_code_set). // It try to modify const variable 2- Remove unnecessary code. // why would user pass slash or back slash as color code format. Test Plan: ``` #define EFL_EO_API_SUPPORT 1 #define EFL_BETA_API_SUPPORT 1 #include <Eina.h> #include <Elementary.h> #include <Efl_Ui.h> static void _gui_quit_cb(void *data EINA_UNUSED, const Efl_Event *event EINA_UNUSED) { efl_exit(0); } static void _gui_setup() { Eo *win, *rect; win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC), efl_text_set(efl_added, "Hello World"), efl_ui_win_autodel_set(efl_added, EINA_TRUE)); // when the user clicks "close" on a window there is a request to delete efl_event_callback_add(win, EFL_UI_WIN_EVENT_DELETE_REQUEST, _gui_quit_cb, NULL); rect = efl_add(EFL_CANVAS_RECTANGLE_CLASS,win); const char *color = "#FF0000FF"; efl_gfx_color_code_set(rect,color); evas_object_resize(rect,250,250); evas_object_resize(win,250,250); evas_object_move(rect,0,0); evas_object_show(rect); evas_object_show(win); } EAPI_MAIN void efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED) { _gui_setup(); } EFL_MAIN() ``` Reviewers: zmike, cedric, segfaultxavi, woohyun Reviewed By: segfaultxavi Subscribers: singh.amitesh, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9422
2019-02-11efl_gfx_color_class: make this a mixin and move color_class_code hereMike Blumenkrantz
Summary: color_class_code seems to only have been added to efl_gfx_color in order to share the hex conversion code, but this is trivial to do when it's in another class and makes the api more sensible ref T7559 Reviewers: segfaultxavi, bu5hm4n, cedric Reviewed By: segfaultxavi Subscribers: #reviewers, #committers Tags: #efl_api Maniphest Tasks: T7559 Differential Revision: https://phab.enlightenment.org/D7898
2018-04-17eolian gen: enable constness generation on property getter implsDaniel Kolesa
This changes a lot of things all across the EFL. Previously, methods tagged @const had both their external prototype and internal impl generated with const on object, while property getters only had const on the external API. This is now changed and it all has const everywhere. Ref T6859.
2018-01-02Efl.Gfx.Color: add color_class_code.set/get{} methodAmitesh Singh
2017-12-22Efl.Gfx.Color: add color_code{}Amitesh Singh
color_code allows user to pass/get the color hex string (e.g. efl_gfx_color_code_set(o, "#FFAA22CC")) Also make this interface as mixin class.