Files
kryon/include/app_runtime.h
T
2026-08-01 09:59:24 -03:00

23 lines
535 B
C

#ifndef APP_RUNTIME_H
#define APP_RUNTIME_H
#include "app_host.h"
typedef struct App {
void *app;
const AppRouteInfo *routes;
int route_count;
int selected_route;
} App;
typedef AppRouteInfo AppScreen;
void BindAppHost(App *app, AppHost *host);
int GetAppScreenCount(AppHost *host);
AppScreenInfo GetAppScreen(AppHost *host, int index);
void SetAppScreen(AppHost *host, int index);
int SetAppScreenBySourcePath(AppHost *host, const char *source_path);
void DrawAppScreen(AppHost *host, Rectangle viewport);
#endif