1996-09-27 06:29:02 -04:00
|
|
|
|
/*
|
|
|
|
|
*
|
1998-04-10 06:59:06 -04:00
|
|
|
|
* t k - g l u e . h - Glue functions between the scheme and Tk worlds
|
1996-09-27 06:29:02 -04:00
|
|
|
|
*
|
1998-04-10 06:59:06 -04:00
|
|
|
|
* Copyright <EFBFBD> 1993-1998 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
|
1996-09-27 06:29:02 -04:00
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* Permission to use, copy, and/or distribute this software and its
|
|
|
|
|
* documentation for any purpose and without fee is hereby granted, provided
|
|
|
|
|
* that both the above copyright notice and this permission notice appear in
|
|
|
|
|
* all copies and derived works. Fees for distribution or use of this
|
|
|
|
|
* software or derived works may only be charged with express written
|
|
|
|
|
* permission of the copyright holder.
|
|
|
|
|
* This software is provided ``as is'' without express or implied warranty.
|
|
|
|
|
*
|
|
|
|
|
* This software is a derivative work of other copyrighted softwares; the
|
|
|
|
|
* copyright notices of these softwares are placed in the file COPYRIGHTS
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* Author: Erick Gallesio [eg@unice.fr]
|
|
|
|
|
* Creation date: 19-Feb-1993 22:15
|
1998-09-30 07:11:02 -04:00
|
|
|
|
* Last file update: 8-Sep-1998 23:39
|
1996-09-27 06:29:02 -04:00
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
1998-09-30 07:11:02 -04:00
|
|
|
|
#ifndef _TK_GLUE
|
|
|
|
|
#define _TK_GLUE_
|
|
|
|
|
/* Include tcl-glue.h */
|
|
|
|
|
#include "tcl-glue.h"
|
|
|
|
|
|
1996-09-27 06:29:02 -04:00
|
|
|
|
/* Scheme objects used to represent the "." pseudo widget and its name */
|
|
|
|
|
extern SCM STk_root_window;
|
|
|
|
|
extern SCM STk_root_window_name;
|
|
|
|
|
|
|
|
|
|
/* Last result of Tcl_GlobalEval (as a SCM object rather than a string) */
|
|
|
|
|
extern SCM STk_last_Tk_result;
|
|
|
|
|
|
1998-04-10 06:59:06 -04:00
|
|
|
|
SCM STk_convert_tcl_list_to_scheme(SCM l);
|
1998-09-30 07:11:02 -04:00
|
|
|
|
SCM STk_execute_Tcl_lib_cmd(SCM cmd, SCM args, SCM env, int eval_args);
|
1996-09-27 06:29:02 -04:00
|
|
|
|
char *STk_convert_for_Tk(SCM obj, SCM *res);
|
|
|
|
|
|
1998-04-10 06:59:06 -04:00
|
|
|
|
void STk_sharp_dot_result(Tcl_Interp *interp, char *value);
|
|
|
|
|
void STk_stringify_result(Tcl_Interp *interp, char *value);
|
|
|
|
|
SCM STk_last_Tk_as_SCM(void);
|
|
|
|
|
SCM STk_get_NIL_value(void);
|
|
|
|
|
SCM STk_get_widget_value(char *name);
|
1996-09-27 06:29:02 -04:00
|
|
|
|
|
1998-04-10 06:59:06 -04:00
|
|
|
|
int STk_valid_environment(char *s, void **env);
|
1996-09-27 06:29:02 -04:00
|
|
|
|
int STk_valid_callback(char *s, void **p);
|
|
|
|
|
void STk_add_callback(char *key1, char *key2, char *key3, SCM closure);
|
|
|
|
|
void STk_delete_callback(char *key);
|
|
|
|
|
void STk_mark_callbacks(void);
|
|
|
|
|
char *STk_append_callback_parameters(SCM proc);
|
|
|
|
|
|
1998-09-30 07:11:02 -04:00
|
|
|
|
void STk_init_glue(void);
|
|
|
|
|
|
1998-04-10 06:59:06 -04:00
|
|
|
|
#define STk_convert_for_Tk STk_convert_for_Tcl /* compatibility with pre 4.0 */
|
1998-09-30 07:11:02 -04:00
|
|
|
|
|
|
|
|
|
#endif /* _TK_GLUE_ */
|