elm_index.c, elm_widget_index.h: flourish the internals of index.

1. added more internal documentation.
2. use EINA_TRUE/FALSE macro for Eina_Bool type.
This commit is contained in:
Daniel Juyung Seo 2013-04-17 15:11:00 +09:00
parent 42fce4830f
commit e25a01ce0c
2 changed files with 5 additions and 3 deletions

View File

@ -85,7 +85,7 @@ _index_box_clear(Evas_Object *obj,
VIEW(it) = NULL;
}
sd->level_active[level] = 0;
sd->level_active[level] = EINA_FALSE;
}
static char *
@ -310,7 +310,7 @@ _index_box_auto_fill(Evas_Object *obj,
}
evas_object_smart_calculate(box);
sd->level_active[level] = 1;
sd->level_active[level] = EINA_TRUE;
}
static void

View File

@ -31,7 +31,9 @@ struct _Elm_Index_Smart_Data
Evas_Coord dx, dy;
Ecore_Timer *delay;
double delay_change_time;
Eina_Bool level_active[2];
Eina_Bool level_active[2]; /**< a flag for the activeness of a
level. activeness means the box is
filled with contents. */
Eina_Bool down : 1;
Eina_Bool horizontal : 1;