From 6e60af32c1e2c2a91937d9184778dad97182f36e Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sat, 4 Nov 2023 00:37:48 +1100 Subject: 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. --- docs/source/techspecs/layout_script.rst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'docs/source/techspecs') 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 `, :ref:`bounds ` and :ref:`colour ` 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 `. * ``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. -- cgit v1.2.3-70-g09d2