#ifndef TOOLKIT_H
#define TOOLKIT_H
#include <inttypes.h>
#include "../ui/toolkit.h"
#include "../common/context.h"
#include "../common/object.h"
#ifdef __cplusplus
extern "C" {
#endif
Display* ui_get_display();
typedef struct UiEventData {
UiObject *obj;
ui_callback callback;
void *userdata;
int value;
} UiEventData;
typedef struct UiJob {
UiObject *obj;
ui_threadfunc job_func;
void *job_data;
ui_callback finish_callback;
void *finish_data;
} UiJob;
typedef enum UiOrientation UiOrientation;
enum UiOrientation {
UI_HORIZONTAL =
0,
UI_VERTICAL };
void ui_exit_mainloop();
void ui_set_active_window(Widget w);
Widget ui_get_active_window();
void ui_secondary_event_loop(
int *loop);
void ui_window_dark_theme(Display *dp, Window window);
#ifdef __cplusplus
}
#endif
#endif