/* Ofront+ 1.0 -sC -48 */

#ifndef libNuklear__oh
#define libNuklear__oh

#include "SYSTEM.oh"

typedef
  struct libNuklear_Context {
    char _prvt0[1];
  } libNuklear_Context;

typedef
  struct libNuklear_Rect {
    SHORTREAL x, y, w, h;
  } libNuklear_Rect;

typedef
  CHAR *libNuklear_char_ptr;





#define libNuklear_Begin(ctx, title, bounds, flags)  (nk_begin(ctx, title, bounds, flags) != 0)
#define libNuklear_ButtonLabel(ctx, title)  (nk_button_label(ctx, title) != 0)
#define libNuklear_EditString(ctx, flags, buffer, len, max)  nk_edit_string(ctx, flags, buffer, len, max, nk_filter_default)
#define libNuklear_End(ctx)  nk_end(ctx)
#define libNuklear_Label(ctx, text, align)  nk_label(ctx, text, align)
#define libNuklear_LayoutRow(ctx, layout_format, height, cols, ratio)  nk_layout_row(ctx, layout_format, height, cols, ratio)
#define libNuklear_LayoutRowDynamic(ctx, height, cols)  nk_layout_row_dynamic(ctx, height, cols)
#define libNuklear_LayoutRowStatic(ctx, height, item_width, cols)  nk_layout_row_static(ctx, height, item_width, cols)
#define libNuklear_RGB(r, g, b)  nk_rgb(r, g, b)
#define libNuklear_RectStruct(x, y, w, h, rect)  rect = nk_rect(x, y, w, h)
#define libNuklear_Color struct nk_color
#define libNuklear_Context struct nk_context
#define libNuklear_Rect struct nk_rect

#endif
