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;