Files
core/gui/window/darwin.h
T
terminarandClaude Opus 5.5 31dbc347e8 gui/window: keep the window frame across starts, take the first click
- Options.FrameFile: the window's position, size and maximized state in
  a small JSON file, read at New (a frame on no connected screen is
  ignored, the window opens centered), written shortly after every move
  or resize and at Destroy. macOS: NSWindow frame (the normal frame
  under a zoomed one), checked against NSScreen visible frames; Windows:
  Get/SetWindowPlacement, checked with MonitorFromRect.
- macOS: the web view is a WKWebView subclass that accepts the first
  mouse click, so a page in an inactive window reacts to it instead of
  the click only activating the window (yanks' start dialog).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:19:45 +01:00

23 lines
889 B
C

#ifndef YETANO_WINDOW_DARWIN_H
#define YETANO_WINDOW_DARWIN_H
#include <stdint.h>
void *yt_create(uintptr_t goHandle, const char *title, int width, int height, int debug, const char *scheme,
int hasFrame, int fx, int fy, int fw, int fh, int zoomed);
void yt_add_script(void *h, const char *js);
void yt_navigate(void *h, const char *url);
void yt_eval(void *h, const char *js);
void yt_dispatch(uintptr_t fn);
void yt_run(void);
void yt_stop(void);
void yt_destroy(void *h);
void yt_task_respond(void *h, long tid, int status, const char *headersJSON, const char *url);
void yt_task_data(void *h, long tid, const void *data, int n);
void yt_task_finish(void *h, long tid, const char *err);
void yt_snapshot(void *h, const char *path);
void yt_set_appearance(void *h, int mode);
void yt_accent_color(char *buf, int n);
void yt_set_app_icon(const void *png, int n);
#endif