Searched refs:style (Results 1 - 25 of 199) sorted by relevance

12345678

/inkscape/src/display/
H A Dnr-style.cpp12 #include "display/nr-style.h"
13 #include "style.h"
95 void NRStyle::set(SPStyle *style, SPStyle *context_style) argument
98 const SPIPaint *style_fill = &(style->fill);
115 SPPaintServer* server = style->getFillPaintServer();
136 fill.opacity = SP_SCALE24_TO_FLOAT(style->fill_opacity.value);
138 switch (style->fill_rule.computed) {
149 const SPIPaint *style_stroke = &(style->stroke);
165 SPPaintServer* server = style->getStrokePaintServer();
185 stroke.opacity = SP_SCALE24_TO_FLOAT(style
[all...]
/inkscape/src/
H A Ddesktop-style.cpp2 * Desktop style management
26 #include "style.h"
47 #include "desktop-style.h"
104 * Apply style on object and children, recursively.
109 // non-items should not have style
115 // 1. tspans with role=line are not regular objects in that they are not supposed to have style of their own,
117 // However, if the line tspan or textPath contains some style (old file?), we reluctantly set our style to it too.
119 // 2. Generally we allow setting style on clones, but when it's inside flowRegion, do not touch
130 && !o->getAttribute("style"))
521 SPStyle *style = obj->style; local
705 SPStyle *style = obj->style; local
765 SPStyle *style = obj->style; local
835 SPStyle *style = obj->style; local
893 SPStyle *style = obj->style; local
944 SPStyle *style = obj->style; local
996 SPStyle *style = obj->style; local
1068 SPStyle *style = obj->style; local
1240 SPStyle *style = obj->style; local
1310 SPStyle *style = obj->style; local
1385 SPStyle *style = obj->style; local
1437 SPStyle *style = obj->style; local
1504 SPStyle *style = obj->style; local
1593 SPStyle *style = obj->style; local
1649 SPStyle *style = obj->style; local
1704 SPStyle *style = obj->style; local
1794 SPStyle *style = obj->style; local
1858 sp_desktop_query_style_from_list(const std::vector<SPItem*> &list, SPStyle *style, int property) argument
1910 sp_desktop_query_style(SPDesktop *desktop, SPStyle *style, int property) argument
[all...]
H A Dsp-string.cpp26 #include "style.h"
85 // Strings don't have style, check parent for style
86 if( object->parent && object->parent->style ) {
87 if( object->parent->style->white_space.computed == SP_CSS_WHITE_SPACE_PRE ||
88 object->parent->style->white_space.computed == SP_CSS_WHITE_SPACE_PREWRAP ||
89 object->parent->style->white_space.computed == SP_CSS_WHITE_SPACE_PRELINE ) {
92 if( object->parent->style->white_space.computed == SP_CSS_WHITE_SPACE_PRE ||
93 object->parent->style->white_space.computed == SP_CSS_WHITE_SPACE_PREWRAP ) {
96 if( object->parent->style
[all...]
H A Dprint.h38 unsigned int sp_print_fill(SPPrintContext *ctx, Geom::PathVector const &pathv, Geom::Affine const &ctm, SPStyle const *style,
40 unsigned int sp_print_stroke(SPPrintContext *ctx, Geom::PathVector const &pathv, Geom::Affine const &ctm, SPStyle const *style,
45 Geom::Affine const &transform, SPStyle const *style);
48 SPStyle const *style);
63 c-file-style:"stroustrup"
H A Dstyle.cpp46 #include "style.h"
77 void sp_style_filter_ref_changed(SPObject *old_ref, SPObject *ref, SPStyle *style);
78 void sp_style_fill_paint_server_ref_changed(SPObject *old_ref, SPObject *ref, SPStyle *style);
79 void sp_style_stroke_paint_server_ref_changed(SPObject *old_ref, SPObject *ref, SPStyle *style);
81 static void sp_style_object_release(SPObject *object, SPStyle *style);
111 font_style( "font-style", enum_font_style, SP_CSS_FONT_STYLE_NORMAL ),
564 // Matches void sp_style_read(SPStyle *style, SPObject *object, Inkscape::XML::Node *repr)
576 // std::cout << " Creating temp style for testing" << std::endl;
589 gchar const *val = repr->attribute("style");
599 // std::cerr << "SPStyle::read: No object! Can not read style shee
1287 sp_style_object_release(SPObject *object, SPStyle *style) argument
1298 sp_style_filter_ref_modified(SPObject *obj, guint flags, SPStyle *style) argument
1315 sp_style_filter_ref_changed(SPObject *old_ref, SPObject *ref, SPStyle *style) argument
1336 sp_style_paint_server_ref_modified(SPObject *obj, guint flags, SPStyle *style) argument
1371 sp_style_fill_paint_server_ref_changed(SPObject *old_ref, SPObject *ref, SPStyle *style) argument
1389 sp_style_stroke_paint_server_ref_changed(SPObject *old_ref, SPObject *ref, SPStyle *style) argument
1408 sp_style_ref(SPStyle *style) argument
1422 sp_style_unref(SPStyle *style) argument
1461 sp_style_set_ipaint_to_uri(SPStyle *style, SPIPaint *paint, const Inkscape::URI *uri, SPDocument *document) argument
1491 sp_style_set_ipaint_to_uri_string(SPStyle *style, SPIPaint *paint, const gchar *uri) argument
1503 sp_style_set_to_uri_string(SPStyle *style, bool isfill, const gchar *uri) argument
1613 SPStyle *style = o->style; local
1738 sp_css_attr_from_style(SPStyle const *const style, guint const flags) argument
[all...]
H A Dprint.cpp50 sp_print_fill(SPPrintContext *ctx, Geom::PathVector const &pathv, Geom::Affine const &ctm, SPStyle const *style, argument
53 return ctx->module->fill(pathv, ctm, style, pbox, dbox, bbox);
57 sp_print_stroke(SPPrintContext *ctx, Geom::PathVector const &pathv, Geom::Affine const &ctm, SPStyle const *style, argument
60 return ctx->module->stroke(pathv, ctm, style, pbox, dbox, bbox);
66 Geom::Affine const &transform, SPStyle const *style)
68 return ctx->module->image(px, w, h, rs, transform, style);
72 SPStyle const *style)
74 return ctx->module->text(text, p, style);
131 c-file-style:"stroustrup"
64 sp_print_image_R8G8B8A8_N(SPPrintContext *ctx, guchar *px, unsigned int w, unsigned int h, unsigned int rs, Geom::Affine const &transform, SPStyle const *style) argument
71 sp_print_text(SPPrintContext *ctx, char const *text, Geom::Point p, SPStyle const *style) argument
H A Dsp-solid-color.cpp16 #include "style.h"
20 #include "style-internal.h"
35 this->readAttr( "style" );
47 style->readFromObject( this );
70 SPIColor *c = &(this->style->solid_color);
71 cairo_pattern_t *cp = cairo_pattern_create_rgba ( c->value.color.v.c[0], c->value.color.v.c[1], c->value.color.v.c[2], SP_SCALE24_TO_FLOAT(this->style->solid_opacity.value) * opacity );
84 c-file-style:"stroustrup"
/inkscape/src/extension/
H A Dprint.cpp79 Print::fill (Geom::PathVector const &pathv, Geom::Affine const &ctm, SPStyle const *style, argument
82 return imp->fill (this, pathv, ctm, style, pbox, dbox, bbox);
86 Print::stroke (Geom::PathVector const &pathv, Geom::Affine const &ctm, SPStyle const *style, argument
89 return imp->stroke (this, pathv, ctm, style, pbox, dbox, bbox);
94 const Geom::Affine &transform, const SPStyle *style)
96 return imp->image (this, px, w, h, rs, transform, style);
100 Print::text (char const *text, Geom::Point const &p, SPStyle const *style) argument
102 return imp->text (this, text, p, style);
123 c-file-style:"stroustrup"
93 image(unsigned char *px, unsigned int w, unsigned int h, unsigned int rs, const Geom::Affine &transform, const SPStyle *style) argument
H A Dprint.h53 SPStyle const *style,
59 SPStyle const *style,
68 SPStyle const *style);
71 SPStyle const *style);
82 c-file-style:"stroustrup"
/inkscape/src/live_effects/
H A Dlpe-jointype.cpp14 #include "style.h"
18 #include "desktop-style.h"
89 double width = (lpeitem && lpeitem->style) ? lpeitem->style->stroke_width.computed : 1.;
92 if (lpeitem->style->stroke.isPaintserver()) {
93 SPPaintServer * server = lpeitem->style->getStrokePaintServer();
101 } else if (lpeitem->style->stroke.isColor()) {
103 sp_svg_write_color (c, sizeof(c), lpeitem->style->stroke.value.color.toRGBA32(SP_SCALE24_TO_FLOAT(lpeitem->style->stroke_opacity.value)));
128 if (lpeitem->style
[all...]
/inkscape/src/extension/internal/
H A Dwmf-print.h49 Geom::Affine const &ctm, SPStyle const *style,
54 Geom::Affine const &ctm, SPStyle const *style,
63 SPStyle const *style);
66 Geom::Point const &p, SPStyle const *style);
72 int create_brush(SPStyle const *style, PU_COLORREF fcolor);
74 int create_pen(SPStyle const *style, const Geom::Affine &transform);
88 c-file-style:"stroustrup"
H A Demf-print.h49 Geom::Affine const &ctm, SPStyle const *style,
54 Geom::Affine const &ctm, SPStyle const *style,
63 SPStyle const *style);
66 Geom::Point const &p, SPStyle const *style);
72 void do_clip_if_present(SPStyle const *style);
81 int create_brush(SPStyle const *style, PU_COLORREF fcolor);
83 int create_pen(SPStyle const *style, const Geom::Affine &transform);
97 c-file-style:"stroustrup"
H A Dcairo-renderer.cpp44 #include "style.h"
159 static void sp_shape_render_invoke_marker_rendering(SPMarker* marker, Geom::Affine tr, SPStyle* style, CairoRenderContext *ctx) argument
163 if (style->stroke_width.computed > 1e-9) {
164 tr = Geom::Scale(style->stroke_width.computed) * tr;
190 SPStyle* style = shape->style; local
197 if (style->paint_order.layer[0] == SP_CSS_PAINT_ORDER_NORMAL ||
198 (style->paint_order.layer[0] == SP_CSS_PAINT_ORDER_FILL &&
199 style->paint_order.layer[1] == SP_CSS_PAINT_ORDER_STROKE)) {
200 ctx->renderPathVector(pathv, style, pbo
544 SPStyle* style = item->style; local
602 SPStyle const *style = item->style; local
[all...]
H A Dcairo-render-context.cpp41 #include "style.h"
172 void CairoRenderContext::setStateForStyle(SPStyle const *style) argument
175 _state->opacity = SP_SCALE24_TO_FLOAT(style->opacity.value);
176 _state->has_overflow = (style->overflow.set && style->overflow.value != SP_CSS_OVERFLOW_VISIBLE);
177 _state->has_filtereffect = (style->filter.set != 0) ? TRUE : FALSE;
179 if (style->fill.isPaintserver() || style->stroke.isPaintserver())
184 && !style->fill.isNone()
185 && !style
1322 _setFillStyle(SPStyle const *const style, Geom::OptRect const &pbox) argument
1361 _setStrokeStyle(SPStyle const *style, Geom::OptRect const &pbox) argument
1460 renderPathVector(Geom::PathVector const & pathv, SPStyle const *style, Geom::OptRect const &pbox, CairoPaintOrder order) argument
1540 renderImage(Inkscape::Pixbuf *pb, Geom::Affine const &image_transform, SPStyle const *style) argument
1650 renderGlyphtext(PangoFont *font, Geom::Affine const &font_matrix, std::vector<CairoGlyphInfo> const &glyphtext, SPStyle const *style) argument
[all...]
H A Dlatex-pstricks.cpp31 #include "style.h"
181 Geom::PathVector const &pathv, Geom::Affine const &transform, SPStyle const *style,
188 if (style->fill.isColor()) {
195 fill_opacity=SP_SCALE24_TO_FLOAT(style->fill_opacity.value);
196 sp_color_get_rgb_floatv(&style->fill.value.color, rgb);
216 Geom::PathVector const &pathv, Geom::Affine const &transform, SPStyle const *style,
223 if (style->stroke.isColor()) {
231 stroke_opacity=SP_SCALE24_TO_FLOAT(style->stroke_opacity.value);
232 sp_color_get_rgb_floatv(&style->stroke.value.color, rgb);
235 os << "\\pscustom[linewidth=" << style
180 fill(Inkscape::Extension::Print * , Geom::PathVector const &pathv, Geom::Affine const &transform, SPStyle const *style, Geom::OptRect const & , Geom::OptRect const & , Geom::OptRect const & ) argument
215 stroke(Inkscape::Extension::Print * , Geom::PathVector const &pathv, Geom::Affine const &transform, SPStyle const *style, Geom::OptRect const & , Geom::OptRect const & , Geom::OptRect const & ) argument
[all...]
/inkscape/share/extensions/
H A Dprint_win32_vector.py59 style = node.get('style')
60 if style:
61 style = simplestyle.parseStyle(style)
62 if style.has_key('stroke'):
63 if style['stroke'] and style['stroke'] != 'none' and style['stroke'][0:3] != 'url':
64 rgb = simplestyle.parseColor(style['strok
[all...]
H A Dreplace_font.py46 def set_font(node, new_font, style=None):
48 Sets the font attribute in the style attribute of node, using the
49 font name stored in new_font. If the style dict is open already,
55 if not style:
56 style = get_style(node)
57 if style:
59 if att in style:
60 style[att] = new_font
61 set_style(node, style)
73 style
[all...]
H A Dconvert2dashes.py58 style = simplestyle.parseStyle(node.get('style'))
59 if style.has_key('stroke-dasharray'):
60 if style['stroke-dasharray'].find(',') > 0:
61 dashes = [float (dash) for dash in style['stroke-dasharray'].split(',')]
62 if style.has_key('stroke-dashoffset'):
63 offset = style['stroke-dashoffset']
95 del style['stroke-dasharray']
96 node.set('style', simplestyle.formatStyle(style))
[all...]
H A Dmarkers_strokepaint.py81 style = simplestyle.parseStyle(node.get('style'))
83 inkex.errormsg(_("No style attribute found for id: %s") % id)
88 temp_stroke = style.get('stroke', '#000000')
89 temp_fill = style.get('fill', '#000000')
97 temp_stroke_opacity = style.get('stroke-opacity', '1')
98 temp_fill_opacity = style.get('fill-opacity', '1')
127 if style.has_key(mprop) and style[mprop] != 'none'and style[mpro
[all...]
/inkscape/src/trace/
H A Dtrace.h52 style(theStyle),
75 { return style; }
93 style = other.style;
98 std::string style; member in class:Inkscape::Trace::TracingEngineResult
132 * return a style attribute and the path data that is
/inkscape/src/libnrtype/
H A DLayout-TNG-Input.cpp22 #include "style.h"
43 void Layout::appendText(Glib::ustring const &text, SPStyle *style, void *source_cookie, OptionalTextTagAttrs const *optional_attributes, unsigned optional_attributes_offset, Glib::ustring::const_iterator text_begin, Glib::ustring::const_iterator text_end) argument
45 if (style == NULL) return;
53 new_source->style = style;
54 sp_style_ref(style);
131 switch( style->writing_mode.computed ) {
151 return ((SPCSSTextOrientation)style->text_orientation.computed);
156 return ((SPCSSBaseline)style->dominant_baseline.computed);
172 return text_anchor_to_alignment(style
[all...]
/inkscape/src/ui/
H A Dpreviewable.h44 virtual Gtk::Widget* getPreview( PreviewStyle style, ViewType view, ::PreviewSize size, guint ratio, guint border) = 0;
57 c-file-style:"stroustrup"
/inkscape/share/extensions/ink2canvas/
H A Dsvg.py73 style = simplestyle.parseStyle(self.attr("style"))
75 style = dict([(str.strip(k), str.strip(v)) for k,v in style.items()])
76 return style
78 def set_style(self, style):
79 """Translates style properties names into method calls"""
80 self.ctx.style = style
81 for key in style
[all...]
H A Dcanvas.py28 self.style = {}
29 self.styleCache = {} #stores the previous style applied
56 def equalStyle(self, style, key):
57 """Checks if the last style used is the same or there's no style yet"""
60 if key not in style:
62 return style[key] == self.styleCache[key]
91 style = simplestyle.parseStyle(stop.get("style"))
92 stop_color = style["sto
[all...]
/inkscape/share/extensions/Barcode/
H A DBase.py99 barcode.set('style', 'fill: black;')
112 # Datum 0 tells us what style of bar is to come next
113 style = self.get_style(int(datum[0]))
115 # style tells us how wide a unit is
116 width = int(datum[1]) * int(style['width'])
118 if style['write']:
119 tops.add(style['top'])
122 rect.set('y', str(style['top']))
124 rect.set('y', str(style['top'] + self.font_size))
127 rect.set('height', str(style['heigh
[all...]

Completed in 1353 milliseconds

12345678