Files
core/gui/window/darwin.h
T

21 lines
815 B
C
Raw Normal View History

#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);
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