rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=c13c9bfccb63baebbfad1f1a4a370981c8c135a6
commit c13c9bfccb63baebbfad1f1a4a370981c8c135a6 Author: Vyacheslav Reutskiy <[email protected]> Date: Fri Jul 10 11:26:14 2015 +0300 Project manager: add new API wm_style_layout_is Change-Id: I23df50ac7836a5895d666ed8bbdb9f8ce463ea86 --- src/bin/project_manager/widget_manager.c | 8 ++++++++ src/bin/project_manager/widget_manager.h | 12 +++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/bin/project_manager/widget_manager.c b/src/bin/project_manager/widget_manager.c index fd51891..a8ccdd8 100644 --- a/src/bin/project_manager/widget_manager.c +++ b/src/bin/project_manager/widget_manager.c @@ -394,6 +394,14 @@ wm_style_name_set(Style *style, const char *name) } Eina_Bool +wm_style_layout_is(Style *style) +{ + assert(style != NULL); + + return style->__type == LAYOUT; +} + +Eina_Bool wm_style_free(Style *style) { Style *aliassed; diff --git a/src/bin/project_manager/widget_manager.h b/src/bin/project_manager/widget_manager.h index 364cae9..b5fa075 100644 --- a/src/bin/project_manager/widget_manager.h +++ b/src/bin/project_manager/widget_manager.h @@ -322,7 +322,7 @@ wm_style_add(const char* style_name, const char* full_group_name, /** * Set new name to given Style. * - * @param style The given style + * @param style The given @Style object * @param name The new name for style * * @return New style name or NULL @@ -345,6 +345,16 @@ Eina_Bool wm_style_free(Style *style); /** + * Check Style type. + * + * @param style The given @Style object + * + * @return EINA_TRUE if given style is layout, otherwise EINA_FALSE + */ +Eina_Bool +wm_style_layout_is(Style *style); + +/** * Copy all parms of style from one edje_edit object to new style of the same object. * First of all copy main params of style, like min/max size. At second copy * all params of states of parts in style. Also copyes programms for style. --
