forked from enlightenment/efl
Edje reference patch one (from dresb)
SVN revision: 32848
This commit is contained in:
parent
834d94297e
commit
a71e255ede
|
@ -1,7 +1,7 @@
|
|||
PROJECT_NAME = Edje
|
||||
PROJECT_NUMBER =
|
||||
OUTPUT_DIRECTORY = doc
|
||||
INPUT = edje.c
|
||||
INPUT = edje.c ./src/bin/edje_cc_handlers.c
|
||||
IMAGE_PATH = doc/img
|
||||
OUTPUT_LANGUAGE = English
|
||||
GENERATE_HTML = YES
|
||||
|
@ -51,7 +51,14 @@ GENERATE_TODOLIST = YES
|
|||
GENERATE_TESTLIST = YES
|
||||
GENERATE_BUGLIST = YES
|
||||
GENERATE_DEPRECATEDLIST= YES
|
||||
ALIASES =
|
||||
ALIASES = block="<tr><td class=\"block\"><b>"
|
||||
ALIASES += context="</b></td><td class=\"context\" colspan=2>\code"
|
||||
ALIASES += description="\endcode</td></tr><tr><td> </td><td class=\"description\" colspan=2>"
|
||||
ALIASES += endblock="</td></tr>"
|
||||
ALIASES += property="<tr><td> </td><td><table class=\"edcref\" border=\"0\"><tr><td class=\"property\"><tt>"
|
||||
ALIASES += parameters="</tt></td><td class=\"parameters\"><tt>"
|
||||
ALIASES += effect="</tt></td></tr><tr><td> </td><td class=\"effect\">"
|
||||
ALIASES += endproperty="</td></tr></table></td></tr>"
|
||||
ENABLED_SECTIONS =
|
||||
MAX_INITIALIZER_LINES = 30
|
||||
OPTIMIZE_OUTPUT_FOR_C = YES
|
||||
|
|
|
@ -176,3 +176,14 @@ div.diag
|
|||
text-align: center;
|
||||
font-size: 8;
|
||||
}
|
||||
table.edcref {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
table.edcref td {
|
||||
border-style: hidden;
|
||||
vertical-align:top;
|
||||
padding: 0.5em;
|
||||
}
|
||||
td.property {
|
||||
width: 5em;
|
||||
}
|
||||
|
|
|
@ -1073,6 +1073,31 @@ st_collections_group_parts_part_source(void)
|
|||
ep->source = parse_str(0);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_effect(void)
|
||||
{
|
||||
Edje_Part_Collection *pc;
|
||||
Edje_Part *ep;
|
||||
|
||||
check_arg_count(1);
|
||||
|
||||
pc = evas_list_data(evas_list_last(edje_collections));
|
||||
ep = evas_list_data(evas_list_last(pc->parts));
|
||||
ep->effect = parse_enum(0,
|
||||
"NONE", EDJE_TEXT_EFFECT_NONE,
|
||||
"PLAIN", EDJE_TEXT_EFFECT_PLAIN,
|
||||
"OUTLINE", EDJE_TEXT_EFFECT_OUTLINE,
|
||||
"SOFT_OUTLINE", EDJE_TEXT_EFFECT_SOFT_OUTLINE,
|
||||
"SHADOW", EDJE_TEXT_EFFECT_SHADOW,
|
||||
"SOFT_SHADOW", EDJE_TEXT_EFFECT_SOFT_SHADOW,
|
||||
"OUTLINE_SHADOW", EDJE_TEXT_EFFECT_OUTLINE_SHADOW,
|
||||
"OUTLINE_SOFT_SHADOW", EDJE_TEXT_EFFECT_OUTLINE_SOFT_SHADOW,
|
||||
"FAR_SHADOW", EDJE_TEXT_EFFECT_FAR_SHADOW,
|
||||
"FAR_SOFT_SHADOW", EDJE_TEXT_EFFECT_FAR_SOFT_SHADOW,
|
||||
"GLOW", EDJE_TEXT_EFFECT_GLOW,
|
||||
NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_dragable_x(void)
|
||||
{
|
||||
|
@ -1504,6 +1529,79 @@ st_collections_group_parts_part_description_aspect_preference(void)
|
|||
NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_color_class(void)
|
||||
{
|
||||
Edje_Part_Collection *pc;
|
||||
Edje_Part *ep;
|
||||
Edje_Part_Description *ed;
|
||||
|
||||
check_arg_count(1);
|
||||
|
||||
pc = evas_list_data(evas_list_last(edje_collections));
|
||||
ep = evas_list_data(evas_list_last(pc->parts));
|
||||
ed = ep->default_desc;
|
||||
if (ep->other_desc) ed = evas_list_data(evas_list_last(ep->other_desc));
|
||||
ed->color_class = parse_str(0);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_color(void)
|
||||
{
|
||||
Edje_Part_Collection *pc;
|
||||
Edje_Part *ep;
|
||||
Edje_Part_Description *ed;
|
||||
|
||||
check_arg_count(4);
|
||||
|
||||
pc = evas_list_data(evas_list_last(edje_collections));
|
||||
ep = evas_list_data(evas_list_last(pc->parts));
|
||||
ed = ep->default_desc;
|
||||
if (ep->other_desc) ed = evas_list_data(evas_list_last(ep->other_desc));
|
||||
ed->color.r = parse_int_range(0, 0, 255);
|
||||
ed->color.g = parse_int_range(1, 0, 255);
|
||||
ed->color.b = parse_int_range(2, 0, 255);
|
||||
ed->color.a = parse_int_range(3, 0, 255);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_color2(void)
|
||||
{
|
||||
Edje_Part_Collection *pc;
|
||||
Edje_Part *ep;
|
||||
Edje_Part_Description *ed;
|
||||
|
||||
check_arg_count(4);
|
||||
|
||||
pc = evas_list_data(evas_list_last(edje_collections));
|
||||
ep = evas_list_data(evas_list_last(pc->parts));
|
||||
ed = ep->default_desc;
|
||||
if (ep->other_desc) ed = evas_list_data(evas_list_last(ep->other_desc));
|
||||
ed->color2.r = parse_int_range(0, 0, 255);
|
||||
ed->color2.g = parse_int_range(1, 0, 255);
|
||||
ed->color2.b = parse_int_range(2, 0, 255);
|
||||
ed->color2.a = parse_int_range(3, 0, 255);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_color3(void)
|
||||
{
|
||||
Edje_Part_Collection *pc;
|
||||
Edje_Part *ep;
|
||||
Edje_Part_Description *ed;
|
||||
|
||||
check_arg_count(4);
|
||||
|
||||
pc = evas_list_data(evas_list_last(edje_collections));
|
||||
ep = evas_list_data(evas_list_last(pc->parts));
|
||||
ed = ep->default_desc;
|
||||
if (ep->other_desc) ed = evas_list_data(evas_list_last(ep->other_desc));
|
||||
ed->color3.r = parse_int_range(0, 0, 255);
|
||||
ed->color3.g = parse_int_range(1, 0, 255);
|
||||
ed->color3.b = parse_int_range(2, 0, 255);
|
||||
ed->color3.a = parse_int_range(3, 0, 255);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_rel1_relative(void)
|
||||
{
|
||||
|
@ -1849,6 +1947,86 @@ st_collections_group_parts_part_description_fill_smooth(void)
|
|||
ed->fill.smooth = parse_bool(0);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_fill_spread(void)
|
||||
{
|
||||
Edje_Part_Collection *pc;
|
||||
Edje_Part *ep;
|
||||
Edje_Part_Description *ed;
|
||||
|
||||
check_arg_count(1);
|
||||
|
||||
pc = evas_list_data(evas_list_last(edje_collections));
|
||||
ep = evas_list_data(evas_list_last(pc->parts));
|
||||
|
||||
/* XXX this will need to include IMAGES when spread support is added to evas images */
|
||||
if (ep->type != EDJE_PART_TYPE_GRADIENT)
|
||||
{
|
||||
fprintf(stderr, "%s: Error. parse error %s:%i. "
|
||||
"gradient attributes in non-GRADIENT part.\n",
|
||||
progname, file_in, line - 1);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
ed = ep->default_desc;
|
||||
if (ep->other_desc) ed = evas_list_data(evas_list_last(ep->other_desc));
|
||||
ed->fill.spread = parse_int_range(0, 0, 1);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_fill_angle(void)
|
||||
{
|
||||
Edje_Part_Collection *pc;
|
||||
Edje_Part *ep;
|
||||
Edje_Part_Description *ed;
|
||||
|
||||
check_arg_count(1);
|
||||
|
||||
pc = evas_list_data(evas_list_last(edje_collections));
|
||||
ep = evas_list_data(evas_list_last(pc->parts));
|
||||
|
||||
/* XXX this will need to include IMAGES when angle support is added to evas images */
|
||||
if (ep->type != EDJE_PART_TYPE_GRADIENT)
|
||||
{
|
||||
fprintf(stderr, "%s: Error. parse error %s:%i. "
|
||||
"gradient attributes in non-GRADIENT part.\n",
|
||||
progname, file_in, line - 1);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
ed = ep->default_desc;
|
||||
if (ep->other_desc) ed = evas_list_data(evas_list_last(ep->other_desc));
|
||||
ed->fill.angle = parse_int_range(0, 0, 360);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_fill_type(void)
|
||||
{
|
||||
Edje_Part_Collection *pc;
|
||||
Edje_Part *ep;
|
||||
Edje_Part_Description *ed;
|
||||
|
||||
check_arg_count(1);
|
||||
|
||||
pc = evas_list_data(evas_list_last(edje_collections));
|
||||
ep = evas_list_data(evas_list_last(pc->parts));
|
||||
ed = ep->default_desc;
|
||||
if (ep->other_desc) ed = evas_list_data(evas_list_last(ep->other_desc));
|
||||
|
||||
if (ep->type != EDJE_PART_TYPE_IMAGE)
|
||||
{
|
||||
fprintf(stderr, "%s: Error. parse error %s:%i. "
|
||||
"fill attributes in non-IMAGE part.\n",
|
||||
progname, file_in, line - 1);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
ed->fill.type = parse_enum(0,
|
||||
"SCALE", EDJE_FILL_TYPE_SCALE,
|
||||
"TILE", EDJE_FILL_TYPE_TILE,
|
||||
NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_fill_origin_relative(void)
|
||||
{
|
||||
|
@ -1953,79 +2131,6 @@ st_collections_group_parts_part_description_fill_size_offset(void)
|
|||
ed->fill.abs_y = parse_int(1);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_color_class(void)
|
||||
{
|
||||
Edje_Part_Collection *pc;
|
||||
Edje_Part *ep;
|
||||
Edje_Part_Description *ed;
|
||||
|
||||
check_arg_count(1);
|
||||
|
||||
pc = evas_list_data(evas_list_last(edje_collections));
|
||||
ep = evas_list_data(evas_list_last(pc->parts));
|
||||
ed = ep->default_desc;
|
||||
if (ep->other_desc) ed = evas_list_data(evas_list_last(ep->other_desc));
|
||||
ed->color_class = parse_str(0);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_color(void)
|
||||
{
|
||||
Edje_Part_Collection *pc;
|
||||
Edje_Part *ep;
|
||||
Edje_Part_Description *ed;
|
||||
|
||||
check_arg_count(4);
|
||||
|
||||
pc = evas_list_data(evas_list_last(edje_collections));
|
||||
ep = evas_list_data(evas_list_last(pc->parts));
|
||||
ed = ep->default_desc;
|
||||
if (ep->other_desc) ed = evas_list_data(evas_list_last(ep->other_desc));
|
||||
ed->color.r = parse_int_range(0, 0, 255);
|
||||
ed->color.g = parse_int_range(1, 0, 255);
|
||||
ed->color.b = parse_int_range(2, 0, 255);
|
||||
ed->color.a = parse_int_range(3, 0, 255);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_color2(void)
|
||||
{
|
||||
Edje_Part_Collection *pc;
|
||||
Edje_Part *ep;
|
||||
Edje_Part_Description *ed;
|
||||
|
||||
check_arg_count(4);
|
||||
|
||||
pc = evas_list_data(evas_list_last(edje_collections));
|
||||
ep = evas_list_data(evas_list_last(pc->parts));
|
||||
ed = ep->default_desc;
|
||||
if (ep->other_desc) ed = evas_list_data(evas_list_last(ep->other_desc));
|
||||
ed->color2.r = parse_int_range(0, 0, 255);
|
||||
ed->color2.g = parse_int_range(1, 0, 255);
|
||||
ed->color2.b = parse_int_range(2, 0, 255);
|
||||
ed->color2.a = parse_int_range(3, 0, 255);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_color3(void)
|
||||
{
|
||||
Edje_Part_Collection *pc;
|
||||
Edje_Part *ep;
|
||||
Edje_Part_Description *ed;
|
||||
|
||||
check_arg_count(4);
|
||||
|
||||
pc = evas_list_data(evas_list_last(edje_collections));
|
||||
ep = evas_list_data(evas_list_last(pc->parts));
|
||||
ed = ep->default_desc;
|
||||
if (ep->other_desc) ed = evas_list_data(evas_list_last(ep->other_desc));
|
||||
ed->color3.r = parse_int_range(0, 0, 255);
|
||||
ed->color3.g = parse_int_range(1, 0, 255);
|
||||
ed->color3.b = parse_int_range(2, 0, 255);
|
||||
ed->color3.a = parse_int_range(3, 0, 255);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_text_text(void)
|
||||
{
|
||||
|
@ -2167,31 +2272,6 @@ st_collections_group_parts_part_description_text_size(void)
|
|||
ed->text.size = parse_int_range(0, 0, 255);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_effect(void)
|
||||
{
|
||||
Edje_Part_Collection *pc;
|
||||
Edje_Part *ep;
|
||||
|
||||
check_arg_count(1);
|
||||
|
||||
pc = evas_list_data(evas_list_last(edje_collections));
|
||||
ep = evas_list_data(evas_list_last(pc->parts));
|
||||
ep->effect = parse_enum(0,
|
||||
"NONE", EDJE_TEXT_EFFECT_NONE,
|
||||
"PLAIN", EDJE_TEXT_EFFECT_PLAIN,
|
||||
"OUTLINE", EDJE_TEXT_EFFECT_OUTLINE,
|
||||
"SOFT_OUTLINE", EDJE_TEXT_EFFECT_SOFT_OUTLINE,
|
||||
"SHADOW", EDJE_TEXT_EFFECT_SHADOW,
|
||||
"SOFT_SHADOW", EDJE_TEXT_EFFECT_SOFT_SHADOW,
|
||||
"OUTLINE_SHADOW", EDJE_TEXT_EFFECT_OUTLINE_SHADOW,
|
||||
"OUTLINE_SOFT_SHADOW", EDJE_TEXT_EFFECT_OUTLINE_SOFT_SHADOW,
|
||||
"FAR_SHADOW", EDJE_TEXT_EFFECT_FAR_SHADOW,
|
||||
"FAR_SOFT_SHADOW", EDJE_TEXT_EFFECT_FAR_SOFT_SHADOW,
|
||||
"GLOW", EDJE_TEXT_EFFECT_GLOW,
|
||||
NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_text_fit(void)
|
||||
{
|
||||
|
@ -2362,58 +2442,6 @@ st_collections_group_parts_part_description_text_text_source(void)
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_fill_angle(void)
|
||||
{
|
||||
Edje_Part_Collection *pc;
|
||||
Edje_Part *ep;
|
||||
Edje_Part_Description *ed;
|
||||
|
||||
check_arg_count(1);
|
||||
|
||||
pc = evas_list_data(evas_list_last(edje_collections));
|
||||
ep = evas_list_data(evas_list_last(pc->parts));
|
||||
|
||||
/* XXX this will need to include IMAGES when angle support is added to evas images */
|
||||
if (ep->type != EDJE_PART_TYPE_GRADIENT)
|
||||
{
|
||||
fprintf(stderr, "%s: Error. parse error %s:%i. "
|
||||
"gradient attributes in non-GRADIENT part.\n",
|
||||
progname, file_in, line - 1);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
ed = ep->default_desc;
|
||||
if (ep->other_desc) ed = evas_list_data(evas_list_last(ep->other_desc));
|
||||
ed->fill.angle = parse_int_range(0, 0, 360);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_fill_spread(void)
|
||||
{
|
||||
Edje_Part_Collection *pc;
|
||||
Edje_Part *ep;
|
||||
Edje_Part_Description *ed;
|
||||
|
||||
check_arg_count(1);
|
||||
|
||||
pc = evas_list_data(evas_list_last(edje_collections));
|
||||
ep = evas_list_data(evas_list_last(pc->parts));
|
||||
|
||||
/* XXX this will need to include IMAGES when spread support is added to evas images */
|
||||
if (ep->type != EDJE_PART_TYPE_GRADIENT)
|
||||
{
|
||||
fprintf(stderr, "%s: Error. parse error %s:%i. "
|
||||
"gradient attributes in non-GRADIENT part.\n",
|
||||
progname, file_in, line - 1);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
ed = ep->default_desc;
|
||||
if (ep->other_desc) ed = evas_list_data(evas_list_last(ep->other_desc));
|
||||
ed->fill.spread = parse_int_range(0, 0, 1);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_text_elipsis(void)
|
||||
{
|
||||
|
@ -2699,34 +2727,6 @@ st_collections_group_programs_program_in(void)
|
|||
ep->in.range = parse_float_range(1, 0.0, 999999999.0);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_parts_part_description_fill_type(void)
|
||||
{
|
||||
Edje_Part_Collection *pc;
|
||||
Edje_Part *ep;
|
||||
Edje_Part_Description *ed;
|
||||
|
||||
check_arg_count(1);
|
||||
|
||||
pc = evas_list_data(evas_list_last(edje_collections));
|
||||
ep = evas_list_data(evas_list_last(pc->parts));
|
||||
ed = ep->default_desc;
|
||||
if (ep->other_desc) ed = evas_list_data(evas_list_last(ep->other_desc));
|
||||
|
||||
if (ep->type != EDJE_PART_TYPE_IMAGE)
|
||||
{
|
||||
fprintf(stderr, "%s: Error. parse error %s:%i. "
|
||||
"fill attributes in non-IMAGE part.\n",
|
||||
progname, file_in, line - 1);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
ed->fill.type = parse_enum(0,
|
||||
"SCALE", EDJE_FILL_TYPE_SCALE,
|
||||
"TILE", EDJE_FILL_TYPE_TILE,
|
||||
NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
st_collections_group_programs_program_action(void)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue