Displaying 12 results from an estimated 12 matches for "cairo_rectangl".
Did you mean:
cairo_rectangle
2007 Oct 17
0
libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie.c
...st;
-
- g_return_if_fail (SWFDEC_IS_TEXT_FIELD (text));
- g_return_if_fail (cr != NULL);
- g_return_if_fail (paragraphs != NULL);
- g_return_if_fail (trans != NULL);
- g_return_if_fail (inval != NULL);
-
- swfdec_rect_intersect (&limit, &SWFDEC_GRAPHIC (text)->extents, inval);
-
- cairo_rectangle (cr, limit.x0, limit.y0, limit.x1, limit.y1);
- cairo_clip (cr);
-
- if (text->background) {
- cairo_rectangle (cr, limit.x0, limit.y0, limit.x1, limit.y1);
- color = swfdec_color_apply_transform (background_color, trans);
- swfdec_color_set_source (cr, color);
- cairo_fill (cr);...
2007 Nov 01
0
5 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_text_field_movie.c test/image
...e.c b/libswfdec/swfdec_text_field_movie.c
index 5d499b2..2780b7e 100644
--- a/libswfdec/swfdec_text_field_movie.c
+++ b/libswfdec/swfdec_text_field_movie.c
@@ -591,19 +591,23 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
cairo_clip (cr);
if (text->background) {
- cairo_rectangle (cr, limit.x0, limit.y0, limit.x1, limit.y1);
+ cairo_rectangle (cr, limit.x0, limit.y0, limit.x1 - limit.x0, limit.y1 - limit.y0);
color = swfdec_color_apply_transform (text_movie->background_color, trans);
swfdec_color_set_source (cr, color);
cairo_fill (cr);
}
if (t...
2007 Oct 14
1
libswfdec/swfdec_text_field.c
libswfdec/swfdec_text_field.c | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
New commits:
commit 13a1f11d9aebddc8d2e24c94878547589c485832
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Sun Oct 14 18:22:17 2007 +0300
Implement aligning TextField lines even when wordWrap is off
diff --git a/libswfdec/swfdec_text_field.c
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 14
0
10 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...il (cr != NULL);
@@ -261,10 +262,10 @@ swfdec_text_field_render (SwfdecTextField *text, cairo_t *cr,
g_return_if_fail (trans != NULL);
g_return_if_fail (inval != NULL);
+ swfdec_rect_intersect (&limit, &SWFDEC_GRAPHIC (text)->extents, inval);
+
if (text->background) {
- cairo_rectangle (cr, SWFDEC_GRAPHIC (text)->extents.x0,
- SWFDEC_GRAPHIC (text)->extents.y0, SWFDEC_GRAPHIC (text)->extents.x1,
- SWFDEC_GRAPHIC (text)->extents.y1);
+ cairo_rectangle (cr, limit.x0, limit.y0, limit.x1, limit.y1);
color = swfdec_color_apply_transform (background_color, trans);...
2007 Nov 01
0
2 commits - libswfdec/swfdec_text_field_movie.c test/image
...c/swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c
index 2780b7e..979580e 100644
--- a/libswfdec/swfdec_text_field_movie.c
+++ b/libswfdec/swfdec_text_field_movie.c
@@ -593,7 +593,8 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
if (text->background) {
cairo_rectangle (cr, limit.x0, limit.y0, limit.x1 - limit.x0, limit.y1 - limit.y0);
color = swfdec_color_apply_transform (text_movie->background_color, trans);
- swfdec_color_set_source (cr, color);
+ // always use full alpha
+ swfdec_color_set_source (cr, (color & 0xffffff) + (255 << 2...
2007 Feb 17
0
2 commits - doc/swfdec-sections.txt libswfdec/swfdec_color.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...ayer->cache = swfdec_cache_new (50 * 1024 * 1024); /* 100 MB */
+ player->bgcolor = SWFDEC_COLOR_COMBINE (0xFF, 0xFF, 0xFF, 0xFF);
player->mouse_visible = TRUE;
player->mouse_cursor = SWFDEC_MOUSE_CURSOR_NORMAL;
@@ -1154,14 +1164,8 @@ swfdec_player_render (SwfdecPlayer *play
cairo_rectangle (cr, x, y, width, height);
cairo_clip (cr);
cairo_scale (cr, 1.0 / SWFDEC_TWIPS_SCALE_FACTOR, 1.0 / SWFDEC_TWIPS_SCALE_FACTOR);
- /* FIXME: find a nicer way to render the background */
- if (player->roots == NULL ||
- !SWFDEC_IS_SPRITE_MOVIE (player->roots->data) ||
- !s...
2006 Nov 12
1
[PATCH] Annotate shapes, text and dbus support
...(s);
+
+ cr = annoCairoContext (s);
+
+ if (cr)
+ {
+
+ double 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_rectangle (cr, x, y, w, h);
+ 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) st...
2010 Jul 20
1
Building rattle on Solaris 10u7 X86
...ine 686: warning: undefined or missing type for: double
"cairoDevice.c", line 686: warning: undefined or missing type for: double
"cairoDevice.c", line 687: warning: undefined or missing type for: const
"cairoDevice.c", line 689: warning: implicit function declaration:
cairo_rectangle
"cairoDevice.c", line 689: undefined symbol: cr
"cairoDevice.c", line 689: undefined symbol: x0
"cairoDevice.c", line 689: undefined symbol: x1
"cairoDevice.c", line 689: warning: pointer to void or function used in
arithmetic
"cairoDevice.c", line...
2007 Mar 02
0
12 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js.h libswfdec/swfdec_js_video.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h
...- surface = movie->input->get_image (movie->input);
cairo_scale (cr, SWFDEC_TWIPS_SCALE_FACTOR, SWFDEC_TWIPS_SCALE_FACTOR);
- if (surface != NULL) {
- cairo_set_source_surface (cr, surface, 0.0, 0.0);
- cairo_paint (cr);
- } else {
- cairo_set_source_rgb (cr, 0, 0, 0);
- cairo_rectangle (cr, 0, 0, movie->video->width, movie->video->height);
- cairo_fill (cr);
- }
+ cairo_set_source_surface (cr, movie->image, 0.0, 0.0);
+ cairo_paint (cr);
}
static void
@@ -65,8 +57,8 @@ swfdec_video_movie_unset_input (SwfdecVi
if (movie->input == NULL)
return;...
2007 Jul 21
0
12 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/jpeg libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
...WFDEC_TWIPS_SCALE_FACTOR);
- real.y1 = ceil ((y + height) * SWFDEC_TWIPS_SCALE_FACTOR);
- SWFDEC_INFO ("=== %p: START RENDER, area %g %g %g %g ===", player,
- real.x0, real.y0, real.x1, real.y1);
+ height = player->stage_height;
+ /* clip the area */
cairo_save (cr);
cairo_rectangle (cr, x, y, width, height);
cairo_clip (cr);
- cairo_scale (cr, 1.0 / SWFDEC_TWIPS_SCALE_FACTOR, 1.0 / SWFDEC_TWIPS_SCALE_FACTOR);
+ /* compute the rectangle */
+ x -= player->offset_x;
+ y -= player->offset_y;
+ real.x0 = floor (x * SWFDEC_TWIPS_SCALE_FACTOR) / player->scale_x;
+...
2007 Dec 13
0
libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_date.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_interval.c libswfdec/swfdec_key_as.c libswfdec/swfdec_mouse_as.c libswfdec/swfdec_movie.c
...nitialized (player))
return;
+ priv = player->priv;
if (width == 0.0)
- width = player->stage_width;
+ width = priv->stage_width;
if (height == 0.0)
- height = player->stage_height;
+ height = priv->stage_height;
/* clip the area */
cairo_save (cr);
cairo_rectangle (cr, x, y, width, height);
cairo_clip (cr);
/* compute the rectangle */
- x -= player->offset_x;
- y -= player->offset_y;
- real.x0 = floor (x * SWFDEC_TWIPS_SCALE_FACTOR) / player->scale_x;
- real.y0 = floor (y * SWFDEC_TWIPS_SCALE_FACTOR) / player->scale_y;
- real.x1 = cei...