|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Non-Apple platform alternative for the Cocoa viewer ABI. More...
#include "ra8_viewer_view.h"Go to the source code of this file.
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. | |
Non-Apple platform alternative for the Cocoa viewer ABI.
Reports the absence of a desktop view without allocating a fake handle, while preserving the caller-workspace API on headless hosts.
Definition in file ra8_viewer_view_stub.c.
| 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().