/usr/include/elementary-1/elm_widget_naviframe.h is in libelementary-dev 1.8.5-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | #ifndef ELM_WIDGET_NAVIFRAME_H
#define ELM_WIDGET_NAVIFRAME_H
#include "Elementary.h"
/**
* @addtogroup Widget
* @{
*
* @section elm-naviframe-class The Elementary Naviframe Class
*
* Elementary, besides having the @ref Naviframe widget, exposes its
* foundation -- the Elementary Naviframe Class -- in order to create other
* widgets which are a naviframe with some more logic on top.
*/
/**
* Base layout smart data extended with naviframe instance data.
*/
typedef struct _Elm_Naviframe_Smart_Data Elm_Naviframe_Smart_Data;
struct _Elm_Naviframe_Smart_Data
{
Eina_Inlist *stack; /* top item is the list's LAST item */
Eina_List *popping;
Evas_Object *dummy_edje;
Evas_Display_Mode dispmode;
Eina_Bool preserve : 1;
Eina_Bool on_deletion : 1;
Eina_Bool auto_pushed : 1;
Eina_Bool freeze_events : 1;
};
typedef struct _Elm_Naviframe_Item Elm_Naviframe_Item;
struct _Elm_Naviframe_Item
{
ELM_WIDGET_ITEM;
EINA_INLIST;
Eina_Inlist *content_list;
Eina_Inlist *text_list;
Evas_Object *content;
Evas_Object *title_prev_btn;
Evas_Object *title_next_btn;
Evas_Object *title_icon;
Ecore_Animator *animator;
Evas_Display_Mode dispmode;
Elm_Naviframe_Item_Pop_Cb pop_cb;
void *pop_data;
const char *style;
const char *title_label;
const char *subtitle_label;
Evas_Coord minw;
Evas_Coord minh;
Eina_Bool title_visible : 1;
Eina_Bool unfocusable : 1;
Eina_Bool popping : 1;
};
typedef struct _Elm_Naviframe_Content_Item_Pair Elm_Naviframe_Content_Item_Pair;
struct _Elm_Naviframe_Content_Item_Pair
{
EINA_INLIST;
const char *part;
Evas_Object *content;
Elm_Naviframe_Item *it;
};
typedef struct _Elm_Naviframe_Text_Item_Pair Elm_Naviframe_Text_Item_Pair;
struct _Elm_Naviframe_Text_Item_Pair
{
EINA_INLIST;
const char *part;
};
/**
* @}
*/
#define ELM_NAVIFRAME_DATA_GET(o, sd) \
Elm_Naviframe_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_NAVIFRAME_CLASS)
#define ELM_NAVIFRAME_DATA_GET_OR_RETURN(o, ptr) \
ELM_NAVIFRAME_DATA_GET(o, ptr); \
if (!ptr) \
{ \
CRITICAL("No widget data for object %p (%s)", \
o, evas_object_type_get(o)); \
return; \
}
#define ELM_NAVIFRAME_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_NAVIFRAME_DATA_GET(o, ptr); \
if (!ptr) \
{ \
CRITICAL("No widget data for object %p (%s)", \
o, evas_object_type_get(o)); \
return val; \
}
#define ELM_NAVIFRAME_CHECK(obj) \
if (!eo_isa((obj), ELM_OBJ_NAVIFRAME_CLASS)) \
return
#define ELM_NAVIFRAME_ITEM_CHECK(it) \
ELM_WIDGET_ITEM_CHECK_OR_RETURN((Elm_Widget_Item *)it, ); \
ELM_NAVIFRAME_CHECK(it->base.widget);
#define ELM_NAVIFRAME_ITEM_CHECK_OR_RETURN(it, ...) \
ELM_WIDGET_ITEM_CHECK_OR_RETURN((Elm_Widget_Item *)it, __VA_ARGS__); \
ELM_NAVIFRAME_CHECK(it->base.widget) __VA_ARGS__;
#endif
|