/****************************************************************************************/
/*                                                                                      */
/*              load_text.h                                                             */
/*                                                                                      */
/****************************************************************************************/

#ifndef _LOAD_TEXT_H_
#define _LOAD_TEXT_H_




#include "objects/text.h"




/************************************************************************************/
/*                                                                                  */
/*      Package des objets TExtes                                                   */
/*                                                                                  */
/************************************************************************************/

#define TEXTPKGSIZE 27

char * textpkgname [ TEXTPKGSIZE ] = {
    "_PAINTtext" , "_CRtext" , "_SETtext" , "_CReditLine" ,
    "_CReditText" , "_GETline" , "_GETtext" , "_GETlineCount" ,
    "_ADDtext" , "_SCROLLtext" , "_DELline" , "_CBtext" ,
    "_DStext" , "_GETtextSizePosition" , "_SIZEtext" , "_SHOWtext" ,   
    "_GETfirstLine", "_CBtextMove", "_CBtextSize" , "_GETtextPositionSize" ,
    "_POSITIONtext" , "_CBlineOk" , "_SETtextSize" ,"_SETfirstLine",
    "_SETtextFocus" ,"_CBtextDropFile","_ENtext" ,
  
} ;

char * textpkgtype [ TEXTPKGSIZE ] = {
    "fun [ ObjText ] ObjText" ,                             /* _paint_obj_text              */ 
    "fun [ Chn ObjWin I I I I I S ] ObjText" ,              /* _create_text                 */ 
    "fun [ ObjText S ] ObjText",                            /* _set_text                    */ 
    "fun [ Chn ObjWin I I I I I S ] ObjText",               /* _create_edit_line            */ 
    "fun [ Chn ObjWin I I I I I S ] ObjText",               /* _create_edit_text            */ 
    "fun [ ObjText I ] S",                                  /* _get_line                    */ 
    "fun [ ObjText ] S" ,                                   /* _get_text                    */ 
    "fun [ ObjText ] I",                                    /* _get_linecount               */ 
    "fun [ ObjText S ] ObjText",                            /* _add_text                    */ 
    "fun [ObjText I I ] ObjText" ,                          /* _scroll_text                 */ 
    "fun [ObjText I] ObjText" ,                             /* _del_text_line               */ 
    "fun [ObjText fun [ ObjText u0] u1 u0] ObjText" ,       /* _reflex_text_event           */ 
    "fun [ObjText] I" ,                                     /* _destroy_obj_text            */    
    "fun [ObjText] [ I I I I ]" ,                           /* _get_text_size_position      */ 
    "fun [ ObjText I I I I] ObjText" ,                      /* _size_position_window        */ 
    "fun [ ObjText I ] ObjText",                            /* _show_text                   */ 
    "fun [ ObjText ] I" ,                                   /* _get_first_line              */ 
    "fun [ ObjText fun [ ObjText u0 I I ] u1 u0] ObjText" , /* _reflex_text_move            */ 
    "fun [ ObjText fun [ ObjText u0 I I ] u1 u0] ObjText" , /* _reflex_text_size            */ 
    "fun [ ObjText ] [I I I I]" ,                           /* _get_text_position_size      */ 
    "fun [ ObjText I I I I ] ObjText" ,                     /* _set_position_size_text      */ 
    "fun [ ObjText fun [ ObjText u0 S ] u1 u0] ObjText" ,   /* _reflex_line_ok              */ 
    "fun [ ObjText I ] ObjText" ,                           /* _set_text_size               */ 
    "fun [ ObjText I ] ObjText" ,                           /* _set_first_line              */ 
    "fun [ ObjText ] ObjText",                              /*_set_text_focus               */ 
    "fun [ObjText fun[ObjText u0 I I [P r1]]u1 u0] ObjText",/* _reflex_text_drop_file       */ 
    "fun [ObjText I] ObjText",                              /* _enable_text                 */ 
  
    
} ;
#define NARG_PAINT_OBJ_TEXT             1
#define NARG_CREATE_TEXT                8
#define NARG_SET_TEXT                   2
#define NARG_CREATE_EDIT_LINE           8
#define NARG_CREATE_EDIT_TEXT           8
#define NARG_GET_LINE                   2
#define NARG_GET_TEXT                   1
#define NARG_GETLINECOUNT               1
#define NARG_ADD_TEXT                   2
#define NARG_SCROLL_TEXT                3
#define NARG_DEL_TEXT_LINE              2
#define NARG_REFLEX_TEXT_EVENT          3
#define NARG_DESTROY_OBJ_TEXT           1
#define NARG_SHOW_TEXT                  2
#define NARG_GET_FIRST_LINE             1
#define NARG_REFLEX_TEXT_MOVE           3
#define NARG_REFLEX_TEXT_SIZE           3
#define NARG_REFLEX_LINEOK              3
#define NARG_SET_TEXT_SIZE              2
#define NARG_SET_FIRST_LINE             2
#define NARG_SET_TEXT_FOCUS             1
#define NARG_REFLEX_TEXT_DROPFILE       3

int textpkgarg [ TEXTPKGSIZE ] = {
    NARG_PAINT_OBJ_TEXT , NARG_CREATE_TEXT , NARG_SET_TEXT , NARG_CREATE_EDIT_LINE ,
    NARG_CREATE_EDIT_TEXT , NARG_GET_LINE , NARG_GET_TEXT , NARG_GETLINECOUNT ,
    NARG_ADD_TEXT , NARG_SCROLL_TEXT , NARG_DEL_TEXT_LINE , NARG_REFLEX_TEXT_EVENT , 
    NARG_DESTROY_OBJ_TEXT , NARG_GET_SIZE_POSITION_WINDOW , NARG_RESIZE_WINDOW , NARG_SHOW_TEXT ,   
    NARG_GET_FIRST_LINE , NARG_REFLEX_TEXT_MOVE , NARG_REFLEX_TEXT_SIZE , NARG_GET_SIZE_POSITION_WINDOW ,
    NARG_RESIZE_WINDOW , NARG_REFLEX_LINEOK , NARG_SET_TEXT_SIZE , NARG_SET_FIRST_LINE,
    NARG_SET_TEXT_FOCUS, NARG_REFLEX_TEXT_DROPFILE , NARG_ENABLE_WINDOW ,
} ;

int (*textpkgfun[TEXTPKGSIZE])(mmachine m) = {

    GRPaintObjText , GRCreateText , GRSetText , GRCreateEditLine ,
    GRCreateEditText , GRGetLine , GRGetText , GRGetLineCount , 
    GRAddText , GRScrollText , GRDelTextLine , GRReflexTextEvent , 
    GRDestroyObjText , GRGetSizePositionWindow , GRResizeWindow , GRShowWindow ,    
    GRGetFirstLine , GRReflexTextMove , GRReflexTextSize , GRGetPositionSizeWindow ,
    GRReposWindow , GRReflexLineOk , GRSetTextSize ,GRSetFirstLine,
    GRSetFocus, GRReflexTextDropFile, GREnableWindow ,
} ;





#endif
