MCPcopy Create free account
hub / github.com/GNOME/gjs / showText_func

Function showText_func

modules/cairo-context.cpp:607–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605}
606
607GJS_JSAPI_RETURN_CONVENTION
608static 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
626GJS_JSAPI_RETURN_CONVENTION
627static bool textPath_func(JSContext* cx, unsigned argc, JS::Value* vp) {

Callers

nothing calls this directly

Calls 3

gjs_parse_call_argsFunction · 0.85
gjs_cairo_check_statusFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected