AmigaChromeA new chapter for the Amiga

API docs / Open libraries / gadtools.library

API · Libraries

gadtools.library jump table

Our open gadtools.library: 19 calls with the same LVOs and registers as AmigaOS 3.2's, checked against the NDK 3.2 .fd file.

gadtools.library's jump table, as OpenGadTools builds it: LVO, call, registers. build-amiga.sh (with ../../common/check_fd.py) checks this against the NDK 3.2 gadtools_lib.fd in the stove and stops on any difference; opengadtools_lib.c's lib_vectors[] follows it line for line. The fd keeps -138..-168 private (six slots, before V39's GT_GetGadgetAttrsA at -174); ours answer 0. Core class (OPEN_LIBRARIES.md, section 5): the gadget, menu and filter calls are locked (one semaphore over the gadget registry and the filter's copies); GetVisualInfoA, FreeVisualInfo, GT_RefreshWindow, GT_BeginRefresh, GT_EndRefresh, DrawBevelBoxA, GT_GetIMsg and GT_ReplyIMsg are anchored (Intuition, graphics and the window's port).

25 slots, 19 public
LVOCallRegistersNotes
-30CreateGadgetAd0, a0, a1, a2
-36FreeGadgetsa0
-42GT_SetGadgetAttrsAa0, a1, a2, a3
-48CreateMenusAa0, a1
-54FreeMenusa0
-60LayoutMenuItemsAa0, a1, a2
-66LayoutMenusAa0, a1, a2
-72GT_GetIMsga0
-78GT_ReplyIMsga1
-84GT_RefreshWindowa0, a1
-90GT_BeginRefresha0
-96GT_EndRefresha0, d0
-102GT_FilterIMsga1
-108GT_PostFilterIMsga1
-114CreateContexta0
-120DrawBevelBoxAa0, d0, d1, d2, d3, a1
-126GetVisualInfoAa0, a1
-132FreeVisualInfoa0
-138privatenone
-144privatenone
-150privatenone
-156privatenone
-162privatenone
-168privatenone
-174GT_GetGadgetAttrsAa0, a1, a2, a3