Lines Matching refs:a_value
254 CRTerm * a_value, enum CRDirection a_dir);
258 CRTerm * a_value,
262 CRTerm *a_value) ;
266 CRTerm * a_value,
270 CRTerm *a_value) ;
273 set_prop_margin_x_from_value (CRStyle * a_style, CRTerm * a_value,
277 set_prop_display_from_value (CRStyle * a_style, CRTerm * a_value);
280 set_prop_position_from_value (CRStyle * a_style, CRTerm * a_value);
283 set_prop_x_from_value (CRStyle * a_style, CRTerm * a_value,
287 set_prop_float (CRStyle * a_style, CRTerm * a_value);
290 set_prop_width (CRStyle * a_style, CRTerm * a_value);
293 set_prop_color (CRStyle * a_style, CRTerm * a_value);
296 set_prop_background_color (CRStyle * a_style, CRTerm * a_value);
299 set_prop_border_x_color_from_value (CRStyle * a_style, CRTerm * a_value,
303 set_prop_border_x_from_value (CRStyle * a_style, CRTerm * a_value,
307 set_prop_border_from_value (CRStyle * a_style, CRTerm * a_value);
310 set_prop_padding_from_value (CRStyle * a_style, CRTerm * a_value);
313 set_prop_margin_from_value (CRStyle * a_style, CRTerm * a_value);
316 set_prop_font_family_from_value (CRStyle * a_style, CRTerm * a_value);
322 set_prop_font_size_from_value (CRStyle * a_style, CRTerm * a_value);
325 set_prop_font_style_from_value (CRStyle * a_style, CRTerm * a_value);
328 set_prop_font_weight_from_value (CRStyle * a_style, CRTerm * a_value);
444 CRTerm * a_value, enum CRDirection a_dir) in set_prop_padding_x_from_value() argument
449 g_return_val_if_fail (a_style && a_value, CR_BAD_PARAM_ERROR); in set_prop_padding_x_from_value()
451 if (a_value->type != TERM_NUMBER && a_value->type != TERM_IDENT) in set_prop_padding_x_from_value()
475 if (a_value->type == TERM_IDENT) { in set_prop_padding_x_from_value()
476 if (a_value->content.str in set_prop_padding_x_from_value()
477 && a_value->content.str->stryng in set_prop_padding_x_from_value()
478 && a_value->content.str->stryng->str in set_prop_padding_x_from_value()
480 a_value->content.str->stryng->str, in set_prop_padding_x_from_value()
488 g_return_val_if_fail (a_value->type == TERM_NUMBER in set_prop_padding_x_from_value()
489 && a_value->content.num, CR_UNKNOWN_TYPE_ERROR); in set_prop_padding_x_from_value()
491 switch (a_value->content.num->type) { in set_prop_padding_x_from_value()
501 status = cr_num_copy (num_val, a_value->content.num); in set_prop_padding_x_from_value()
513 CRTerm * a_value, in set_prop_border_x_width_from_value() argument
519 g_return_val_if_fail (a_value && a_style, CR_BAD_PARAM_ERROR); in set_prop_border_x_width_from_value()
543 if (a_value->type == TERM_IDENT) { in set_prop_border_x_width_from_value()
544 if (a_value->content.str in set_prop_border_x_width_from_value()
545 && a_value->content.str->stryng in set_prop_border_x_width_from_value()
546 && a_value->content.str->stryng->str) { in set_prop_border_x_width_from_value()
548 a_value->content.str->stryng->str, in set_prop_border_x_width_from_value()
554 a_value->content.str->stryng->str, in set_prop_border_x_width_from_value()
559 a_value->content.str->stryng->str, in set_prop_border_x_width_from_value()
567 } else if (a_value->type == TERM_NUMBER) { in set_prop_border_x_width_from_value()
568 if (a_value->content.num) { in set_prop_border_x_width_from_value()
569 cr_num_copy (num_val, a_value->content.num); in set_prop_border_x_width_from_value()
571 } else if (a_value->type != TERM_NUMBER in set_prop_border_x_width_from_value()
572 || a_value->content.num == NULL) { in set_prop_border_x_width_from_value()
581 CRTerm *a_value) in set_prop_border_width_from_value() argument
586 g_return_val_if_fail (a_style && a_value, in set_prop_border_width_from_value()
588 cur_term = a_value ; in set_prop_border_width_from_value()
625 CRTerm * a_value, enum CRDirection a_dir) in set_prop_border_x_style_from_value() argument
630 g_return_val_if_fail (a_style && a_value, CR_BAD_PARAM_ERROR); in set_prop_border_x_style_from_value()
657 if (a_value->type != TERM_IDENT || !a_value->content.str) { in set_prop_border_x_style_from_value()
662 a_value->content.str->stryng->str, in set_prop_border_x_style_from_value()
666 a_value->content.str->stryng->str, in set_prop_border_x_style_from_value()
670 a_value->content.str->stryng->str, in set_prop_border_x_style_from_value()
674 a_value->content.str->stryng->str, sizeof ("dashed")-1)) { in set_prop_border_x_style_from_value()
677 a_value->content.str->stryng->str, sizeof ("solid")-1)) { in set_prop_border_x_style_from_value()
680 a_value->content.str->stryng->str, sizeof ("double")-1)) { in set_prop_border_x_style_from_value()
683 a_value->content.str->stryng->str, sizeof ("groove")-1)) { in set_prop_border_x_style_from_value()
686 a_value->content.str->stryng->str, in set_prop_border_x_style_from_value()
690 a_value->content.str->stryng->str, in set_prop_border_x_style_from_value()
694 a_value->content.str->stryng->str, in set_prop_border_x_style_from_value()
698 a_value->content.str->stryng->str, in set_prop_border_x_style_from_value()
710 CRTerm *a_value) in set_prop_border_style_from_value() argument
715 g_return_val_if_fail (a_style && a_value, in set_prop_border_style_from_value()
718 cur_term = a_value ; in set_prop_border_style_from_value()
758 set_prop_margin_x_from_value (CRStyle * a_style, CRTerm * a_value, in set_prop_margin_x_from_value() argument
764 g_return_val_if_fail (a_style && a_value, CR_BAD_PARAM_ERROR); in set_prop_margin_x_from_value()
787 switch (a_value->type) { in set_prop_margin_x_from_value()
789 if (a_value->content.str in set_prop_margin_x_from_value()
790 && a_value->content.str->stryng in set_prop_margin_x_from_value()
791 && a_value->content.str->stryng->str in set_prop_margin_x_from_value()
792 && !strcmp (a_value->content.str->stryng->str, in set_prop_margin_x_from_value()
795 } else if (a_value->content.str in set_prop_margin_x_from_value()
796 && a_value->content.str->stryng in set_prop_margin_x_from_value()
797 && !strcmp (a_value->content.str->stryng->str, in set_prop_margin_x_from_value()
806 status = cr_num_copy (num_val, a_value->content.num); in set_prop_margin_x_from_value()
823 set_prop_display_from_value (CRStyle * a_style, CRTerm * a_value) in set_prop_display_from_value() argument
846 g_return_val_if_fail (a_style && a_value, CR_BAD_PARAM_ERROR); in set_prop_display_from_value()
848 switch (a_value->type) { in set_prop_display_from_value()
853 if (!a_value->content.str in set_prop_display_from_value()
854 || !a_value->content.str->stryng in set_prop_display_from_value()
855 || !a_value->content.str->stryng->str) in set_prop_display_from_value()
861 a_value->content.str->stryng->str, in set_prop_display_from_value()
884 set_prop_position_from_value (CRStyle * a_style, CRTerm * a_value) in set_prop_position_from_value() argument
897 g_return_val_if_fail (a_value, CR_BAD_PARAM_ERROR); in set_prop_position_from_value()
899 switch (a_value->type) { in set_prop_position_from_value()
904 if (!a_value->content.str in set_prop_position_from_value()
905 || !a_value->content.str->stryng in set_prop_position_from_value()
906 || !a_value->content.str->stryng->str) in set_prop_position_from_value()
911 a_value->content.str->stryng->str, in set_prop_position_from_value()
931 set_prop_x_from_value (CRStyle * a_style, CRTerm * a_value, in set_prop_x_from_value() argument
936 g_return_val_if_fail (a_style && a_value, CR_BAD_PARAM_ERROR); in set_prop_x_from_value()
938 if (!(a_value->type == TERM_NUMBER) in set_prop_x_from_value()
939 && !(a_value->type == TERM_IDENT)) { in set_prop_x_from_value()
965 if (a_value->type == TERM_NUMBER && a_value->content.num) { in set_prop_x_from_value()
966 cr_num_copy (box_offset, a_value->content.num); in set_prop_x_from_value()
967 } else if (a_value->type == TERM_IDENT in set_prop_x_from_value()
968 && a_value->content.str in set_prop_x_from_value()
969 && a_value->content.str->stryng in set_prop_x_from_value()
970 && a_value->content.str->stryng->str) { in set_prop_x_from_value()
972 a_value->content.str->stryng->str, in set_prop_x_from_value()
976 a_value->content.str->stryng->str, in set_prop_x_from_value()
986 set_prop_float (CRStyle * a_style, CRTerm * a_value) in set_prop_float() argument
988 g_return_val_if_fail (a_style && a_value, in set_prop_float()
994 if (a_value->type != TERM_IDENT in set_prop_float()
995 || !a_value->content.str in set_prop_float()
996 || !a_value->content.str->stryng in set_prop_float()
997 || !a_value->content.str->stryng->str) { in set_prop_float()
1003 a_value->content.str->stryng->str, in set_prop_float()
1007 a_value->content.str->stryng->str, in set_prop_float()
1011 a_value->content.str->stryng->str, in set_prop_float()
1015 a_value->content.str->stryng->str, in set_prop_float()
1023 set_prop_width (CRStyle * a_style, CRTerm * a_value) in set_prop_width() argument
1027 && a_value, in set_prop_width()
1033 if (a_value->type == TERM_IDENT) { in set_prop_width()
1034 if (a_value->content.str in set_prop_width()
1035 && a_value->content.str->stryng in set_prop_width()
1036 && a_value->content.str->stryng->str) { in set_prop_width()
1038 a_value->content.str->stryng->str, in set_prop_width()
1042 a_value->content.str->stryng->str, in set_prop_width()
1047 } else if (a_value->type == TERM_NUMBER) { in set_prop_width()
1048 if (a_value->content.num) { in set_prop_width()
1050 a_value->content.num); in set_prop_width()
1057 set_prop_color (CRStyle * a_style, CRTerm * a_value) in set_prop_color() argument
1063 && a_value, CR_BAD_PARAM_ERROR); in set_prop_color()
1065 status = cr_rgb_set_from_term (a_rgb, a_value); in set_prop_color()
1071 set_prop_background_color (CRStyle * a_style, CRTerm * a_value) in set_prop_background_color() argument
1076 g_return_val_if_fail (a_style && a_value, CR_BAD_PARAM_ERROR); in set_prop_background_color()
1078 status = cr_rgb_set_from_term (rgb, a_value); in set_prop_background_color()
1093 set_prop_border_x_color_from_value (CRStyle * a_style, CRTerm * a_value, in set_prop_border_x_color_from_value() argument
1099 g_return_val_if_fail (a_style && a_value, CR_BAD_PARAM_ERROR); in set_prop_border_x_color_from_value()
1128 if (a_value->type == TERM_IDENT) { in set_prop_border_x_color_from_value()
1129 if (a_value->content.str in set_prop_border_x_color_from_value()
1130 && a_value->content.str->stryng in set_prop_border_x_color_from_value()
1131 && a_value->content.str->stryng->str) { in set_prop_border_x_color_from_value()
1134 (const guchar *) a_value->content.str->stryng->str); in set_prop_border_x_color_from_value()
1140 } else if (a_value->type == TERM_RGB) { in set_prop_border_x_color_from_value()
1141 if (a_value->content.rgb) { in set_prop_border_x_color_from_value()
1143 (rgb_color, a_value->content.rgb); in set_prop_border_x_color_from_value()
1150 set_prop_border_x_from_value (CRStyle * a_style, CRTerm * a_value, in set_prop_border_x_from_value() argument
1157 g_return_val_if_fail (a_style && a_value, CR_BAD_PARAM_ERROR); in set_prop_border_x_from_value()
1159 for (cur_term = a_value; in set_prop_border_x_from_value()
1178 set_prop_border_from_value (CRStyle * a_style, CRTerm * a_value) in set_prop_border_from_value() argument
1182 g_return_val_if_fail (a_style && a_value, CR_BAD_PARAM_ERROR); in set_prop_border_from_value()
1186 a_value, in set_prop_border_from_value()
1194 set_prop_padding_from_value (CRStyle * a_style, CRTerm * a_value) in set_prop_padding_from_value() argument
1200 g_return_val_if_fail (a_style && a_value, CR_BAD_PARAM_ERROR); in set_prop_padding_from_value()
1202 cur_term = a_value; in set_prop_padding_from_value()
1245 set_prop_margin_from_value (CRStyle * a_style, CRTerm * a_value) in set_prop_margin_from_value() argument
1251 g_return_val_if_fail (a_style && a_value, CR_BAD_PARAM_ERROR); in set_prop_margin_from_value()
1253 cur_term = a_value; in set_prop_margin_from_value()
1296 set_prop_font_family_from_value (CRStyle * a_style, CRTerm * a_value) in set_prop_font_family_from_value() argument
1303 g_return_val_if_fail (a_style && a_value, CR_BAD_PARAM_ERROR); in set_prop_font_family_from_value()
1305 if (a_value->type == TERM_IDENT && in set_prop_font_family_from_value()
1306 a_value->content.str && in set_prop_font_family_from_value()
1307 a_value->content.str->stryng && in set_prop_font_family_from_value()
1308 a_value->content.str->stryng->str && in set_prop_font_family_from_value()
1309 !strcmp ("inherit", a_value->content.str->stryng->str)) in set_prop_font_family_from_value()
1315 for (cur_term = a_value; cur_term; cur_term = cur_term->next) { in set_prop_font_family_from_value()
1421 set_prop_font_size_from_value (CRStyle * a_style, CRTerm * a_value) in set_prop_font_size_from_value() argument
1425 g_return_val_if_fail (a_style && a_value, CR_BAD_PARAM_ERROR); in set_prop_font_size_from_value()
1427 switch (a_value->type) { in set_prop_font_size_from_value()
1429 if (a_value->content.str in set_prop_font_size_from_value()
1430 && a_value->content.str->stryng in set_prop_font_size_from_value()
1431 && a_value->content.str->stryng->str in set_prop_font_size_from_value()
1432 && !strcmp (a_value->content.str->stryng->str, in set_prop_font_size_from_value()
1442 } else if (a_value->content.str in set_prop_font_size_from_value()
1443 && a_value->content.str->stryng in set_prop_font_size_from_value()
1444 && a_value->content.str->stryng->str in set_prop_font_size_from_value()
1445 && !strcmp (a_value->content.str->stryng->str, in set_prop_font_size_from_value()
1454 } else if (a_value->content.str in set_prop_font_size_from_value()
1455 && a_value->content.str->stryng in set_prop_font_size_from_value()
1456 && a_value->content.str->stryng->str in set_prop_font_size_from_value()
1457 && !strcmp (a_value->content.str->stryng->str, in set_prop_font_size_from_value()
1466 } else if (a_value->content.str in set_prop_font_size_from_value()
1467 && a_value->content.str->stryng in set_prop_font_size_from_value()
1468 && a_value->content.str->stryng->str in set_prop_font_size_from_value()
1469 && !strcmp (a_value->content.str->stryng->str, "medium")) { in set_prop_font_size_from_value()
1477 } else if (a_value->content.str in set_prop_font_size_from_value()
1478 && a_value->content.str->stryng in set_prop_font_size_from_value()
1479 && a_value->content.str->stryng->str in set_prop_font_size_from_value()
1480 && !strcmp (a_value->content.str->stryng->str, in set_prop_font_size_from_value()
1489 } else if (a_value->content.str in set_prop_font_size_from_value()
1490 && a_value->content.str->stryng in set_prop_font_size_from_value()
1491 && a_value->content.str->stryng->str in set_prop_font_size_from_value()
1492 && !strcmp (a_value->content.str->stryng->str, in set_prop_font_size_from_value()
1501 } else if (a_value->content.str in set_prop_font_size_from_value()
1502 && a_value->content.str->stryng in set_prop_font_size_from_value()
1503 && a_value->content.str->stryng->str in set_prop_font_size_from_value()
1504 && !strcmp (a_value->content.str->stryng->str, in set_prop_font_size_from_value()
1513 } else if (a_value->content.str in set_prop_font_size_from_value()
1514 && a_value->content.str->stryng in set_prop_font_size_from_value()
1515 && a_value->content.str->stryng->str in set_prop_font_size_from_value()
1516 && !strcmp (a_value->content.str->stryng->str, in set_prop_font_size_from_value()
1523 } else if (a_value->content.str in set_prop_font_size_from_value()
1524 && a_value->content.str->stryng in set_prop_font_size_from_value()
1525 && a_value->content.str->stryng->str in set_prop_font_size_from_value()
1526 && !strcmp (a_value->content.str->stryng->str, in set_prop_font_size_from_value()
1534 } else if (a_value->content.str in set_prop_font_size_from_value()
1535 && a_value->content.str->stryng in set_prop_font_size_from_value()
1536 && a_value->content.str->stryng->str in set_prop_font_size_from_value()
1537 && !strcmp (a_value->content.str->stryng->str, "inherit")) { in set_prop_font_size_from_value()
1550 if (a_value->content.num) { in set_prop_font_size_from_value()
1556 a_value->content.num) ; in set_prop_font_size_from_value()
1568 set_prop_font_style_from_value (CRStyle * a_style, CRTerm * a_value) in set_prop_font_style_from_value() argument
1572 g_return_val_if_fail (a_style && a_value, CR_BAD_PARAM_ERROR); in set_prop_font_style_from_value()
1574 switch (a_value->type) { in set_prop_font_style_from_value()
1576 if (a_value->content.str in set_prop_font_style_from_value()
1577 && a_value->content.str->stryng in set_prop_font_style_from_value()
1578 && a_value->content.str->stryng->str) { in set_prop_font_style_from_value()
1579 if (!strcmp (a_value->content.str->stryng->str, "normal")) { in set_prop_font_style_from_value()
1582 (a_value->content.str->stryng->str, in set_prop_font_style_from_value()
1586 (a_value->content.str->stryng->str, in set_prop_font_style_from_value()
1590 (a_value->content.str->stryng->str, in set_prop_font_style_from_value()
1608 set_prop_font_weight_from_value (CRStyle * a_style, CRTerm * a_value) in set_prop_font_weight_from_value() argument
1612 g_return_val_if_fail (a_style && a_value, CR_BAD_PARAM_ERROR); in set_prop_font_weight_from_value()
1614 switch (a_value->type) { in set_prop_font_weight_from_value()
1616 if (a_value->content.str in set_prop_font_weight_from_value()
1617 && a_value->content.str->stryng in set_prop_font_weight_from_value()
1618 && a_value->content.str->stryng->str) { in set_prop_font_weight_from_value()
1619 if (!strcmp (a_value->content.str->stryng->str, in set_prop_font_weight_from_value()
1622 } else if (!strcmp (a_value->content.str->stryng->str, in set_prop_font_weight_from_value()
1625 } else if (!strcmp (a_value->content.str->stryng->str, in set_prop_font_weight_from_value()
1628 } else if (!strcmp (a_value->content.str->stryng->str, in set_prop_font_weight_from_value()
1631 } else if (!strcmp (a_value->content.str->stryng->str, in set_prop_font_weight_from_value()
1643 if (a_value->content.num in set_prop_font_weight_from_value()
1644 && (a_value->content.num->type == NUM_GENERIC in set_prop_font_weight_from_value()
1645 || a_value->content.num->type == NUM_AUTO)) { in set_prop_font_weight_from_value()
1646 if (a_value->content.num->val <= 150) { in set_prop_font_weight_from_value()
1648 } else if (a_value->content.num->val <= 250) { in set_prop_font_weight_from_value()
1650 } else if (a_value->content.num->val <= 350) { in set_prop_font_weight_from_value()
1652 } else if (a_value->content.num->val <= 450) { in set_prop_font_weight_from_value()
1654 } else if (a_value->content.num->val <= 550) { in set_prop_font_weight_from_value()
1656 } else if (a_value->content.num->val <= 650) { in set_prop_font_weight_from_value()
1658 } else if (a_value->content.num->val <= 750) { in set_prop_font_weight_from_value()
1660 } else if (a_value->content.num->val <= 850) { in set_prop_font_weight_from_value()
1677 set_prop_white_space_from_value (CRStyle * a_style, CRTerm * a_value) in set_prop_white_space_from_value() argument
1681 g_return_val_if_fail (a_style && a_value, CR_BAD_PARAM_ERROR); in set_prop_white_space_from_value()
1683 switch (a_value->type) { in set_prop_white_space_from_value()
1685 if (a_value->content.str && a_value->content.str->stryng) { in set_prop_white_space_from_value()
1686 if (!strcmp (a_value->content.str->stryng->str, "normal")) { in set_prop_white_space_from_value()
1688 } else if (!strcmp (a_value->content.str->stryng->str, in set_prop_white_space_from_value()
1691 } else if (!strcmp (a_value->content.str->stryng->str, in set_prop_white_space_from_value()
1694 } else if (!strcmp (a_value->content.str->stryng->str, in set_prop_white_space_from_value()