Lines Matching refs:out
25 #include "javafx-out.h"
67 g_log(NULL, G_LOG_LEVEL_WARNING, "javafx-out err: ");
207 void JavaFXOutput::out(const char *fmt, ...)
225 out("/*###################################################################\n");
226 out("### This JavaFX document was generated by Inkscape\n");
227 out("### http://www.inkscape.org\n");
228 out("### Created: %s", ctime(&tim));
229 out("### Version: %s\n", Inkscape::version_string);
230 out("#####################################################################\n");
231 out("### NOTES:\n");
232 out("### ============\n");
233 out("### JavaFX information can be found at\n");
234 out("### http://www.javafx.com/\n");
235 out("###\n");
236 out("### If you have any problems with this output, please see the\n");
237 out("### Inkscape project at http://www.inkscape.org, or visit\n");
238 out("### the #inkscape channel on irc.freenode.net . \n");
239 out("###\n");
240 out("###################################################################*/\n");
241 out("\n\n");
242 out("/*###################################################################\n");
243 out("## Exports in this file\n");
244 out("##==========================\n");
245 out("## Shapes : %d\n", nrShapes);
246 out("## Nodes : %d\n", nrNodes);
247 out("###################################################################*/\n");
248 out("\n\n");
251 out("import javafx.scene.*;\n");
252 out("import javafx.scene.shape.*;\n");
253 out("import javafx.scene.transform.*;\n");
254 out("import javafx.scene.paint.*;\n");
255 out("\n");
257 out("\n\n");
260 out("public class %s extends CustomNode {\n", name.c_str());
275 out(" ] // content\n");
276 out(" transforms: Translate { x : %s, y : %s }\n",
278 out(" } // Group\n");
279 out(" } // function create()\n");
280 out("} // class %s\n", name.c_str());
281 out("\n");
284 // out(" stage: Stage {\n");
285 // out(" content: %s{}\n", name.c_str());
286 // out(" } // Stage\n");
289 out("\n");
291 out("/*###################################################################\n");
292 out("### E N D C L A S S %s\n", name.c_str());
293 out("###################################################################*/\n");
294 out("\n\n");
310 out(" /* create LinearGradient for %s */\n", jfxid.c_str());
311 out(" function %s(): LinearGradient {\n", jfxid.c_str());
312 out(" LinearGradient {\n");
316 out(" stops:\n");
317 out(" [\n");
321 out(" Stop {\n");
322 out(" offset: %s\n", DSTR(stop.offset));
323 out(" color: %s\n", rgba(stop.color, stop.opacity).c_str());
324 out(" },\n");
326 out(" ]\n");
328 out(" };\n");
329 out(" } // end LinearGradient: %s\n", jfxid.c_str());
330 out("\n\n");
335 out(" /* create RadialGradient for %s */\n", jfxid.c_str());
336 out(" function %s() {\n", jfxid.c_str());
337 out(" RadialGradient {\n");
338 out(" centerX: %s\n", DSTR(g->cx.value));
339 out(" centerY: %s\n", DSTR(g->cy.value));
340 out(" focusX: %s\n", DSTR(g->fx.value));
341 out(" focusY: %s\n", DSTR(g->fy.value));
342 out(" radius: %s\n", DSTR(g->r.value ));
346 out(" stops:\n");
347 out(" [\n");
351 out(" Stop {\n");
352 out(" offset: %s\n", DSTR(stop.offset));
353 out(" color: %s\n", rgba(stop.color, stop.opacity).c_str());
354 out(" },\n");
356 out(" ]\n");
358 out(" };\n");
359 out(" } // end RadialGradient: %s\n", jfxid.c_str());
360 out("\n\n");
384 out(" opacity: %s\n", DSTR(effective_opacity(style)));
393 out(" fill: %s\n",
404 out(" fill: %s()\n", sanatize(uri).c_str());
427 out(" stroke: %s\n",
432 out(" strokeWidth: %s\n", DSTR(strokewidth));
433 out(" strokeLineCap: %s\n", getStrokeLineCap(linecap).c_str());
434 out(" strokeLineJoin: %s\n", getStrokeLineJoin(linejoin).c_str());
435 out(" strokeMiterLimit: %s\n", DSTR(style->stroke_miterlimit.value));
438 out(" strokeDashOffset: %s\n", DSTR(style->stroke_dashoffset.value));
440 out(" strokeDashArray: [ ");
443 out(", %.2lf", style->stroke_dasharray.values[i]);
445 out(" %.2lf", style->stroke_dasharray.values[i]);
448 out(" ]\n");
481 out(" /** path %s */\n", jfxid.c_str());
482 out(" function %s() : Path {\n",jfxid.c_str());
483 out(" Path {\n");
484 out(" id: \"%s\"\n", jfxid.c_str());
507 out(" elements: [\n");
522 out(" MoveTo {\n");
523 out(" x: %s\n", DSTR(p[X]));
524 out(" y: %s\n", DSTR(p[Y]));
525 out(" },\n");
536 out(" LineTo {\n");
537 out(" x: %s\n", DSTR(p[X]));
538 out(" y: %s\n", DSTR(p[Y]));
539 out(" },\n");
549 out(" CubicCurveTo {\n");
550 out(" controlX1: %s\n", DSTR(p1[X]));
551 out(" controlY1: %s\n", DSTR(p1[Y]));
552 out(" controlX2: %s\n", DSTR(p2[X]));
553 out(" controlY2: %s\n", DSTR(p2[Y]));
554 out(" x: %s\n", DSTR(p3[X]));
555 out(" y: %s\n", DSTR(p3[Y]));
556 out(" },\n");
568 out(" ClosePath {},\n");
572 out(" ] // elements\n");
573 out(" }; // Path\n");
574 out(" } // end path %s\n\n", jfxid.c_str());
622 out(" SVGPath \n");
623 out(" {\n");
624 out(" id: \"%s\"\n", id.c_str());
648 out(" content: \"%s\"\n", dataStr);
669 out(" },\n");
792 out(" %s(),\n", jfxid.c_str());
870 out(" override function create(): Node {\n");
871 out(" Group {\n");
872 out(" content: [\n");