Scripting: Add missing docs to canvas

This commit is contained in:
Vicki Pfau 2023-05-03 01:37:56 -07:00
parent 608029e930
commit 74a72a5c07
1 changed files with 5 additions and 0 deletions

View File

@ -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;