From 74a72a5c071bbefa90c7d67a0b1d4c6227f17d9a Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Wed, 3 May 2023 01:37:56 -0700 Subject: [PATCH] Scripting: Add missing docs to canvas --- src/script/canvas.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/script/canvas.c b/src/script/canvas.c index 7d8a725d1..5e931943d 100644 --- a/src/script/canvas.c +++ b/src/script/canvas.c @@ -262,10 +262,15 @@ mSCRIPT_DEFINE_STRUCT(mScriptCanvasContext) mSCRIPT_DEFINE_STRUCT_DEINIT(mScriptCanvasContext) mSCRIPT_DEFINE_DOCSTRING("Create a new layer of a given size. If multiple layers overlap, the most recently created one takes priority.") mSCRIPT_DEFINE_STRUCT_METHOD(mScriptCanvasContext, newLayer) + mSCRIPT_DEFINE_DOCSTRING("Update all layers marked as having pending changes") mSCRIPT_DEFINE_STRUCT_METHOD(mScriptCanvasContext, update) + mSCRIPT_DEFINE_DOCSTRING("Get the width of the canvas") mSCRIPT_DEFINE_STRUCT_METHOD(mScriptCanvasContext, width) + mSCRIPT_DEFINE_DOCSTRING("Get the height of the canvas") mSCRIPT_DEFINE_STRUCT_METHOD(mScriptCanvasContext, height) + mSCRIPT_DEFINE_DOCSTRING("Get the width of the emulated screen") mSCRIPT_DEFINE_STRUCT_METHOD(mScriptCanvasContext, screenWidth) + mSCRIPT_DEFINE_DOCSTRING("Get the height of the emulated screen") mSCRIPT_DEFINE_STRUCT_METHOD(mScriptCanvasContext, screenHeight) mSCRIPT_DEFINE_END;