| 605 | } |
| 606 | |
| 607 | GJS_JSAPI_RETURN_CONVENTION |
| 608 | static bool showText_func(JSContext* cx, unsigned argc, JS::Value* vp) { |
| 609 | GJS_CAIRO_CONTEXT_GET_PRIV_CR_CHECKED(cx, argc, vp, argv, obj); |
| 610 | |
| 611 | JS::UniqueChars utf8; |
| 612 | |
| 613 | if (!gjs_parse_call_args(cx, "showText", argv, "s", "utf8", &utf8)) |
| 614 | return false; |
| 615 | |
| 616 | cairo_show_text(cr, utf8.get()); |
| 617 | |
| 618 | if (!gjs_cairo_check_status(cx, cairo_status(cr), "context")) |
| 619 | return false; |
| 620 | |
| 621 | argv.rval().setUndefined(); |
| 622 | |
| 623 | return true; |
| 624 | } |
| 625 | |
| 626 | GJS_JSAPI_RETURN_CONVENTION |
| 627 | static bool textPath_func(JSContext* cx, unsigned argc, JS::Value* vp) { |
nothing calls this directly
no test coverage detected