2026-10-23 14:47:26 +02:00
|
|
|
#ifndef YETANO_WINDOW_DARWIN_H
|
|
|
|
|
#define YETANO_WINDOW_DARWIN_H
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
2026-11-15 15:19:45 +01:00
|
|
|
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);
|
2026-10-23 14:47:26 +02:00
|
|
|
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);
|
2026-11-27 23:41:23 +01:00
|
|
|
void yt_file_dialog(void *h, int save, const char *title, const char *dir, const char *name, const char *types);
|
2026-10-23 14:47:26 +02:00
|
|
|
|
|
|
|
|
#endif
|