diff options
author | Jaehyun Cho <jae_hyun.cho@samsung.com> | 2018-04-12 21:30:05 +0900 |
---|---|---|
committer | Jaehyun Cho <jae_hyun.cho@samsung.com> | 2018-04-19 23:40:01 +0900 |
commit | 7e8722be00f9ce7d1d9f5b43c622fb71baf2fe82 (patch) | |
tree | 0f14e8d0bb8e56fca6499688839d7b043a65ca87 /src/lib/elementary/efl_ui_navigation_layout_private.h | |
parent | ab4fa83f62ea8f23e137bd6f245502c5c6cdaaa0 (diff) | |
download | efl-7e8722be00f9ce7d1d9f5b43c622fb71baf2fe82.tar.gz |
efl_ui_navigation_layout: Add Efl.Ui.Navigation_Layout class
Efl.Ui.Navigation_Layout is a widget which provides a layout form useful
for navigation.
Diffstat (limited to 'src/lib/elementary/efl_ui_navigation_layout_private.h')
-rw-r--r-- | src/lib/elementary/efl_ui_navigation_layout_private.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_navigation_layout_private.h b/src/lib/elementary/efl_ui_navigation_layout_private.h new file mode 100644 index 0000000000..47d3e4464d --- /dev/null +++ b/src/lib/elementary/efl_ui_navigation_layout_private.h @@ -0,0 +1,20 @@ +#ifndef EFL_UI_WIDGET_NAVIGATION_LAYOUT_H +#define EFL_UI_WIDGET_NAVIGATION_LAYOUT_H + +typedef struct _Efl_Ui_Navigation_Layout_Data Efl_Ui_Navigation_Layout_Data; +struct _Efl_Ui_Navigation_Layout_Data +{ + Efl_Ui_Layout *bar; +}; + +#define EFL_UI_NAVIGATION_LAYOUT_DATA_GET_OR_RETURN(o, ptr, ...) \ + Efl_Ui_Navigation_Layout_Data *ptr; \ + ptr = efl_data_scope_get(o, EFL_UI_NAVIGATION_LAYOUT_CLASS); \ + if (EINA_UNLIKELY(!ptr)) \ + { \ + CRI("no ui navigation layout data for object %p (%s)", \ + o, evas_object_type_get(o)); \ + return __VA_ARGS__; \ + } + +#endif |