aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_navigation_layout_private.h
blob: 47d3e4464df656b141071522d49b33f53a9fcd2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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