comparison include/mb_graph_engine_openvg.h @ 617:89fee368e367 openvg

Set (stroke) line width for OpenVG
author Thinker K.F. Li <thinker@branda.to>
date Thu, 08 Jul 2010 11:56:30 +0800
parents 7d70a811829b
children 35a67a837a53
comparison
equal deleted inserted replaced
616:7d70a811829b 617:89fee368e367
25 #define mbe_set_scaled_font(canvas, scaled) 25 #define mbe_set_scaled_font(canvas, scaled)
26 #define mbe_pattern_destroy(pattern) 26 #define mbe_pattern_destroy(pattern)
27 #define mbe_get_scaled_font(canvas) ((mbe_scaled_font_t *)NULL) 27 #define mbe_get_scaled_font(canvas) ((mbe_scaled_font_t *)NULL)
28 #define mbe_query_font_face(family, slant, weight) ((mbe_font_face_t *)NULL) 28 #define mbe_query_font_face(family, slant, weight) ((mbe_font_face_t *)NULL)
29 #define mbe_free_font_face(face) 29 #define mbe_free_font_face(face)
30 #define mbe_set_line_width(canvas, w) 30 #define mbe_set_line_width(canvas, w) \
31 do { \
32 _MK_CURRENT_CTX(canvas); \
33 vgSetf(VG_STROKE_LINE_WIDTH, w); \
34 } while(0)
31 #define mbe_set_source_rgb(canvas, r, g, b) \ 35 #define mbe_set_source_rgb(canvas, r, g, b) \
32 mbe_set_source_rgba(canvas, r, g, b, 1) 36 mbe_set_source_rgba(canvas, r, g, b, 1)
33 #define mbe_get_font_face(canvas) ((mbe_font_face_t *)NULL) 37 #define mbe_get_font_face(canvas) ((mbe_font_face_t *)NULL)
34 #define mbe_copy_source(src_canvas, dst_canvas) 38 #define mbe_copy_source(src_canvas, dst_canvas)
35 #define mbe_set_source(canvas, pattern) \ 39 #define mbe_set_source(canvas, pattern) \