|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Caller-owned C ABI for the Cocoa scrolling JOF view. More...
Go to the source code of this file.
Data Structures | |
| struct | ra8_viewer_view_requirements_t |
| Exact first-party workspace required by one platform view. More... | |
Typedefs | |
| typedef struct ra8_viewer_view | ra8_viewer_view_t |
| Opaque view state bound inside caller workspace. | |
Functions | |
| ra8_err_t | ra8_viewer_view_requirements (const ra8_viewer_reader_t *reader, ra8_viewer_view_requirements_t *out) |
Calculate the exact view workspace for reader. | |
| ra8_err_t | ra8_viewer_view_open (ra8_viewer_view_t **out, ra8_viewer_reader_t *reader, const char *title, void *workspace, size_t workspace_bytes, const ra8_viewer_view_requirements_t *requirements, ra8_viewer_workspace_report_t *report) |
| Open a scrolling window into caller-owned first-party workspace. | |
| bool | ra8_viewer_view_pump (ra8_viewer_view_t *view) |
| Drain pending events; true after the window closes. | |
| void | ra8_viewer_view_close (ra8_viewer_view_t *view) |
| Close the window and reset borrowed view state without freeing it. | |
Caller-owned C ABI for the Cocoa scrolling JOF view.
First-party C state, layout arrays, and pixel conversion scratch are bound from caller storage. AppKit and CoreGraphics object ownership remains an explicit platform/SOUP dependency and is not represented as first-party heap.
Definition in file ra8_viewer_view.h.
| typedef struct ra8_viewer_view ra8_viewer_view_t |
Opaque view state bound inside caller workspace.
Definition at line 24 of file ra8_viewer_view.h.
| void ra8_viewer_view_close | ( | ra8_viewer_view_t * | view | ) |
Close the window and reset borrowed view state without freeing it.
Removes notifications, closes AppKit objects, and clears C references.
| [in,out] | view | Bound view, or NULL. |
view is NULL or came from a successful open. Definition at line 48 of file ra8_viewer_view_stub.c.
Referenced by internal_run_window().
|
nodiscard |
Open a scrolling window into caller-owned first-party workspace.
| [out] | out | Receives the bound view on success. |
| [in] | reader | Open reader that outlives the view. |
| [in] | title | Optional NUL-terminated title. |
| [in,out] | workspace | Caller-owned backing. |
| [in] | workspace_bytes | Accessible backing extent. |
| [in] | requirements | Unmodified requirements result. |
| [out] | report | Exact required/supplied evidence. |
Definition at line 23 of file ra8_viewer_view_stub.c.
References k_ra8_err_not_supported, k_ra8_err_null_ptr, and ra8_viewer_view_requirements_t::required_bytes.
Referenced by internal_run_window().
|
nodiscard |
Drain pending events; true after the window closes.
Definition at line 42 of file ra8_viewer_view_stub.c.
Referenced by internal_run_window().
|
nodiscard |
Calculate the exact view workspace for reader.
Definition at line 13 of file ra8_viewer_view_stub.c.
References k_ra8_err_not_supported, and k_ra8_err_null_ptr.
Referenced by internal_run_window().