summaryrefslogtreecommitdiff
path: root/modules/cairo-context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/cairo-context.cpp')
-rw-r--r--modules/cairo-context.cpp161
1 files changed, 80 insertions, 81 deletions
diff --git a/modules/cairo-context.cpp b/modules/cairo-context.cpp
index e77bde16..8cf30e7b 100644
--- a/modules/cairo-context.cpp
+++ b/modules/cairo-context.cpp
@@ -823,106 +823,105 @@ getGroupTarget_func(JSContext *context,
}
JSFunctionSpec gjs_cairo_context_proto_funcs[] = {
- JS_FS("$dispose", dispose_func, 0, 0),
- JS_FS("appendPath", appendPath_func, 0, 0),
- JS_FS("arc", arc_func, 0, 0),
- JS_FS("arcNegative", arcNegative_func, 0, 0),
- JS_FS("clip", clip_func, 0, 0),
- JS_FS("clipExtents", clipExtents_func, 0, 0),
- JS_FS("clipPreserve", clipPreserve_func, 0, 0),
- JS_FS("closePath", closePath_func, 0, 0),
- JS_FS("copyPage", copyPage_func, 0, 0),
- JS_FS("copyPath", copyPath_func, 0, 0),
- JS_FS("copyPathFlat", copyPathFlat_func, 0, 0),
- JS_FS("curveTo", curveTo_func, 0, 0),
- JS_FS("deviceToUser", deviceToUser_func, 0, 0),
- JS_FS("deviceToUserDistance", deviceToUserDistance_func, 0, 0),
- JS_FS("fill", fill_func, 0, 0),
- JS_FS("fillPreserve", fillPreserve_func, 0, 0),
- JS_FS("fillExtents", fillExtents_func, 0, 0),
+ JS_FN("$dispose", dispose_func, 0, 0),
+ JS_FN("appendPath", appendPath_func, 0, 0),
+ JS_FN("arc", arc_func, 0, 0),
+ JS_FN("arcNegative", arcNegative_func, 0, 0),
+ JS_FN("clip", clip_func, 0, 0),
+ JS_FN("clipExtents", clipExtents_func, 0, 0),
+ JS_FN("clipPreserve", clipPreserve_func, 0, 0),
+ JS_FN("closePath", closePath_func, 0, 0),
+ JS_FN("copyPage", copyPage_func, 0, 0),
+ JS_FN("copyPath", copyPath_func, 0, 0),
+ JS_FN("copyPathFlat", copyPathFlat_func, 0, 0),
+ JS_FN("curveTo", curveTo_func, 0, 0),
+ JS_FN("deviceToUser", deviceToUser_func, 0, 0),
+ JS_FN("deviceToUserDistance", deviceToUserDistance_func, 0, 0),
+ JS_FN("fill", fill_func, 0, 0),
+ JS_FN("fillPreserve", fillPreserve_func, 0, 0),
+ JS_FN("fillExtents", fillExtents_func, 0, 0),
// fontExtents
- JS_FS("getAntialias", getAntialias_func, 0, 0),
- JS_FS("getCurrentPoint", getCurrentPoint_func, 0, 0),
+ JS_FN("getAntialias", getAntialias_func, 0, 0),
+ JS_FN("getCurrentPoint", getCurrentPoint_func, 0, 0),
// getDash
- JS_FS("getDashCount", getDashCount_func, 0, 0),
- JS_FS("getFillRule", getFillRule_func, 0, 0),
+ JS_FN("getDashCount", getDashCount_func, 0, 0),
+ JS_FN("getFillRule", getFillRule_func, 0, 0),
// getFontFace
// getFontMatrix
// getFontOptions
- JS_FS("getGroupTarget", getGroupTarget_func, 0, 0),
- JS_FS("getLineCap", getLineCap_func, 0, 0),
- JS_FS("getLineJoin", getLineJoin_func, 0, 0),
- JS_FS("getLineWidth", getLineWidth_func, 0, 0),
+ JS_FN("getGroupTarget", getGroupTarget_func, 0, 0),
+ JS_FN("getLineCap", getLineCap_func, 0, 0),
+ JS_FN("getLineJoin", getLineJoin_func, 0, 0),
+ JS_FN("getLineWidth", getLineWidth_func, 0, 0),
// getMatrix
- JS_FS("getMiterLimit", getMiterLimit_func, 0, 0),
- JS_FS("getOperator", getOperator_func, 0, 0),
+ JS_FN("getMiterLimit", getMiterLimit_func, 0, 0),
+ JS_FN("getOperator", getOperator_func, 0, 0),
// getScaledFont
- JS_FS("getSource", getSource_func, 0, 0),
- JS_FS("getTarget", getTarget_func, 0, 0),
- JS_FS("getTolerance", getTolerance_func, 0, 0),
+ JS_FN("getSource", getSource_func, 0, 0),
+ JS_FN("getTarget", getTarget_func, 0, 0),
+ JS_FN("getTolerance", getTolerance_func, 0, 0),
// glyphPath
// glyphExtents
- JS_FS("hasCurrentPoint", hasCurrentPoint_func, 0, 0),
- JS_FS("identityMatrix", identityMatrix_func, 0, 0),
- JS_FS("inFill", inFill_func, 0, 0),
- JS_FS("inStroke", inStroke_func, 0, 0),
- JS_FS("lineTo", lineTo_func, 0, 0),
- JS_FS("mask", mask_func, 0, 0),
- JS_FS("maskSurface", maskSurface_func, 0, 0),
- JS_FS("moveTo", moveTo_func, 0, 0),
- JS_FS("newPath", newPath_func, 0, 0),
- JS_FS("newSubPath", newSubPath_func, 0, 0),
- JS_FS("paint", paint_func, 0, 0),
- JS_FS("paintWithAlpha", paintWithAlpha_func, 0, 0),
- JS_FS("pathExtents", pathExtents_func, 0, 0),
- JS_FS("popGroup", popGroup_func, 0, 0),
- JS_FS("popGroupToSource", popGroupToSource_func, 0, 0),
- JS_FS("pushGroup", pushGroup_func, 0, 0),
- JS_FS("pushGroupWithContent", pushGroupWithContent_func, 0, 0),
- JS_FS("rectangle", rectangle_func, 0, 0),
- JS_FS("relCurveTo", relCurveTo_func, 0, 0),
- JS_FS("relLineTo", relLineTo_func, 0, 0),
- JS_FS("relMoveTo", relMoveTo_func, 0, 0),
- JS_FS("resetClip", resetClip_func, 0, 0),
- JS_FS("restore", restore_func, 0, 0),
- JS_FS("rotate", rotate_func, 0, 0),
- JS_FS("save", save_func, 0, 0),
- JS_FS("scale", scale_func, 0, 0),
- JS_FS("selectFontFace", selectFontFace_func, 0, 0),
- JS_FS("setAntialias", setAntialias_func, 0, 0),
- JS_FS("setDash", setDash_func, 0, 0),
+ JS_FN("hasCurrentPoint", hasCurrentPoint_func, 0, 0),
+ JS_FN("identityMatrix", identityMatrix_func, 0, 0),
+ JS_FN("inFill", inFill_func, 0, 0),
+ JS_FN("inStroke", inStroke_func, 0, 0),
+ JS_FN("lineTo", lineTo_func, 0, 0),
+ JS_FN("mask", mask_func, 0, 0),
+ JS_FN("maskSurface", maskSurface_func, 0, 0),
+ JS_FN("moveTo", moveTo_func, 0, 0),
+ JS_FN("newPath", newPath_func, 0, 0),
+ JS_FN("newSubPath", newSubPath_func, 0, 0),
+ JS_FN("paint", paint_func, 0, 0),
+ JS_FN("paintWithAlpha", paintWithAlpha_func, 0, 0),
+ JS_FN("pathExtents", pathExtents_func, 0, 0),
+ JS_FN("popGroup", popGroup_func, 0, 0),
+ JS_FN("popGroupToSource", popGroupToSource_func, 0, 0),
+ JS_FN("pushGroup", pushGroup_func, 0, 0),
+ JS_FN("pushGroupWithContent", pushGroupWithContent_func, 0, 0),
+ JS_FN("rectangle", rectangle_func, 0, 0),
+ JS_FN("relCurveTo", relCurveTo_func, 0, 0),
+ JS_FN("relLineTo", relLineTo_func, 0, 0),
+ JS_FN("relMoveTo", relMoveTo_func, 0, 0),
+ JS_FN("resetClip", resetClip_func, 0, 0),
+ JS_FN("restore", restore_func, 0, 0),
+ JS_FN("rotate", rotate_func, 0, 0),
+ JS_FN("save", save_func, 0, 0),
+ JS_FN("scale", scale_func, 0, 0),
+ JS_FN("selectFontFace", selectFontFace_func, 0, 0),
+ JS_FN("setAntialias", setAntialias_func, 0, 0),
+ JS_FN("setDash", setDash_func, 0, 0),
// setFontFace
// setFontMatrix
// setFontOptions
- JS_FS("setFontSize", setFontSize_func, 0, 0),
- JS_FS("setFillRule", setFillRule_func, 0, 0),
- JS_FS("setLineCap", setLineCap_func, 0, 0),
- JS_FS("setLineJoin", setLineJoin_func, 0, 0),
- JS_FS("setLineWidth", setLineWidth_func, 0, 0),
+ JS_FN("setFontSize", setFontSize_func, 0, 0),
+ JS_FN("setFillRule", setFillRule_func, 0, 0),
+ JS_FN("setLineCap", setLineCap_func, 0, 0),
+ JS_FN("setLineJoin", setLineJoin_func, 0, 0),
+ JS_FN("setLineWidth", setLineWidth_func, 0, 0),
// setMatrix
- JS_FS("setMiterLimit", setMiterLimit_func, 0, 0),
- JS_FS("setOperator", setOperator_func, 0, 0),
+ JS_FN("setMiterLimit", setMiterLimit_func, 0, 0),
+ JS_FN("setOperator", setOperator_func, 0, 0),
// setScaledFont
- JS_FS("setSource", setSource_func, 0, 0),
- JS_FS("setSourceRGB", setSourceRGB_func, 0, 0),
- JS_FS("setSourceRGBA", setSourceRGBA_func, 0, 0),
- JS_FS("setSourceSurface", setSourceSurface_func, 0, 0),
- JS_FS("setTolerance", setTolerance_func, 0, 0),
+ JS_FN("setSource", setSource_func, 0, 0),
+ JS_FN("setSourceRGB", setSourceRGB_func, 0, 0),
+ JS_FN("setSourceRGBA", setSourceRGBA_func, 0, 0),
+ JS_FN("setSourceSurface", setSourceSurface_func, 0, 0),
+ JS_FN("setTolerance", setTolerance_func, 0, 0),
// showGlyphs
- JS_FS("showPage", showPage_func, 0, 0),
- JS_FS("showText", showText_func, 0, 0),
+ JS_FN("showPage", showPage_func, 0, 0),
+ JS_FN("showText", showText_func, 0, 0),
// showTextGlyphs
- JS_FS("stroke", stroke_func, 0, 0),
- JS_FS("strokeExtents", strokeExtents_func, 0, 0),
- JS_FS("strokePreserve", strokePreserve_func, 0, 0),
+ JS_FN("stroke", stroke_func, 0, 0),
+ JS_FN("strokeExtents", strokeExtents_func, 0, 0),
+ JS_FN("strokePreserve", strokePreserve_func, 0, 0),
// textPath
// textExtends
// transform
- JS_FS("translate", translate_func, 0, 0),
- JS_FS("userToDevice", userToDevice_func, 0, 0),
- JS_FS("userToDeviceDistance", userToDeviceDistance_func, 0, 0),
- JS_FS_END
-};
+ JS_FN("translate", translate_func, 0, 0),
+ JS_FN("userToDevice", userToDevice_func, 0, 0),
+ JS_FN("userToDeviceDistance", userToDeviceDistance_func, 0, 0),
+ JS_FS_END};
JSFunctionSpec gjs_cairo_context_static_funcs[] = { JS_FS_END };