/****************************************************************************************/
/*                                                                                      */
/*              load_font.h                                                             */
/*                                                                                      */
/****************************************************************************************/

#ifndef _LOAD_FONT_H_
#define _LOAD_FONT_H_




#include "objects/font.h"


/**************************************************************************************/
/*                                                                                    */
/*      Package sur les font                                                          */
/*                                                                                    */
/**************************************************************************************/

#define FONTPKGSIZE 11

char * fontpkgname [ FONTPKGSIZE ] = {
        "_CRfont" , "_AFFfontText" , "_AFFfontButton" , "_AFFfontCheck" ,
        "_DSfont" , "_AFFfontCombo" , "_AFFfontList" , "_GETstringSize" ,
        "_SETdefaultFont" , "_GETdefaultFont", "_AFFfontWindow",
} ;

char * fontpkgtype [FONTPKGSIZE ] = {
    "fun [ Chn I I I S ] ObjFont",                          /* _create_font                 */ 
    "fun [ObjText ObjFont ] ObjText",                       /* _affect_font_text            */  
    "fun [ObjButton ObjFont ] ObjButton" ,                  /* _affect_font_button          */ 
    "fun [ObjCheck ObjFont ] ObjCheck" ,                    /* _affect_font_check           */ 
    "fun [ ObjFont ] I" ,                                   /* _destroy_obj_font            */ 
    "fun [ObjBox ObjFont] ObjBox" ,                         /* _affect_ont_combo            */ 
    "fun [ObjList ObjFont] ObjList" ,                       /* _affect_font_list            */ 
    "fun [ ObjFont S ] [I I]" ,                             /* _get_string_size             */ 
    "fun [ObjFont] ObjFont" ,                               /* _set_default_font            */ 
    "fun [] ObjFont" ,                                      /* _get_default_font            */ 
    "fun [ObjWin ObjFont] OnjWin",                          /* _affect_font_window          */ 
} ;

#define NARG_CREATE_FONT                5
#define NARG_AFFECT_FONT_TEXT           2
#define NARG_AFFECT_FONT_BUTTON         2
#define NARG_AFFECT_FONT_CHECK          2
#define NARG_DESTROY_OBJ_FONT           1
#define NARG_AFFECT_FONT_COMBO          2
#define NARG_GET_STRING_SIZE            2
#define NARG_SET_DEFAULT_FONT           1
#define NARG_GET_DEFAULT_FONT           0
#define NARG_AFFECT_FONT_WINDOW         2

int fontpkgarg [ FONTPKGSIZE ] = {
    NARG_CREATE_FONT , NARG_AFFECT_FONT_TEXT , NARG_AFFECT_FONT_BUTTON , NARG_AFFECT_FONT_CHECK ,
    NARG_DESTROY_OBJ_FONT , NARG_AFFECT_FONT_COMBO , NARG_AFFECT_FONT_COMBO , NARG_GET_STRING_SIZE ,
    NARG_SET_DEFAULT_FONT , NARG_GET_DEFAULT_FONT , NARG_AFFECT_FONT_WINDOW ,
} ;

int (*fontpkgfun [ FONTPKGSIZE ]) ( mmachine m ) = {
    GRCreateFont , GRAffectFont , GRAffectFont , GRAffectFont ,
    GRDestroyObjFont ,  GRAffectFont , GRAffectFont , GRGetStringSize ,
    GRSetDefaultFont , GRGetDefaultFont , GRAffectFont ,
} ;


#endif
