summaryrefslogtreecommitdiffstatshomepage
path: root/docs/source
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2023-11-04 00:37:48 +1100
committer Vas Crabb <vas@vastheman.com>2023-11-04 00:37:48 +1100
commit6e60af32c1e2c2a91937d9184778dad97182f36e (patch)
treec5645d074ecff8d23eba2d6e87bcd4587da0969d /docs/source
parentddbdbb3a616a704a9d0bb43731e424b2bf98ba2b (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')
-rw-r--r--docs/source/luascript/ref-mem.rst6
-rw-r--r--docs/source/techspecs/layout_script.rst22
2 files changed, 28 insertions, 0 deletions
diff --git a/docs/source/luascript/ref-mem.rst b/docs/source/luascript/ref-mem.rst
index 24c16670c47..0987889d3dc 100644
--- a/docs/source/luascript/ref-mem.rst
+++ b/docs/source/luascript/ref-mem.rst
@@ -419,6 +419,12 @@ manager.machine.devices[tag]:memregion(tag)
Methods
~~~~~~~
+region:read(offs, len)
+ Reads up to the specified length in bytes from the specified offset in the
+ memory region. The bytes read will be returned as a string. If the
+ specified length extends beyond the end of the memory region, the returned
+ string will be shorter than requested. Note that the data will be in host
+ byte order.
region:read_i{8,16,32,64}(offs)
Reads a signed integer value of the size in bits from the specified offset
in the memory region. The offset is specified in bytes. Reading beyond the
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.