comments - man is that struct big!

SVN revision: 40589
This commit is contained in:
Carsten Haitzler 2009-05-11 13:10:38 +00:00
parent 5b7c1be3eb
commit fef7f0e7e4
1 changed files with 58 additions and 57 deletions

View File

@ -723,78 +723,79 @@ struct _Edje
struct _Edje_Real_Part struct _Edje_Real_Part
{ {
Edje *edje; Edje *edje; // 4
Evas_Object *object; Edje_Part *part; // 4
Eina_List *extra_objects; Evas_Object *object; // 4
Evas_Object *swallowed_object; Eina_List *extra_objects; // 4
Eina_List *items; Evas_Object *swallowed_object; // 4 // FIXME: move with swallow_params data
void *entry_data; Eina_List *items; // 4 //FIXME: only if table/box
Evas_Object *cursorbg_object; void *entry_data; // 4 // FIXME: move to entry section
Evas_Object *cursorfg_object; Evas_Object *cursorbg_object; // 4 // FIXME: move to entry section
// FIXME: add selection objects Evas_Object *cursorfg_object; // 4 // FIXME: move to entry section
Edje_Part *part; int x, y, w, h; // 16
int x, y, w, h; Edje_Rectangle req; // 16
Edje_Rectangle req; Edje_Position offset; // 8 // FIXME: move to text section
Edje_Position offset;
struct { struct {
Edje_Size min, max; Edje_Size min, max; // 16
Edje_Aspect aspect; Edje_Aspect aspect; // 12
} swallow_params; } swallow_params; // 28 // FIXME: only if type SWALLOW
struct { struct {
double x, y; double x, y; // 16
Edje_Position_Scale val, size, step, page; Edje_Position_Scale val, size, step, page; // 64
struct { struct {
unsigned int count; unsigned int count; // 4
int x, y; int x, y; // 8
} down; } down;
struct { struct {
int x, y; int x, y; // 8
} tmp; } tmp;
unsigned char need_reset : 1; unsigned char need_reset : 1; // 4
} drag; } drag; // 104 // FIME: make drag pointer to struct optional
struct { struct {
Edje_Real_Part *source; Edje_Real_Part *source; // 4
Edje_Real_Part *text_source; Edje_Real_Part *text_source; // 4
const char *text; const char *text; // 4
const char *font; const char *font; // 4 text only
const char *style; const char *style; // 4 text only
int size; int size; // 4 text only
struct { struct {
double in_w, in_h; double in_w, in_h; // 16 text only
int in_size; int in_size; // 4 text only
const char *in_str; const char *in_str; // 4 text only
const char *out_str; const char *out_str; // 4 text only
int out_size; int out_size; // 4 text only
double align_x, align_y; double align_x, align_y; // 16 text only
double elipsis; double elipsis; // 8 text only
int fit_x, fit_y; int fit_x, fit_y; // 8 text only
} cache; } cache; // 64
} text; } text; // 86 // FIXME make text a potiner to struct and alloc at end
// if part type is TEXT move common members textblock +
// text to front and have smaller struct for textblock
double description_pos; double description_pos; // 8
Edje_Part_Description *chosen_description; Edje_Part_Description *chosen_description; // 4
struct { struct {
Edje_Part_Description *description; Edje_Part_Description *description; // 4
Edje_Real_Part *rel1_to_x; Edje_Real_Part *rel1_to_x; // 4
Edje_Real_Part *rel1_to_y; Edje_Real_Part *rel1_to_y; // 4
Edje_Real_Part *rel2_to_x; Edje_Real_Part *rel2_to_x; // 4
Edje_Real_Part *rel2_to_y; Edje_Real_Part *rel2_to_y; // 4
} param1, param2, custom; } param1, param2, custom; // 60 // FIXME: custom should be alloced on demand - 20--
Edje_Real_Part *confine_to; Edje_Real_Part *confine_to; // 4 // fixme - make part of drag
Edje_Real_Part *clip_to; Edje_Real_Part *clip_to; // 4
Edje_Running_Program *program; Edje_Running_Program *program; // 4
Edje_Real_Part *events_to; Edje_Real_Part *events_to; // 4
int clicked_button; int clicked_button; // 4
int gradient_id; int gradient_id; // 4
unsigned char calculated; unsigned char calculated; // 1
unsigned char calculating; unsigned char calculating; // 1
unsigned char still_in : 1; unsigned char still_in : 1; // 2
}; }; // 394
struct _Edje_Running_Program struct _Edje_Running_Program
{ {