Lines Matching defs:style_res

491  * Write to style_res the average fill or stroke of list of objects, if applicable.
494 objects_query_fillstroke (const std::vector<SPItem*> &objects, SPStyle *style_res, bool const isfill)
501 SPIPaint *paint_res = isfill? &style_res->fill : &style_res->stroke;
545 SPPaintServer *server_res = isfill ? style_res->getFillPaintServer() : style_res->getStrokePaintServer();
632 sp_style_set_to_uri_string (style_res, true, string);
635 sp_style_set_to_uri_string (style_res, false, string);
640 style_res->fill_rule.computed = style->fill_rule.computed; // no averaging on this, just use the last one
653 style_res->fill_opacity.value = SP_SCALE24_FROM_FLOAT (c[3]);
655 style_res->stroke_opacity.value = SP_SCALE24_FROM_FLOAT (c[3]);
684 * Write to style_res the average opacity of a list of objects.
687 objects_query_opacity (const std::vector<SPItem*> &objects, SPStyle *style_res)
722 style_res->opacity.value = SP_SCALE24_FROM_FLOAT(opacity_sum);
738 * Write to style_res the average stroke width of a list of objects.
741 objects_query_strokewidth (const std::vector<SPItem*> &objects, SPStyle *style_res)
797 style_res->stroke_width.computed = avgwidth;
798 style_res->stroke_width.set = true;
799 style_res->stroke.noneSet = noneSet; // Will only be true if none of the selected objects has it's stroke set.
814 * Write to style_res the average miter limit of a list of objects.
817 objects_query_miterlimit (const std::vector<SPItem*> &objects, SPStyle *style_res)
858 style_res->stroke_miterlimit.value = avgml;
859 style_res->stroke_miterlimit.set = true;
874 * Write to style_res the stroke cap of a list of objects.
877 objects_query_strokecap (const std::vector<SPItem*> &objects, SPStyle *style_res)
909 style_res->stroke_linecap.value = prev_cap;
910 style_res->stroke_linecap.set = true;
925 * Write to style_res the stroke join of a list of objects.
928 objects_query_strokejoin (const std::vector<SPItem*> &objects, SPStyle *style_res)
961 style_res->stroke_linejoin.value = prev_join;
962 style_res->stroke_linejoin.set = true;
977 * Write to style_res the paint order of a list of objects.
980 objects_query_paintorder (const std::vector<SPItem*> &objects, SPStyle *style_res)
1016 g_free( style_res->paint_order.value );
1017 style_res->paint_order.value= g_strdup( prev_order.c_str() );
1018 style_res->paint_order.set = true;
1033 * Write to style_res the average font size and spacing of objects.
1036 objects_query_fontnumbers (const std::vector<SPItem*> &objects, SPStyle *style_res)
1158 style_res->text_anchor.computed = style->text_anchor.computed;
1159 style_res->writing_mode.computed = style->writing_mode.computed;
1174 style_res->font_size.computed = size;
1175 style_res->font_size.type = SP_FONT_SIZE_LENGTH;
1177 style_res->letter_spacing.normal = letterspacing_normal;
1178 style_res->letter_spacing.computed = letterspacing;
1180 style_res->word_spacing.normal = wordspacing_normal;
1181 style_res->word_spacing.computed = wordspacing;
1183 style_res->line_height.normal = lineheight_normal;
1184 style_res->line_height.computed = lineheight;
1185 style_res->line_height.value = lineheight;
1189 style_res->line_height.unit = SP_CSS_UNIT_PX;
1192 style_res->line_height.unit = SP_CSS_UNIT_PERCENT;
1196 style_res->line_height.computed = Inkscape::Text::Layout::LINE_HEIGHT_NORMAL * 100.0;
1197 style_res->line_height.value = Inkscape::Text::Layout::LINE_HEIGHT_NORMAL * 100.0;
1202 style_res->line_height.unit = lineheight_unit_prev;
1205 style_res->line_height.unit = SP_CSS_UNIT_NONE;
1206 style_res->line_height.computed = Inkscape::Text::Layout::LINE_HEIGHT_NORMAL;
1207 style_res->line_height.value = Inkscape::Text::Layout::LINE_HEIGHT_NORMAL;
1223 * Write to style_res the average font style of objects.
1226 objects_query_fontstyle (const std::vector<SPItem*> &objects, SPStyle *style_res)
1248 ( ( style_res->font_weight.computed != style->font_weight.computed ) ||
1249 ( style_res->font_style.computed != style->font_style.computed ) ||
1250 ( style_res->font_stretch.computed != style->font_stretch.computed ) ||
1251 ( style_res->font_variant.computed != style->font_variant.computed ) ) ) {
1256 style_res->font_weight.value = style_res->font_weight.computed = style->font_weight.computed;
1257 style_res->font_style.value = style_res->font_style.computed = style->font_style.computed;
1258 style_res->font_stretch.value = style_res->font_stretch.computed = style->font_stretch.computed;
1259 style_res->font_variant.value = style_res->font_variant.computed = style->font_variant.computed;
1260 style_res->text_align.value = style_res->text_align.computed = style->text_align.computed;
1261 style_res->font_size.value = style->font_size.value;
1262 style_res->font_size.unit = style->font_size.unit;
1280 objects_query_fontvariants (const std::vector<SPItem*> &objects, SPStyle *style_res)
1286 SPILigatures* ligatures_res = &(style_res->font_variant_ligatures);
1287 SPIEnum* position_res = &(style_res->font_variant_position);
1288 SPIEnum* caps_res = &(style_res->font_variant_caps);
1289 SPINumeric* numeric_res = &(style_res->font_variant_numeric);
1347 bool different = (style_res->font_variant_ligatures.value != 0 ||
1348 style_res->font_variant_position.value != 0 ||
1349 style_res->font_variant_caps.value != 0 ||
1350 style_res->font_variant_numeric.value != 0 );
1368 * Write to style_res the average writing modes style of objects.
1371 objects_query_writing_modes (const std::vector<SPItem*> &objects, SPStyle *style_res)
1393 ( ( style_res->writing_mode.computed != style->writing_mode.computed ) ||
1394 ( style_res->text_orientation.computed != style->text_orientation.computed ) ) ) {
1399 style_res->writing_mode.computed = style->writing_mode.computed;
1400 style_res->text_orientation.computed = style->text_orientation.computed;
1418 objects_query_fontfeaturesettings (const std::vector<SPItem*> &objects, SPStyle *style_res)
1423 if (style_res->font_feature_settings.value) {
1424 g_free(style_res->font_feature_settings.value);
1425 style_res->font_feature_settings.value = NULL;
1427 style_res->font_feature_settings.set = FALSE;
1444 if (style_res->font_feature_settings.value && style->font_feature_settings.value &&
1445 strcmp (style_res->font_feature_settings.value, style->font_feature_settings.value)) {
1449 if (style_res->font_feature_settings.value) {
1450 g_free(style_res->font_feature_settings.value);
1451 style_res->font_feature_settings.value = NULL;
1454 style_res->font_feature_settings.set = true;
1455 style_res->font_feature_settings.value = g_strdup(style->font_feature_settings.value);
1458 if (texts == 0 || !style_res->font_feature_settings.set) {
1475 * Write to style_res the baseline numbers.
1478 objects_query_baselines (const std::vector<SPItem*> &objects, SPStyle *style_res)
1545 style_res->baseline_shift.set = false;
1546 style_res->baseline_shift.computed = 0.0;
1548 style_res->baseline_shift.set = old.set;
1549 style_res->baseline_shift.inherit = old.inherit;
1550 style_res->baseline_shift.type = old.type;
1551 style_res->baseline_shift.literal = old.literal;
1552 style_res->baseline_shift.value = old.value;
1553 style_res->baseline_shift.computed = old.computed;
1571 * Write to style_res the average font family of objects.
1574 objects_query_fontfamily (const std::vector<SPItem*> &objects, SPStyle *style_res)
1579 if (style_res->font_family.value) {
1580 g_free(style_res->font_family.value);
1581 style_res->font_family.value = NULL;
1583 style_res->font_family.set = FALSE;
1600 if (style_res->font_family.value && style->font_family.value &&
1601 strcmp (style_res->font_family.value, style->font_family.value)) {
1605 if (style_res->font_family.value) {
1606 g_free(style_res->font_family.value);
1607 style_res->font_family.value = NULL;
1610 style_res->font_family.set = true;
1611 style_res->font_family.value = g_strdup(style->font_family.value);
1614 if (texts == 0 || !style_res->font_family.set) {
1630 objects_query_fontspecification (const std::vector<SPItem*> &objects, SPStyle *style_res)
1635 if (style_res->font_specification.value) {
1636 g_free(style_res->font_specification.value);
1637 style_res->font_specification.value = NULL;
1639 style_res->font_specification.set = FALSE;
1656 if (style_res->font_specification.value && style_res->font_specification.set &&
1658 strcmp (style_res->font_specification.value, style->font_specification.value)) {
1664 if (style_res->font_specification.value) {
1665 g_free(style_res->font_specification.value);
1666 style_res->font_specification.value = NULL;
1669 style_res->font_specification.set = true;
1670 style_res->font_specification.value = g_strdup(style->font_specification.value);
1690 objects_query_blend (const std::vector<SPItem*> &objects, SPStyle *style_res)
1757 style_res->filter_blend_mode.value = blend;
1773 * Write to style_res the average blurring of a list of objects.
1776 objects_query_blur (const std::vector<SPItem*> &objects, SPStyle *style_res)
1838 style_res->filter_gaussianBlur_deviation.value = blur_sum;