/* Ofront+ 1.0 -sw7 -48 */

#ifndef TermBox__oh
#define TermBox__oh

#include "SYSTEM.oh"
#include "Graph.oh"

typedef
  struct TermBox_Event {
    INTEGER type, x, y, w, h, button, key;
    LONGCHAR ch;
    SET mod;
  } TermBox_Event;

typedef
  struct TermBox_PartDesc *TermBox_Part;

typedef
  struct TermBox_PartDesc {
    INTEGER _prvt0;
    char _prvt1[3145744];
  } TermBox_PartDesc;


import BOOLEAN TermBox_Done;

import SYSTEM_ADRINT *TermBox_Event__typ;
import SYSTEM_ADRINT *TermBox_PartDesc__typ;

import void TermBox_Clear (void);
import void TermBox_ClearTo (INTEGER fg, INTEGER bg);
import void TermBox_Close (void);
import void TermBox_Delay (INTEGER ms);
import void TermBox_Fill (INTEGER x, INTEGER y, INTEGER w, INTEGER h, LONGCHAR ch, INTEGER fg, INTEGER bg);
import void TermBox_Flush (void);
import void TermBox_GetCell (INTEGER x, INTEGER y, LONGCHAR *ch, INTEGER *fg, INTEGER *bg);
import Graph_Window TermBox_GetWindow (void);
import BOOLEAN TermBox_HasEvents (void);
import void TermBox_HideCursor (void);
import void TermBox_HideMouse (void);
import void TermBox_Init (void);
import BOOLEAN TermBox_IsFS (void);
import BOOLEAN TermBox_PeekEvent (TermBox_Event *event, SYSTEM_ADRINT *event__typ);
import void TermBox_Print (INTEGER x, INTEGER y, INTEGER limit, LONGCHAR *s, INTEGER s__len, INTEGER fg, INTEGER bg);
import void TermBox_SetBg (INTEGER x, INTEGER y, INTEGER bg);
import void TermBox_SetCell (INTEGER x, INTEGER y, LONGCHAR ch, INTEGER fg, INTEGER bg);
import void TermBox_SetChar (INTEGER x, INTEGER y, LONGCHAR ch);
import void TermBox_SetCursor (INTEGER x, INTEGER y);
import void TermBox_SetFg (INTEGER x, INTEGER y, INTEGER fg);
import void TermBox_SetFontFile (LONGCHAR *s, INTEGER s__len);
import void TermBox_SetIcon (LONGCHAR *s, INTEGER s__len);
import void TermBox_SetScale (SHORTREAL x, SHORTREAL y);
import void TermBox_SetTitle (LONGCHAR *title, INTEGER title__len);
import void TermBox_SetZoom (INTEGER zoom);
import void TermBox_SetZoomF (SHORTREAL zoom);
import void TermBox_Settings (INTEGER w, INTEGER h, SET flags);
import void TermBox_ShowMouse (void);
import void TermBox_Size (INTEGER *width, INTEGER *height);
import void TermBox_StartTimer (SHORTREAL speed);
import void TermBox_SwitchToFS (void);
import void TermBox_SwitchToWindow (void);
import void TermBox_Sync (void);
import void TermBox_TESTCB (LONGCHAR *s, INTEGER s__len);
import void TermBox_WaitEvent (TermBox_Event *event, SYSTEM_ADRINT *event__typ);
import void *TermBox__init (void);


#endif
