00001
00002
00003
00004
00005
00006
00007 #ifndef __SHAPES_H_
00008 #define __SHAPES_H_
00009
00010 #include <cairo.h>
00011 #include "mb_types.h"
00012 #include "mb_redraw_man.h"
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 extern shape_t *rdman_shape_path_new(redraw_man_t *rdman, char *data);
00042 extern void sh_path_transform(shape_t *shape);
00043 extern void sh_path_draw(shape_t *shape, cairo_t *cr);
00044
00045
00046
00047
00048
00049 extern shape_t *rdman_shape_text_new(redraw_man_t *rdman,
00050 const char *txt, co_aix x, co_aix y,
00051 co_aix font_size,
00052 cairo_font_face_t *face);
00053 extern void sh_text_set_text(shape_t *shape, const char *txt);
00054 extern void sh_text_transform(shape_t *shape);
00055 extern void sh_text_draw(shape_t *shape, cairo_t *cr);
00056
00057
00058
00059
00060
00061 extern shape_t *rdman_shape_rect_new(redraw_man_t *rdman,
00062 co_aix x, co_aix y,
00063 co_aix w, co_aix h,
00064 co_aix rx, co_aix ry);
00065 extern void sh_rect_transform(shape_t *shape);
00066 extern void sh_rect_draw(shape_t *shape, cairo_t *cr);
00067 extern void sh_rect_set(shape_t *shape, co_aix x, co_aix y,
00068 co_aix w, co_aix h, co_aix rx, co_aix ry);
00069
00070
00071
00072 #endif