Skip to Content
Amiga Assembly Library v41.21 — Motorola 68020 shared library for Commodore Amiga
DocumentationREI InterfaceOverview

REI Interface Module

REI (Requester/Interface) is a custom windowing and interface system built on top of Intuition. It manages windows, screens, gadgets, menus, and provides a message-based event system. REI interfaces are designed with the REI-Editor tool and loaded at runtime, allowing the separation of UI layout from application logic.

The REI system provides automatic event handling, including keyboard shortcuts for gadgets, double-click detection, and Hook-based callback dispatching through the WaitREIMsg() event loop.

Window Lifecycle Functions

  • OpenREIA — Opens and displays a specific REI on screen, with optional tag-based attribute overrides.
  • CloseREI — Hides a REI without freeing its memory, allowing it to be reopened later.
  • FindREI — Finds a REI structure by name in the internal list.
  • ActiveREI — Returns the REI associated with the currently active window.

Window State Functions

  • LockREI — Blocks all user input on a REI, setting the mouse pointer to the busy state.
  • UnlockREI — Restores user input on a previously locked REI.
  • RefreshREI — Redraws all gadgets, borders, and window elements of a REI.

Event Handling

  • WaitREIMsg — Main event loop that processes all REI events, including automatic gadget keyboard control and Hook dispatch.

Information and Attributes

  • InterfaceInfo — Displays an information requester about the current interface.
  • SetREIAttrsA — Dynamically sets the attributes of a currently displayed REI.
  • GetREIAttrsA — Retrieves the attributes of a REI into a tag list.
Last updated on