2022-08-05 14:23:39 -05:00
|
|
|
#ifndef NUKE_H
|
|
|
|
#define NUKE_H
|
|
|
|
|
2022-12-23 13:48:29 -06:00
|
|
|
#include "nuklear.h"
|
2022-08-05 14:23:39 -05:00
|
|
|
|
2022-11-03 16:58:03 -05:00
|
|
|
struct window;
|
2022-08-05 14:23:39 -05:00
|
|
|
|
2022-11-03 16:58:03 -05:00
|
|
|
void nuke_init(struct window *win);
|
2022-08-05 14:23:39 -05:00
|
|
|
void nuke_start();
|
|
|
|
void nuke_end();
|
|
|
|
|
2022-12-23 13:48:29 -06:00
|
|
|
int nuke_begin(const char *lbl, struct nk_rect rect, int flags);
|
2023-01-19 13:06:32 -06:00
|
|
|
int nuke_begin_win(const char *lbl);
|
2022-12-23 13:48:29 -06:00
|
|
|
void nuke_stop();
|
|
|
|
struct nk_rect nuke_win_get_bounds();
|
|
|
|
|
2022-12-15 17:30:22 -06:00
|
|
|
void nuke_property_float(const char *lbl, float min, float *val, float max, float step, float dragstep);
|
2022-12-23 13:48:29 -06:00
|
|
|
#define nuke_prop_float nuke_property_float
|
|
|
|
void nuke_property_float2(const char *label, float min, float *val, float max, float step, float dragstep);
|
|
|
|
void nuke_property_float3(const char *label, float min, float *val, float max, float step, float dragstep);
|
2022-08-19 11:25:08 -05:00
|
|
|
|
|
|
|
void nuke_property_int(const char *lbl, int min, int *val, int max, int step);
|
|
|
|
void nuke_radio_btn(const char *lbl, int *val, int cmp);
|
|
|
|
void nuke_checkbox(const char *lbl, int *val);
|
2022-08-17 00:01:51 -05:00
|
|
|
void nuke_nel(int cols);
|
|
|
|
void nuke_label(const char *s);
|
2022-08-19 11:25:08 -05:00
|
|
|
void nuke_prop_float(const char *label, float min, float *val, float max, float step, float dragstep);
|
2022-12-12 10:48:21 -06:00
|
|
|
void nuke_edit_str(char *str);
|
2022-08-19 11:25:08 -05:00
|
|
|
|
2022-12-23 13:48:29 -06:00
|
|
|
int nuke_push_tree_id(const char *name, int id);
|
|
|
|
void nuke_tree_pop();
|
|
|
|
|
2022-08-19 11:25:08 -05:00
|
|
|
int nuke_btn(const char *lbl);
|
|
|
|
|
2022-12-23 13:48:29 -06:00
|
|
|
void nuke_labelf(const char *fmt, ...);
|
2022-08-12 14:03:56 -05:00
|
|
|
|
2022-11-25 07:12:31 -06:00
|
|
|
#endif
|