mirror of https://github.com/mgba-emu/mgba.git
Scripting: Add missing docs to canvas
This commit is contained in:
parent
608029e930
commit
74a72a5c07
|
@ -262,10 +262,15 @@ mSCRIPT_DEFINE_STRUCT(mScriptCanvasContext)
|
||||||
mSCRIPT_DEFINE_STRUCT_DEINIT(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_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_STRUCT_METHOD(mScriptCanvasContext, newLayer)
|
||||||
|
mSCRIPT_DEFINE_DOCSTRING("Update all layers marked as having pending changes")
|
||||||
mSCRIPT_DEFINE_STRUCT_METHOD(mScriptCanvasContext, update)
|
mSCRIPT_DEFINE_STRUCT_METHOD(mScriptCanvasContext, update)
|
||||||
|
mSCRIPT_DEFINE_DOCSTRING("Get the width of the canvas")
|
||||||
mSCRIPT_DEFINE_STRUCT_METHOD(mScriptCanvasContext, width)
|
mSCRIPT_DEFINE_STRUCT_METHOD(mScriptCanvasContext, width)
|
||||||
|
mSCRIPT_DEFINE_DOCSTRING("Get the height of the canvas")
|
||||||
mSCRIPT_DEFINE_STRUCT_METHOD(mScriptCanvasContext, height)
|
mSCRIPT_DEFINE_STRUCT_METHOD(mScriptCanvasContext, height)
|
||||||
|
mSCRIPT_DEFINE_DOCSTRING("Get the width of the emulated screen")
|
||||||
mSCRIPT_DEFINE_STRUCT_METHOD(mScriptCanvasContext, screenWidth)
|
mSCRIPT_DEFINE_STRUCT_METHOD(mScriptCanvasContext, screenWidth)
|
||||||
|
mSCRIPT_DEFINE_DOCSTRING("Get the height of the emulated screen")
|
||||||
mSCRIPT_DEFINE_STRUCT_METHOD(mScriptCanvasContext, screenHeight)
|
mSCRIPT_DEFINE_STRUCT_METHOD(mScriptCanvasContext, screenHeight)
|
||||||
mSCRIPT_DEFINE_END;
|
mSCRIPT_DEFINE_END;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue