00001 #include <stdio.h> 00002 #include <stdlib.h> 00003 #include <string.h> 00004 #include "mb/mb_types.h" 00005 #include "mb/redraw_man.h" 00006 #include "mb/shapes.h" 00007 #include "mb/paint.h" 00008 #include "svg2code_ex.h" 00009 00010 svg2code_ex_t *svg2code_ex_new(redraw_man_t *rdman, coord_t *parent_coord) { 00011 svg2code_ex_t *obj; 00012 grad_stop_t *stops = NULL; 00013 static const int n_linearGradient8083_stops = 2; 00014 static const grad_stop_t linearGradient8083_stops[] = { 00015 {0.000000,0.800000,0.800000,0.800000,1.000000}, 00016 {1.000000,0.800000,0.800000,0.800000,0.000000}}; 00017 static const int n_linearGradient6117_stops = 3; 00018 static const grad_stop_t linearGradient6117_stops[] = { 00019 {0.000000,0.000000,0.000000,0.000000,1.000000}, 00020 {0.500000,1.000000,1.000000,1.000000,0.498039}, 00021 {1.000000,0.000000,0.000000,0.000000,1.000000}}; 00022 static const int n_linearGradient5134_stops = 2; 00023 static const grad_stop_t linearGradient5134_stops[] = { 00024 {0.000000,0.800000,0.800000,0.800000,1.000000}, 00025 {1.000000,0.800000,0.800000,0.800000,0.000000}}; 00026 static const int n_linearGradient4145_stops = 2; 00027 static const grad_stop_t linearGradient4145_stops[] = { 00028 {0.000000,0.000000,0.000000,0.501961,1.000000}, 00029 {1.000000,0.000000,0.000000,0.501961,0.000000}}; 00030 static const int n_linearGradient3159_stops = 2; 00031 static const grad_stop_t linearGradient3159_stops[] = { 00032 {0.000000,0.000000,0.501961,0.501961,1.000000}, 00033 {1.000000,1.000000,0.000000,0.000000,0.000000}}; 00034 static const int n_linearGradient3144_stops = 2; 00035 static const grad_stop_t linearGradient3144_stops[] = { 00036 {0.000000,0.000000,0.501961,0.501961,1.000000}, 00037 {1.000000,0.000000,0.501961,0.501961,0.000000}}; 00038 static const int n_linearGradient3134_stops = 3; 00039 static const grad_stop_t linearGradient3134_stops[] = { 00040 {0.000000,0.000000,0.000000,0.000000,0.824742}, 00041 {0.850000,0.000000,0.000000,0.000000,0.701031}, 00042 {1.000000,0.000000,0.000000,0.000000,0.000000}}; 00043 static const int n_linearGradient3152_stops = 3; 00044 static const grad_stop_t linearGradient3152_stops[] = { 00045 {0.000000,36.000000,28.000000,28.000000,1.000000}, 00046 {0.200000,36.000000,28.000000,28.000000,0.498039}, 00047 {1.000000,36.000000,28.000000,28.000000,0.000000}}; 00048 static const int n_linearGradient3176_stops = 3; 00049 static const grad_stop_t linearGradient3176_stops[] = { 00050 {0.000000,255.000000,255.000000,255.000000,0.639175}, 00051 {0.500000,255.000000,255.000000,255.000000,0.360825}, 00052 {1.000000,255.000000,255.000000,255.000000,0.000000}}; 00053 static const int n_linearGradient7656_stops = 3; 00054 static const grad_stop_t linearGradient7656_stops[] = { 00055 {0.000000,0.000000,0.000000,0.000000,0.824742}, 00056 {0.850000,0.000000,0.000000,0.000000,0.701031}, 00057 {1.000000,0.000000,0.000000,0.000000,0.000000}}; 00058 static const int n_linearGradient7648_stops = 3; 00059 static const grad_stop_t linearGradient7648_stops[] = { 00060 {0.000000,36.000000,28.000000,28.000000,1.000000}, 00061 {0.200000,36.000000,28.000000,28.000000,0.498039}, 00062 {1.000000,36.000000,28.000000,28.000000,0.000000}}; 00063 static const int n_linearGradient7640_stops = 3; 00064 static const grad_stop_t linearGradient7640_stops[] = { 00065 {0.000000,255.000000,255.000000,255.000000,0.639175}, 00066 {0.500000,255.000000,255.000000,255.000000,0.360825}, 00067 {1.000000,255.000000,255.000000,255.000000,0.000000}}; 00068 00069 obj = (svg2code_ex_t *)malloc(sizeof(svg2code_ex_t)); 00070 if(obj == NULL) return NULL; 00071 obj->rdman = rdman; 00072 00073 obj->root_coord = rdman_coord_new(rdman, parent_coord); 00074 00075 obj->linearGradient8083 = rdman_paint_linear_new(rdman, 0.000000, 0.000000, 0.000000, 0.000000); 00076 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient8083_stops); 00077 memcpy(stops, linearGradient8083_stops, sizeof(grad_stop_t) * n_linearGradient8083_stops); 00078 paint_linear_stops(obj->linearGradient8083, n_linearGradient8083_stops, stops); 00079 00080 obj->linearGradient6117 = rdman_paint_linear_new(rdman, 0.000000, 0.000000, 0.000000, 0.000000); 00081 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient6117_stops); 00082 memcpy(stops, linearGradient6117_stops, sizeof(grad_stop_t) * n_linearGradient6117_stops); 00083 paint_linear_stops(obj->linearGradient6117, n_linearGradient6117_stops, stops); 00084 00085 obj->linearGradient5134 = rdman_paint_linear_new(rdman, 0.000000, 0.000000, 0.000000, 0.000000); 00086 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient5134_stops); 00087 memcpy(stops, linearGradient5134_stops, sizeof(grad_stop_t) * n_linearGradient5134_stops); 00088 paint_linear_stops(obj->linearGradient5134, n_linearGradient5134_stops, stops); 00089 00090 obj->linearGradient4145 = rdman_paint_linear_new(rdman, 0.000000, 0.000000, 0.000000, 0.000000); 00091 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient4145_stops); 00092 memcpy(stops, linearGradient4145_stops, sizeof(grad_stop_t) * n_linearGradient4145_stops); 00093 paint_linear_stops(obj->linearGradient4145, n_linearGradient4145_stops, stops); 00094 00095 obj->linearGradient3159 = rdman_paint_linear_new(rdman, 0.000000, 0.000000, 0.000000, 0.000000); 00096 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient3159_stops); 00097 memcpy(stops, linearGradient3159_stops, sizeof(grad_stop_t) * n_linearGradient3159_stops); 00098 paint_linear_stops(obj->linearGradient3159, n_linearGradient3159_stops, stops); 00099 00100 obj->linearGradient3144 = rdman_paint_linear_new(rdman, 0.000000, 0.000000, 0.000000, 0.000000); 00101 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient3144_stops); 00102 memcpy(stops, linearGradient3144_stops, sizeof(grad_stop_t) * n_linearGradient3144_stops); 00103 paint_linear_stops(obj->linearGradient3144, n_linearGradient3144_stops, stops); 00104 00105 obj->radialGradient4155 = rdman_paint_radial_new(rdman, 83.905014, 255.658660, 401.027710); 00106 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient4145_stops); 00107 memcpy(stops, linearGradient4145_stops, sizeof(grad_stop_t) * n_linearGradient4145_stops); 00108 paint_radial_stops(obj->radialGradient4155, n_linearGradient4145_stops, stops); 00109 00110 obj->linearGradient5140 = rdman_paint_linear_new(rdman, 50.659630, 41.160950, 742.480220, 571.503970); 00111 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient5134_stops); 00112 memcpy(stops, linearGradient5134_stops, sizeof(grad_stop_t) * n_linearGradient5134_stops); 00113 paint_linear_stops(obj->linearGradient5140, n_linearGradient5134_stops, stops); 00114 00115 obj->linearGradient6123 = rdman_paint_linear_new(rdman, 18.997362, 487.598940, 448.021120, 489.973600); 00116 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient6117_stops); 00117 memcpy(stops, linearGradient6117_stops, sizeof(grad_stop_t) * n_linearGradient6117_stops); 00118 paint_linear_stops(obj->linearGradient6123, n_linearGradient6117_stops, stops); 00119 00120 obj->radialGradient8096 = rdman_paint_radial_new(rdman, 45.995758, 11.422832, 40.869397); 00121 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient8083_stops); 00122 memcpy(stops, linearGradient8083_stops, sizeof(grad_stop_t) * n_linearGradient8083_stops); 00123 paint_radial_stops(obj->radialGradient8096, n_linearGradient8083_stops, stops); 00124 00125 obj->linearGradient3182 = rdman_paint_linear_new(rdman, 52.796440, 2.136826, 55.889248, 12.676396); 00126 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient3176_stops); 00127 memcpy(stops, linearGradient3176_stops, sizeof(grad_stop_t) * n_linearGradient3176_stops); 00128 paint_linear_stops(obj->linearGradient3182, n_linearGradient3176_stops, stops); 00129 00130 obj->linearGradient3134 = rdman_paint_linear_new(rdman, 0.000000, 0.000000, 0.000000, 0.000000); 00131 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient3134_stops); 00132 memcpy(stops, linearGradient3134_stops, sizeof(grad_stop_t) * n_linearGradient3134_stops); 00133 paint_linear_stops(obj->linearGradient3134, n_linearGradient3134_stops, stops); 00134 00135 obj->linearGradient3152 = rdman_paint_linear_new(rdman, 0.000000, 0.000000, 0.000000, 0.000000); 00136 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient3152_stops); 00137 memcpy(stops, linearGradient3152_stops, sizeof(grad_stop_t) * n_linearGradient3152_stops); 00138 paint_linear_stops(obj->linearGradient3152, n_linearGradient3152_stops, stops); 00139 00140 obj->linearGradient3176 = rdman_paint_linear_new(rdman, 0.000000, 0.000000, 0.000000, 0.000000); 00141 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient3176_stops); 00142 memcpy(stops, linearGradient3176_stops, sizeof(grad_stop_t) * n_linearGradient3176_stops); 00143 paint_linear_stops(obj->linearGradient3176, n_linearGradient3176_stops, stops); 00144 00145 obj->linearGradient5594 = rdman_paint_linear_new(rdman, 159.495030, 110.418520, 267.546170, 218.469670); 00146 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient3144_stops); 00147 memcpy(stops, linearGradient3144_stops, sizeof(grad_stop_t) * n_linearGradient3144_stops); 00148 paint_linear_stops(obj->linearGradient5594, n_linearGradient3144_stops, stops); 00149 00150 obj->linearGradient7666 = rdman_paint_linear_new(rdman, 52.796440, 2.136826, 55.889248, 12.676396); 00151 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient3176_stops); 00152 memcpy(stops, linearGradient3176_stops, sizeof(grad_stop_t) * n_linearGradient3176_stops); 00153 paint_linear_stops(obj->linearGradient7666, n_linearGradient3176_stops, stops); 00154 00155 obj->linearGradient3158 = rdman_paint_linear_new(rdman, 0.133184, 93.306656, -13.589547, 93.248642); 00156 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient3152_stops); 00157 memcpy(stops, linearGradient3152_stops, sizeof(grad_stop_t) * n_linearGradient3152_stops); 00158 paint_linear_stops(obj->linearGradient3158, n_linearGradient3152_stops, stops); 00159 00160 obj->linearGradient3140 = rdman_paint_linear_new(rdman, 56.992085, 39.577835, 36.675465, 63.060684); 00161 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient3134_stops); 00162 memcpy(stops, linearGradient3134_stops, sizeof(grad_stop_t) * n_linearGradient3134_stops); 00163 paint_linear_stops(obj->linearGradient3140, n_linearGradient3134_stops, stops); 00164 00165 obj->linearGradient7656 = rdman_paint_linear_new(rdman, 0.000000, 0.000000, 0.000000, 0.000000); 00166 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient7656_stops); 00167 memcpy(stops, linearGradient7656_stops, sizeof(grad_stop_t) * n_linearGradient7656_stops); 00168 paint_linear_stops(obj->linearGradient7656, n_linearGradient7656_stops, stops); 00169 00170 obj->linearGradient7648 = rdman_paint_linear_new(rdman, 0.000000, 0.000000, 0.000000, 0.000000); 00171 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient7648_stops); 00172 memcpy(stops, linearGradient7648_stops, sizeof(grad_stop_t) * n_linearGradient7648_stops); 00173 paint_linear_stops(obj->linearGradient7648, n_linearGradient7648_stops, stops); 00174 00175 obj->linearGradient7640 = rdman_paint_linear_new(rdman, 0.000000, 0.000000, 0.000000, 0.000000); 00176 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient7640_stops); 00177 memcpy(stops, linearGradient7640_stops, sizeof(grad_stop_t) * n_linearGradient7640_stops); 00178 paint_linear_stops(obj->linearGradient7640, n_linearGradient7640_stops, stops); 00179 00180 obj->linearGradient7674 = rdman_paint_linear_new(rdman, 52.796440, 2.136826, 55.889248, 12.676396); 00181 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient3176_stops); 00182 memcpy(stops, linearGradient3176_stops, sizeof(grad_stop_t) * n_linearGradient3176_stops); 00183 paint_linear_stops(obj->linearGradient7674, n_linearGradient3176_stops, stops); 00184 00185 obj->linearGradient7683 = rdman_paint_linear_new(rdman, 159.495030, 110.418520, 267.546170, 218.469670); 00186 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient3144_stops); 00187 memcpy(stops, linearGradient3144_stops, sizeof(grad_stop_t) * n_linearGradient3144_stops); 00188 paint_linear_stops(obj->linearGradient7683, n_linearGradient3144_stops, stops); 00189 00190 obj->radialGradient7686 = rdman_paint_radial_new(rdman, 175.725600, 143.899520, 125.565960); 00191 stops = (grad_stop_t *)malloc(sizeof(grad_stop_t) * n_linearGradient3159_stops); 00192 memcpy(stops, linearGradient3159_stops, sizeof(grad_stop_t) * n_linearGradient3159_stops); 00193 paint_radial_stops(obj->radialGradient7686, n_linearGradient3159_stops, stops); 00194 00195 obj->layer1 = rdman_coord_new(rdman, obj->root_coord); 00196 00197 obj->rect5132 = rdman_shape_rect_new(rdman, 0.000000, 0.000000, 802.638550, 601.583130, 0.000000, 0.000000); 00198 rdman_add_shape(rdman, obj->rect5132, obj->layer1); 00199 rdman_paint_fill(rdman, obj->linearGradient5140, obj->rect5132); 00200 obj->rect5132_stroke = rdman_paint_color_new(rdman, 0.000000, 0.000000, 0.000000, 1.000000); 00201 rdman_paint_stroke(rdman, obj->rect5132_stroke, obj->rect5132); 00202 obj->rect5132->stroke_width = 1.000000; 00203 sh_hide(obj->rect5132); 00204 00205 obj->rect3174 = rdman_shape_rect_new(rdman, -0.093837, -0.093837, 801.243100, 39.687672, 0.000000, 0.000000); 00206 rdman_add_shape(rdman, obj->rect3174, obj->layer1); 00207 rdman_paint_fill(rdman, obj->radialGradient4155, obj->rect3174); 00208 obj->rect3174_stroke = rdman_paint_color_new(rdman, 0.000000, 0.000000, 0.000000, 1.000000); 00209 rdman_paint_stroke(rdman, obj->rect3174_stroke, obj->rect3174); 00210 obj->rect3174->stroke_width = 0.812327; 00211 00212 obj->rect5128 = rdman_shape_rect_new(rdman, 20.644026, 60.644024, 458.711940, 418.711980, 4.021675, 5.055978); 00213 rdman_add_shape(rdman, obj->rect5128, obj->layer1); 00214 obj->rect5128_fill = rdman_paint_color_new(rdman, 0.976471, 0.976471, 0.976471, 1.000000); 00215 rdman_paint_fill(rdman, obj->rect5128_fill, obj->rect5128); 00216 obj->rect5128_stroke = rdman_paint_color_new(rdman, 0.000000, 0.000000, 0.000000, 1.000000); 00217 rdman_paint_stroke(rdman, obj->rect5128_stroke, obj->rect5128); 00218 obj->rect5128->stroke_width = 1.288052; 00219 00220 obj->rect5130 = rdman_shape_rect_new(rdman, 519.968020, 59.968040, 259.563900, 419.563930, 5.042493, 0.000000); 00221 rdman_add_shape(rdman, obj->rect5130, obj->layer1); 00222 obj->rect5130_fill = rdman_paint_color_new(rdman, 0.976471, 0.976471, 0.976471, 1.000000); 00223 rdman_paint_fill(rdman, obj->rect5130_fill, obj->rect5130); 00224 obj->rect5130_stroke = rdman_paint_color_new(rdman, 0.000000, 0.000000, 0.000000, 1.000000); 00225 rdman_paint_stroke(rdman, obj->rect5130_stroke, obj->rect5130); 00226 obj->rect5130->stroke_width = 0.936088; 00227 00228 obj->rect5144 = rdman_shape_rect_new(rdman, 19.986771, 499.986790, 459.526460, 79.526451, 0.000000, 0.000000); 00229 rdman_add_shape(rdman, obj->rect5144, obj->layer1); 00230 obj->rect5144_fill = rdman_paint_color_new(rdman, 1.000000, 1.000000, 1.000000, 1.000000); 00231 rdman_paint_fill(rdman, obj->rect5144_fill, obj->rect5144); 00232 obj->rect5144_stroke = rdman_paint_color_new(rdman, 0.000000, 0.000000, 0.000000, 1.000000); 00233 rdman_paint_stroke(rdman, obj->rect5144_stroke, obj->rect5144); 00234 obj->rect5144->stroke_width = 0.973543; 00235 00236 obj->path5146 = rdman_shape_path_new(rdman, "M 20.580475,489.18206 L 471.76781,490.76517"); 00237 rdman_add_shape(rdman, obj->path5146, obj->layer1); 00238 obj->path5146_fill = rdman_paint_color_new(rdman, 0.000000, 1.000000, 1.000000, 1.000000); 00239 rdman_paint_fill(rdman, obj->path5146_fill, obj->path5146); 00240 rdman_paint_stroke(rdman, obj->linearGradient6123, obj->path5146); 00241 obj->path5146->stroke_width = 5.000000; 00242 00243 obj->file_button = rdman_coord_new(rdman, obj->layer1); 00244 memset(obj->file_button->matrix, 0, sizeof(obj->file_button->matrix)); 00245 obj->file_button->matrix[0] = 1; 00246 obj->file_button->matrix[2] = 6.332454; 00247 obj->file_button->matrix[4] = 1; 00248 obj->file_button->matrix[5] = 1.583114; 00249 rdman_coord_changed(rdman, obj->file_button); 00250 00251 obj->rect6129 = rdman_shape_rect_new(rdman, 18.805006, 1.390759, 81.123505, 32.046982, 1.122110, 3.036451); 00252 rdman_add_shape(rdman, obj->rect6129, obj->file_button); 00253 rdman_paint_fill(rdman, obj->radialGradient8096, obj->rect6129); 00254 obj->rect6129_stroke = rdman_paint_color_new(rdman, 0.000000, 0.000000, 0.000000, 1.000000); 00255 rdman_paint_stroke(rdman, obj->rect6129_stroke, obj->rect6129); 00256 obj->rect6129->stroke_width = 0.615290; 00257 00258 obj->tspan8073 = rdman_shape_text_new(rdman, "檔案", 44.327179, 22.163589, 16.000000, 00259 cairo_get_font_face(rdman->cr)); 00260 rdman_add_shape(rdman, obj->tspan8073, obj->file_button); 00261 obj->tspan8073_fill = rdman_paint_color_new(rdman, 0.000000, 0.000000, 0.000000, 1.000000); 00262 rdman_paint_fill(rdman, obj->tspan8073_fill, obj->tspan8073); 00263 obj->tspan8073->stroke_width = 1.000000; 00264 00265 obj->file_menu = rdman_coord_new(rdman, obj->layer1); 00266 coord_hide(obj->file_menu); 00267 00268 obj->rect3157 = rdman_shape_rect_new(rdman, 20.458471, 41.991447, 232.800740, 237.550080, 0.000000, 0.000000); 00269 rdman_add_shape(rdman, obj->rect3157, obj->file_menu); 00270 rdman_paint_fill(rdman, obj->radialGradient7686, obj->rect3157); 00271 obj->rect3157_stroke = rdman_paint_color_new(rdman, 0.000000, 0.000000, 0.000000, 1.000000); 00272 rdman_paint_stroke(rdman, obj->rect3157_stroke, obj->rect3157); 00273 obj->rect3157->stroke_width = 0.916944; 00274 00275 obj->rect2160 = rdman_shape_rect_new(rdman, 26.915098, 46.864952, 215.138120, 219.887470, 0.000000, 0.000000); 00276 rdman_add_shape(rdman, obj->rect2160, obj->file_menu); 00277 rdman_paint_fill(rdman, obj->linearGradient7683, obj->rect2160); 00278 obj->rect2160_stroke = rdman_paint_color_new(rdman, 0.000000, 0.000000, 0.000000, 1.000000); 00279 rdman_paint_stroke(rdman, obj->rect2160_stroke, obj->rect2160); 00280 obj->rect2160->stroke_width = 1.165305; 00281 00282 obj->tspan3136 = rdman_shape_text_new(rdman, "test", 52.162270, 86.360161, 16.000000, 00283 cairo_get_font_face(rdman->cr)); 00284 rdman_add_shape(rdman, obj->tspan3136, obj->file_menu); 00285 obj->tspan3136_fill = rdman_paint_color_new(rdman, 0.000000, 0.000000, 0.000000, 1.000000); 00286 rdman_paint_fill(rdman, obj->tspan3136_fill, obj->tspan3136); 00287 00288 obj->tspan3138 = rdman_shape_text_new(rdman, "test", 52.162270, 106.360160, 16.000000, 00289 cairo_get_font_face(rdman->cr)); 00290 rdman_add_shape(rdman, obj->tspan3138, obj->file_menu); 00291 obj->tspan3138_fill = rdman_paint_color_new(rdman, 0.000000, 0.000000, 0.000000, 1.000000); 00292 rdman_paint_fill(rdman, obj->tspan3138_fill, obj->tspan3138); 00293 00294 obj->path2451_coord = rdman_coord_new(rdman, obj->layer1); 00295 memset(obj->path2451_coord->matrix, 0, sizeof(obj->path2451_coord->matrix)); 00296 obj->path2451_coord->matrix[0] = 1; 00297 obj->path2451_coord->matrix[2] = 0.000000; 00298 obj->path2451_coord->matrix[4] = 1; 00299 obj->path2451_coord->matrix[5] = -17.414248; 00300 rdman_coord_changed(rdman, obj->path2451_coord); 00301 00302 obj->path2451 = rdman_shape_path_new(rdman, "M 723.62808,516.79651 A 98.944588,37.994728 0 1 1 549.36227,542.22385"); 00303 rdman_add_shape(rdman, obj->path2451, obj->path2451_coord); 00304 obj->path2451_stroke = rdman_paint_color_new(rdman, 0.000000, 0.000000, 0.000000, 1.000000); 00305 rdman_paint_stroke(rdman, obj->path2451_stroke, obj->path2451); 00306 obj->path2451->stroke_width = 2.397000; 00307 00308 return obj; 00309 } 00310 00311 void svg2code_ex_free(svg2code_ex_t *obj) { 00312 grad_stop_t *stops = NULL; 00313 redraw_man_t *rdman; 00314 00315 rdman = obj->rdman; 00316 00317 rdman_paint_free(rdman, obj->path2451_stroke); 00318 00319 rdman_shape_free(rdman, obj->path2451); 00320 00321 rdman_paint_free(rdman, obj->tspan3138_fill); 00322 00323 rdman_shape_free(rdman, obj->tspan3138); 00324 00325 rdman_paint_free(rdman, obj->tspan3136_fill); 00326 00327 rdman_shape_free(rdman, obj->tspan3136); 00328 00329 rdman_paint_free(rdman, obj->rect2160_stroke); 00330 00331 rdman_shape_free(rdman, obj->rect2160); 00332 00333 rdman_paint_free(rdman, obj->rect3157_stroke); 00334 00335 rdman_shape_free(rdman, obj->rect3157); 00336 00337 rdman_paint_free(rdman, obj->tspan8073_fill); 00338 00339 rdman_shape_free(rdman, obj->tspan8073); 00340 00341 rdman_paint_free(rdman, obj->rect6129_stroke); 00342 00343 rdman_shape_free(rdman, obj->rect6129); 00344 00345 rdman_paint_free(rdman, obj->path5146_fill); 00346 00347 rdman_shape_free(rdman, obj->path5146); 00348 00349 rdman_paint_free(rdman, obj->rect5144_stroke); 00350 00351 rdman_paint_free(rdman, obj->rect5144_fill); 00352 00353 rdman_shape_free(rdman, obj->rect5144); 00354 00355 rdman_paint_free(rdman, obj->rect5130_stroke); 00356 00357 rdman_paint_free(rdman, obj->rect5130_fill); 00358 00359 rdman_shape_free(rdman, obj->rect5130); 00360 00361 rdman_paint_free(rdman, obj->rect5128_stroke); 00362 00363 rdman_paint_free(rdman, obj->rect5128_fill); 00364 00365 rdman_shape_free(rdman, obj->rect5128); 00366 00367 rdman_paint_free(rdman, obj->rect3174_stroke); 00368 00369 rdman_shape_free(rdman, obj->rect3174); 00370 00371 rdman_paint_free(rdman, obj->rect5132_stroke); 00372 00373 rdman_shape_free(rdman, obj->rect5132); 00374 00375 stops = paint_radial_stops(obj->radialGradient7686, 0, NULL); 00376 free(stops); 00377 rdman_paint_free(rdman, obj->radialGradient7686); 00378 00379 stops = paint_linear_stops(obj->linearGradient7683, 0, NULL); 00380 free(stops); 00381 rdman_paint_free(rdman, obj->linearGradient7683); 00382 00383 stops = paint_linear_stops(obj->linearGradient7674, 0, NULL); 00384 free(stops); 00385 rdman_paint_free(rdman, obj->linearGradient7674); 00386 00387 stops = paint_linear_stops(obj->linearGradient7640, 0, NULL); 00388 free(stops); 00389 rdman_paint_free(rdman, obj->linearGradient7640); 00390 00391 stops = paint_linear_stops(obj->linearGradient7648, 0, NULL); 00392 free(stops); 00393 rdman_paint_free(rdman, obj->linearGradient7648); 00394 00395 stops = paint_linear_stops(obj->linearGradient7656, 0, NULL); 00396 free(stops); 00397 rdman_paint_free(rdman, obj->linearGradient7656); 00398 00399 stops = paint_linear_stops(obj->linearGradient3140, 0, NULL); 00400 free(stops); 00401 rdman_paint_free(rdman, obj->linearGradient3140); 00402 00403 stops = paint_linear_stops(obj->linearGradient3158, 0, NULL); 00404 free(stops); 00405 rdman_paint_free(rdman, obj->linearGradient3158); 00406 00407 stops = paint_linear_stops(obj->linearGradient7666, 0, NULL); 00408 free(stops); 00409 rdman_paint_free(rdman, obj->linearGradient7666); 00410 00411 stops = paint_linear_stops(obj->linearGradient5594, 0, NULL); 00412 free(stops); 00413 rdman_paint_free(rdman, obj->linearGradient5594); 00414 00415 stops = paint_linear_stops(obj->linearGradient3176, 0, NULL); 00416 free(stops); 00417 rdman_paint_free(rdman, obj->linearGradient3176); 00418 00419 stops = paint_linear_stops(obj->linearGradient3152, 0, NULL); 00420 free(stops); 00421 rdman_paint_free(rdman, obj->linearGradient3152); 00422 00423 stops = paint_linear_stops(obj->linearGradient3134, 0, NULL); 00424 free(stops); 00425 rdman_paint_free(rdman, obj->linearGradient3134); 00426 00427 stops = paint_linear_stops(obj->linearGradient3182, 0, NULL); 00428 free(stops); 00429 rdman_paint_free(rdman, obj->linearGradient3182); 00430 00431 stops = paint_radial_stops(obj->radialGradient8096, 0, NULL); 00432 free(stops); 00433 rdman_paint_free(rdman, obj->radialGradient8096); 00434 00435 stops = paint_linear_stops(obj->linearGradient6123, 0, NULL); 00436 free(stops); 00437 rdman_paint_free(rdman, obj->linearGradient6123); 00438 00439 stops = paint_linear_stops(obj->linearGradient5140, 0, NULL); 00440 free(stops); 00441 rdman_paint_free(rdman, obj->linearGradient5140); 00442 00443 stops = paint_radial_stops(obj->radialGradient4155, 0, NULL); 00444 free(stops); 00445 rdman_paint_free(rdman, obj->radialGradient4155); 00446 00447 stops = paint_linear_stops(obj->linearGradient3144, 0, NULL); 00448 free(stops); 00449 rdman_paint_free(rdman, obj->linearGradient3144); 00450 00451 stops = paint_linear_stops(obj->linearGradient3159, 0, NULL); 00452 free(stops); 00453 rdman_paint_free(rdman, obj->linearGradient3159); 00454 00455 stops = paint_linear_stops(obj->linearGradient4145, 0, NULL); 00456 free(stops); 00457 rdman_paint_free(rdman, obj->linearGradient4145); 00458 00459 stops = paint_linear_stops(obj->linearGradient5134, 0, NULL); 00460 free(stops); 00461 rdman_paint_free(rdman, obj->linearGradient5134); 00462 00463 stops = paint_linear_stops(obj->linearGradient6117, 0, NULL); 00464 free(stops); 00465 rdman_paint_free(rdman, obj->linearGradient6117); 00466 00467 stops = paint_linear_stops(obj->linearGradient8083, 0, NULL); 00468 free(stops); 00469 rdman_paint_free(rdman, obj->linearGradient8083); 00470 00471 rdman_coord_subtree_free(rdman, obj->root_coord); 00472 free(obj); 00473 }