ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
board_view_stub.c
Go to the documentation of this file.
1
21
22#include <stdint.h>
23
24#include "board_view.h"
25
36 uint16_t width_px,
37 uint16_t height_px,
38 const char* title)
39{
40 (void)storage;
41 (void)width_px;
42 (void)height_px;
43 (void)title;
44 return nullptr;
45}
46
54{
55 (void)view;
56 (void)presentation;
57}
58
66{
67 (void)view;
68 return true;
69}
70
79/* x/y are OUT parameters of the board_view.h contract: this headless backend
80 * never writes them, but the Cocoa backend (board_view.m) does, so the
81 * signature is fixed by the header both must satisfy. */
82// NOLINTNEXTLINE(readability-non-const-parameter) -- interface contract fixes this writable pointer type.
83bool board_view_poll_click(board_view_t* view, uint16_t* x, uint16_t* y)
84{
85 (void)view;
86 (void)x;
87 (void)y;
88 return false;
89}
90
99/* x/y are OUT parameters of the board_view.h contract: this headless backend
100 * never writes them, but the Cocoa backend (board_view.m) does, so the
101 * signature is fixed by the header both must satisfy. */
102// NOLINTNEXTLINE(readability-non-const-parameter) -- interface contract fixes this writable pointer type.
103bool board_view_poll_drag(board_view_t* view, uint16_t* x, uint16_t* y)
104{
105 (void)view;
106 (void)x;
107 (void)y;
108 return false;
109}
110
118{
119 (void)view;
120 return false;
121}
122
130{
131 (void)view;
132 return 0;
133}
134
141{
142 (void)view;
143}
Minimal self-contained macOS window for the board emulator.
struct board_view board_view_t
Opaque desktop-window handle (defined in board_view.m).
Definition board_view.h:31
bool board_view_poll_click(board_view_t *view, uint16_t *x, uint16_t *y)
No-op click poll (no window can report a mouse-down).
bool board_view_poll_drag(board_view_t *view, uint16_t *x, uint16_t *y)
No-op drag poll (headless: no window to drag).
bool board_view_pump(board_view_t *view)
No-op event pump; report the (absent) window as closed.
void board_view_present(board_view_t *view, emu_presentation_workspace_t *presentation)
No-op surface presentation (no window to present to).
board_view_t * board_view_open(board_view_storage_t *storage, uint16_t width_px, uint16_t height_px, const char *title)
Report that no desktop window is available on this build.
bool board_view_poll_release(board_view_t *view)
No-op release poll (headless: no window, no mouse-up events).
int32_t board_view_poll_scroll(board_view_t *view)
No-op scroll poll (headless: no window to scroll).
void board_view_close(board_view_t *view)
No-op window close (nothing was opened).
Caller-owned pointer-aligned storage for one platform view handle.
Definition board_view.h:34
One independent owned surface plus non-owning bounded scratch.