diff options
author | 2023-11-04 00:37:48 +1100 | |
---|---|---|
committer | 2023-11-04 00:37:48 +1100 | |
commit | 6e60af32c1e2c2a91937d9184778dad97182f36e (patch) | |
tree | c5645d074ecff8d23eba2d6e87bcd4587da0969d /docs/source/techspecs/layout_script.rst | |
parent | ddbdbb3a616a704a9d0bb43731e424b2bf98ba2b (diff) |
sega/sega_beena.cpp: Added basic book page display.
sega_beena_cart.xml: Put page scans in individual data areas.
frontend/mame/luaengine_mem.cpp: Added a raw read function for memory
regions.
plugins/layout: Added bitmap classes to layout sandbox.
Diffstat (limited to 'docs/source/techspecs/layout_script.rst')
-rw-r--r-- | docs/source/techspecs/layout_script.rst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/source/techspecs/layout_script.rst b/docs/source/techspecs/layout_script.rst index 370b3eac152..d8949c65e7c 100644 --- a/docs/source/techspecs/layout_script.rst +++ b/docs/source/techspecs/layout_script.rst @@ -484,6 +484,10 @@ providing what’s needed: creating :ref:`attotime <luascript-ref-attotime>`, :ref:`bounds <luascript-ref-renderbounds>` and :ref:`colour <luascript-ref-rendercolor>` objects. +* ``emu.bitmap_ind8``, ``emu.bitmap_ind16``, ``emu.bitmap_ind32``, + ``emu.bitmap_ind64``, ``emu.bitmap_yuy16``, ``emu.bitmap_rgb32`` and + ``emu.bitmap_argb32`` objects for creating + :ref:`bitmaps <luascript-ref-bitmap>`. * ``emu.print_verbose``, ``emu.print_error``, ``emu.print_warning``, ``emu.print_info`` and ``emu.print_debug`` functions for diagnostic output. * Standard Lua ``tonumber``, ``tostring``, ``pairs`` and ``ipairs`` functions, @@ -667,3 +671,21 @@ Get item vertical scroll position item; larger values pan down. Call with ``nil`` as the argument to restore the default vertical scroll position handler (based on bindings in the ``yscroll`` child element). + +.. _layscript-events-element: + +Layout element events +~~~~~~~~~~~~~~~~~~~~~ + +Layout element events apply to an individual visual element definition. + +Draw + ``element:set_draw_callback(cb)`` + + Set callback for additional drawing after the element’s components have been + drawn. This gives the script direct control over the final texture when an + element item is drawn. + + The callback is passed two arguments: the element state (an integer) and the + 32-bit ARGB bitmap at the required size. The callback must not attempt to + resize the bitmap. |