Module Newt_int


module Newt_int: sig .. end
Newt_int is the internal, unsafe module for access to the newt text window system. You should not use this directly. Instead use the Newt module for safe access.


type newtColorSet =
| NEWT_COLORSET_ROOT
| NEWT_COLORSET_BORDER
| NEWT_COLORSET_WINDOW
| NEWT_COLORSET_SHADOW
| NEWT_COLORSET_TITLE
| NEWT_COLORSET_BUTTON
| NEWT_COLORSET_ACTBUTTON
| NEWT_COLORSET_CHECKBOX
| NEWT_COLORSET_ACTCHECKBOX
| NEWT_COLORSET_ENTRY
| NEWT_COLORSET_LABEL
| NEWT_COLORSET_LISTBOX
| NEWT_COLORSET_ACTLISTBOX
| NEWT_COLORSET_TEXTBOX
| NEWT_COLORSET_ACTTEXTBOX
| NEWT_COLORSET_HELPLINE
| NEWT_COLORSET_ROOTTEXT
| NEWT_COLORSET_EMPTYSCALE
| NEWT_COLORSET_FULLSCALE
| NEWT_COLORSET_DISENTRY
| NEWT_COLORSET_COMPACTBUTTON
| NEWT_COLORSET_ACTSELLISTBOX
| NEWT_COLORSET_SELLISTBOX

type newtColors = {
   rootFg : string;
   rootBg : string;
   borderFg : string;
   borderBg : string;
   windowFg : string;
   windowBg : string;
   shadowFg : string;
   shadowBg : string;
   titleFg : string;
   titleBg : string;
   buttonFg : string;
   buttonBg : string;
   actButtonFg : string;
   actButtonBg : string;
   checkboxFg : string;
   checkboxBg : string;
   actCheckboxFg : string;
   actCheckboxBg : string;
   entryFg : string;
   entryBg : string;
   labelFg : string;
   labelBg : string;
   listboxFg : string;
   listboxBg : string;
   actListboxFg : string;
   actListboxBg : string;
   textboxFg : string;
   textboxBg : string;
   actTextboxFg : string;
   actTextboxBg : string;
   helpLineFg : string;
   helpLineBg : string;
   rootTextFg : string;
   rootTextBg : string;
   emptyScale : string;
   fullScale : string;
   disabledEntryFg : string;
   disabledEntryBg : string;
   compactButtonFg : string;
   compactButtonBg : string;
   actSelListboxFg : string;
   actSelListboxBg : string;
   selListboxFg : string;
   selListboxBg : string;
}
type newtFlagsSense =
| NEWT_FLAGS_SET
| NEWT_FLAGS_RESET
| NEWT_FLAGS_TOGGLE
type newtComponent 

type newtExitStructReason =
| NEWT_EXIT_HOTKEY
| NEWT_EXIT_COMPONENT
| NEWT_EXIT_FDREADY
| NEWT_EXIT_TIMER

type union_6 =
| NEWT_EXIT_TIMER of int
| NEWT_EXIT_HOTKEY of int
| NEWT_EXIT_COMPONENT of newtComponent
type newtExitStruct = union_6 
type newtGrid 

type newtGridElement =
| NEWT_GRID_EMPTY
| NEWT_GRID_COMPONENT
| NEWT_GRID_SUBGRID
val nEWT_FLAG_RETURNEXIT : int
Newt_int is the internal, unsafe module for access to the newt text window system. You should not use this directly. Instead use the Newt module for safe access.
val nEWT_FLAG_HIDDEN : int
val nEWT_FLAG_SCROLL : int
val nEWT_FLAG_DISABLED : int
val nEWT_FLAG_BORDER : int
val nEWT_FLAG_WRAP : int
val nEWT_FLAG_NOF12 : int
val nEWT_FLAG_MULTIPLE : int
val nEWT_FLAG_SELECTED : int
val nEWT_FLAG_CHECKBOX : int
val nEWT_FLAG_PASSWORD : int
val nEWT_FLAG_SHOWCURSOR : int
val nEWT_FD_READ : int
val nEWT_FD_WRITE : int
val nEWT_FD_EXCEPT : int
val nEWT_CHECKBOXTREE_UNSELECTABLE : int
val nEWT_CHECKBOXTREE_HIDE_BOX : int
val nEWT_CHECKBOXTREE_COLLAPSED : char
val nEWT_CHECKBOXTREE_EXPANDED : char
val nEWT_CHECKBOXTREE_UNSELECTED : char
val nEWT_CHECKBOXTREE_SELECTED : char
val newtInit : unit -> int
val newtFinished : unit -> int
val newtCls : unit -> unit
val newtResizeScreen : int -> unit
val newtWaitForKey : unit -> unit
val newtClearKeyBuffer : unit -> unit
val newtDelay : int -> unit
val newtOpenWindow : int -> int -> int -> int -> string -> int
val newtCenteredWindow : int -> int -> string -> int
val newtPopWindow : unit -> unit
val newtPopWindowNoRefresh : unit -> unit
val newtSetColors : newtColors -> unit
val newtSetColor : newtColorSet -> string -> string -> unit
val newtRefresh : unit -> unit
val newtSuspend : unit -> unit
val newtResume : unit -> int
val newtPushHelpLine : string -> unit
val newtRedrawHelpLine : unit -> unit
val newtPopHelpLine : unit -> unit
val newtDrawRootText : int -> int -> string -> unit
val newtBell : unit -> unit
val newtCursorOff : unit -> unit
val newtCursorOn : unit -> unit
val newtCompactButton : int -> int -> string -> newtComponent
val newtButton : int -> int -> string -> newtComponent
val newtCheckboxGetValue : newtComponent -> char
val newtCheckboxSetValue : newtComponent -> char -> unit
val newtCheckboxSetFlags : newtComponent -> int -> newtFlagsSense -> unit
val newtRadioGetCurrent : newtComponent -> newtComponent
val newtGetScreenSize : unit -> int * int
val newtLabel : int -> int -> string -> newtComponent
val newtLabelSetText : newtComponent -> string -> unit
val newtVerticalScrollbar : int ->
int ->
int ->
newtColorSet -> newtColorSet -> newtComponent
val newtScrollbarSet : newtComponent -> int -> int -> unit
val newtListbox : int -> int -> int -> int -> newtComponent
val newtListboxSetCurrent : newtComponent -> int -> unit
val newtListboxSetEntry : newtComponent -> int -> string -> unit
val newtListboxSetWidth : newtComponent -> int -> unit
val newtListboxClear : newtComponent -> unit
val newtListboxClearSelection : newtComponent -> unit
val newtListboxItemCount : newtComponent -> int
val newtCheckboxTree : int -> int -> int -> int -> newtComponent
val newtCheckboxTreeMulti : int -> int -> int -> string -> int -> newtComponent
val newtCheckboxTreeSetWidth : newtComponent -> int -> unit
val newtTextboxReflowed : int -> int -> string -> int -> int -> int -> int -> newtComponent
val newtTextbox : int -> int -> int -> int -> int -> newtComponent
val newtTextboxSetText : newtComponent -> string -> unit
val newtTextboxSetHeight : newtComponent -> int -> unit
val newtTextboxGetNumLines : newtComponent -> int
val newtReflowText : string -> int -> int -> int -> string * int * int
val newtFormSetTimer : newtComponent -> int -> unit
val newtFormWatchFd : newtComponent -> int -> int -> unit
val newtFormSetSize : newtComponent -> unit
val newtFormGetCurrent : newtComponent -> newtComponent
val newtFormSetBackground : newtComponent -> int -> unit
val newtFormSetCurrent : newtComponent -> newtComponent -> unit
val newtFormAddComponent : newtComponent -> newtComponent -> unit
val newtFormSetHeight : newtComponent -> int -> unit
val newtFormSetWidth : newtComponent -> int -> unit
val newtFormRun : newtComponent -> newtExitStruct
val newtDrawForm : newtComponent -> unit
val newtFormAddHotKey : newtComponent -> int -> unit
val newtEntry : int ->
int -> string -> int -> char option option -> int -> newtComponent
val newtEntrySet : newtComponent -> string -> bool -> unit
val newtEntryGetValue : newtComponent -> string
val newtEntrySetFlags : newtComponent -> int -> newtFlagsSense -> unit
val newtScale : int -> int -> int -> int64 -> newtComponent
val newtScaleSet : newtComponent -> int64 -> unit
val newtComponentTakesFocus : newtComponent -> bool -> unit
val newtFormDestroy : newtComponent -> unit
val newtComponentDestroy : newtComponent -> unit
val nEWT_KEY_TAB : int
val nEWT_KEY_ENTER : int
val nEWT_KEY_RETURN : int
val nEWT_KEY_SUSPEND : int
val nEWT_KEY_ESCAPE : int
val nEWT_KEY_EXTRA_BASE : int
val nEWT_KEY_UP : int
val nEWT_KEY_DOWN : int
val nEWT_KEY_LEFT : int
val nEWT_KEY_RIGHT : int
val nEWT_KEY_BKSPC : int
val nEWT_KEY_DELETE : int
val nEWT_KEY_HOME : int
val nEWT_KEY_END : int
val nEWT_KEY_UNTAB : int
val nEWT_KEY_PGUP : int
val nEWT_KEY_PGDN : int
val nEWT_KEY_INSERT : int
val nEWT_KEY_F1 : int
val nEWT_KEY_F2 : int
val nEWT_KEY_F3 : int
val nEWT_KEY_F4 : int
val nEWT_KEY_F5 : int
val nEWT_KEY_F6 : int
val nEWT_KEY_F7 : int
val nEWT_KEY_F8 : int
val nEWT_KEY_F9 : int
val nEWT_KEY_F10 : int
val nEWT_KEY_F11 : int
val nEWT_KEY_F12 : int
val nEWT_KEY_RESIZE : int
val nEWT_ANCHOR_LEFT : int
val nEWT_ANCHOR_RIGHT : int
val nEWT_ANCHOR_TOP : int
val nEWT_ANCHOR_BOTTOM : int
val nEWT_GRID_FLAG_GROWX : int
val nEWT_GRID_FLAG_GROWY : int
val newtCreateGrid : int -> int -> newtGrid
val newtGridBasicWindow : newtComponent ->
newtGrid -> newtGrid -> newtGrid
val newtGridSimpleWindow : newtComponent ->
newtComponent -> newtGrid -> newtGrid
val newtGridPlace : newtGrid -> int -> int -> unit
val newtGridFree : newtGrid -> int -> unit
val newtGridGetSize : newtGrid -> int option -> int option -> unit
val newtGridWrappedWindow : newtGrid -> string -> unit
val newtGridWrappedWindowAt : newtGrid -> string -> int -> int -> unit
val newtGridAddComponentsToForm : newtGrid -> newtComponent -> int -> unit
val newtCheckbox : int -> int -> string -> char -> string option -> newtComponent
val newtRadiobutton : int ->
int ->
string -> bool -> newtComponent option -> newtComponent
val newtListboxGetCurrent : newtComponent -> int option
val newtListboxSetCurrentByKey : newtComponent -> int -> unit
val newtListboxSetData : newtComponent -> int -> int -> unit
val newtListboxAppendEntry : newtComponent -> string -> int -> int
val newtListboxInsertEntry : newtComponent -> string -> int -> int option -> int
val newtListboxDeleteEntry : newtComponent -> int -> int
val newtListboxGetEntry : newtComponent -> int -> string * int
val newtListboxGetSelection : newtComponent -> int array
val newtListboxSelectItem : newtComponent -> int -> newtFlagsSense -> unit
val newtForm : newtComponent option ->
string option -> int -> newtComponent
val newtRunForm : newtComponent -> newtComponent option
val newtComponentAddCallback : newtComponent -> (unit -> unit) -> unit
val newtComponentAddress : newtComponent -> int64