/****************************************************************************************/
/*                                                                                      */
/*              load_cursor.h                                                           */
/*                                                                                      */
/****************************************************************************************/

#ifndef _LOAD_CURSOR_H_
#define _LOAD_CURSOR_H_




#include "objects/cursor.h"



/*************************************************************************************/
/*                                                                                   */
/*      package sur les curseurs                                                     */
/*                                                                                   */
/*************************************************************************************/

#define CURSORPKGSIZE  10

char * cursorpkgname [ CURSORPKGSIZE ] = {

    "_CRcursor" , "_GETcursorSize" , "_SETwinCursor" , "_DScursor" ,
    "_SETbuttonCursor" , "_GETcursorWin" , "_GETcursorButton" , "_SETcursorPos",
    "_GETcursorPos" , "_SHOWcursor" 
} ;

char * cursorpkgtype [ CURSORPKGSIZE ] = {

    "fun [ Chn ObjBitmap I I I I ] ObjCursor"       ,   /* creation d'un curseur ssouris            */
    "fun [ ] [ I I ]"                               ,   /* renvoi la taille systeme du curseur      */
    "fun [ ObjWin ObjCursor ] ObjWin"               ,   /* utilise le curseur donne en parametre    */
    "fun [ObjCursor ] I"                            ,   /* detruit un objet curseur                 */
    "fun [ObjButton ObjCursor] ObjButton"           ,   /* selectionne un curseur pour un bouton    */
    "fun [ObjWin] ObjCursor"                        ,   /* renvoi le curseur actuel d'une fenetre   */
    "fun [ObjButton] ObjCursor"                     ,   /* renvoi le curseur actuel d'une fenetre   */
    "fun [ObjWin I I] ObjWin"                       ,   /* positionne la souris dans une fenetre    */
    "fun [ObjWin] [I I]"                            ,   /* donne la position par rapport a une win  */
    "fun [ObjWin I] ObjWin"                         ,   /* affiche ou desactive la souris           */


} ;

#define NARG_CREATE_CURSOR      6
#define NARG_GET_CURSOR_SIZE    0
#define NARG_SET_CURSOR         2
#define NARG_DESTROY_CURSOR     1
#define NARG_GET_CURSOR         1
#define NARG_SET_CURSOR_POS     3
#define NARG_GET_CURSOR_POS     1
#define NARG_SHOW_CURSOR        2

int cursorpkgarg [CURSORPKGSIZE ] = {

    NARG_CREATE_CURSOR , NARG_GET_CURSOR_SIZE , NARG_SET_CURSOR , NARG_DESTROY_CURSOR ,
    NARG_SET_CURSOR , NARG_GET_CURSOR , NARG_GET_CURSOR , NARG_SET_CURSOR_POS , 
    NARG_GET_CURSOR_POS , NARG_SHOW_CURSOR 


} ;

int (*cursorpkgfun [ CURSORPKGSIZE ] ) ( mmachine m ) = {
    GRCreateCursor , GRGetCursorSize , GRSetCursor, GRDestroyCursor ,
    GRSetCursor , GRGetCursor , GRGetCursor , GRSetCursorPos ,
    GRGetCursorPos , GRShowCursor
} ;

#endif
