search for: cairo_set_line_width

Displaying 9 results from an estimated 9 matches for "cairo_set_line_width".

2006 Nov 12
1
[PATCH] Annotate shapes, text and dbus support
...e ex1, ey1, ex2, ey2; + cairo_set_source_rgba (cr, + (double) fillColor[0] / 0xffff, + (double) fillColor[1] / 0xffff, + (double) fillColor[2] / 0xffff, + (double) fillColor[3] / 0xffff); + cairo_arc (cr, xc, yc, radius, 0, 2*M_PI); + cairo_fill_preserve (cr); + cairo_set_line_width (cr, strokeWidth); + cairo_stroke_extents (cr, &ex1, &ey1, &ex2, &ey2); + cairo_set_source_rgba (cr, + (double) strokeColor[0] / 0xffff, + (double) strokeColor[1] / 0xffff, + (double) strokeColor[2] / 0xffff, + (double) strokeColor[3] / 0xffff); +...
2007 Oct 27
1
libswfdec/swfdec_text_field_movie.c
libswfdec/swfdec_text_field_movie.c | 2 ++ 1 file changed, 2 insertions(+) New commits: commit 27e0f570ff653063b78efc89a604236e7fe03ece Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Sat Oct 27 17:14:06 2007 +0300 Init TextField's native properties when TextField is created from a tag diff --git a/libswfdec/swfdec_text_field_movie.c
2007 Oct 23
0
9 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h
...eld_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -611,7 +611,7 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr, movie->original_extents.y1); color = swfdec_color_apply_transform (text_movie->border_color, trans); swfdec_color_set_source (cr, color); - cairo_set_line_width (cr, 20.0); // FIXME: Is this correct? + cairo_set_line_width (cr, SWFDEC_DOUBLE_TO_TWIPS (1)); cairo_stroke (cr); } commit c7c15478f857113ff9dcf28a5f976f4583d4ec40 Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Mon Oct 22 22:36:17 2007 +0300 Fix TextField's bac...
2007 Oct 17
0
libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie.c
...r) { - cairo_rectangle (cr, SWFDEC_GRAPHIC (text)->extents.x0, - SWFDEC_GRAPHIC (text)->extents.y0, SWFDEC_GRAPHIC (text)->extents.x1, - SWFDEC_GRAPHIC (text)->extents.y1); - color = swfdec_color_apply_transform (border_color, trans); - swfdec_color_set_source (cr, color); - cairo_set_line_width (cr, 20.0); // FIXME: Is this correct? - cairo_stroke (cr); - } - - layouts = swfdec_text_field_generate_layouts (text, cr, paragraphs, trans, - inval, NULL); - - first = TRUE; - linenum = 0; - x = SWFDEC_GRAPHIC (text)->extents.x0; - y = SWFDEC_GRAPHIC (text)->extents.y0 + 1; -...
2007 Nov 01
0
2 commits - libswfdec/swfdec_text_field_movie.c test/image
...movie->original_extents.y0 - SWFDEC_DOUBLE_TO_TWIPS (1)); color = swfdec_color_apply_transform (text_movie->border_color, trans); - swfdec_color_set_source (cr, color); + // always use full alpha + swfdec_color_set_source (cr, (color & 0xffffff) + (255 << 24)); cairo_set_line_width (cr, SWFDEC_DOUBLE_TO_TWIPS (1)); cairo_set_operator (cr, CAIRO_OPERATOR_OVER); cairo_set_antialias (cr, CAIRO_ANTIALIAS_NONE);
2007 Nov 01
0
5 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_text_field_movie.c test/image
..._extents.x1 - + movie->original_extents.x0 - SWFDEC_DOUBLE_TO_TWIPS (1), + movie->original_extents.y1 - movie->original_extents.y0 - + SWFDEC_DOUBLE_TO_TWIPS (1)); color = swfdec_color_apply_transform (text_movie->border_color, trans); swfdec_color_set_source (cr, color); cairo_set_line_width (cr, SWFDEC_DOUBLE_TO_TWIPS (1)); + cairo_set_operator (cr, CAIRO_OPERATOR_OVER); + cairo_set_antialias (cr, CAIRO_ANTIALIAS_NONE); cairo_stroke (cr); } commit cd7ef475d2811b1283cc9a8a2ce0d2a0dd086981 Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Thu Nov 1 20:50:00 2...
2007 Apr 13
0
5 commits - libswfdec/Makefile.am libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_font.c libswfdec/swfdec_loadertarget.c libswfdec/swfdec_movie.h libswfdec/swfdec_pattern.c libswfdec/swfdec_pattern.h libswfdec/swfdec_player.c
...width = stroke->start_width; - } else if (ratio == 65535) { - width = stroke->end_width; - } else { - width = (stroke->start_width * (65535 - ratio) + stroke->end_width * ratio) / 65535; - } - if (width < SWFDEC_TWIPS_SCALE_FACTOR) - width = SWFDEC_TWIPS_SCALE_FACTOR; - cairo_set_line_width (cr, width); - cairo_stroke (cr); -} - -static void -swfdec_stroke_pattern_class_init (SwfdecStrokePatternClass *klass) -{ - SWFDEC_PATTERN_CLASS (klass)->paint = swfdec_stroke_pattern_paint; -} - -static void -swfdec_stroke_pattern_init (SwfdecStrokePattern *pattern) -{ -} - /*** COLOR PATTE...
2007 Aug 29
0
15 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_system_as.c
...expose_event (gtkwidget, event)) - return TRUE; - - cr = gdk_cairo_create (gtkwidget->window); - - cairo_arc (cr, debug->x, debug->y, RADIUS - 1.5, 0.0, 2 * G_PI); - if (debug->button) { - cairo_set_source_rgba (cr, 0.25, 0.25, 0.25, 0.5); - cairo_fill_preserve (cr); - } - cairo_set_line_width (cr, 3); - cairo_set_source_rgb (cr, 1.0, 1.0, 1.0); - cairo_stroke_preserve (cr); - cairo_set_line_width (cr, 1); - cairo_set_source_rgb (cr, 0.0, 0.0, 0.0); - cairo_stroke (cr); - cairo_destroy (cr); - - return FALSE; -} - -static void -swfdec_debug_widget_dispose (GObject *object) -{ - /...
2010 Jul 20
1
Building rattle on Solaris 10u7 X86
...fined symbol: gc "cairoDevice.c", line 632: left operand of "->" must be pointer to struct/union "cairoDevice.c", line 633: left operand of "->" must be pointer to struct/union "cairoDevice.c", line 635: warning: implicit function declaration: cairo_set_line_width "cairoDevice.c", line 635: undefined symbol: cr "cairoDevice.c", line 635: undefined symbol: gc "cairoDevice.c", line 635: left operand of "->" must be pointer to struct/union "cairoDevice.c", line 637: left operand of "->" must be p...