stk/Src/tk-glue.h

52 lines
1.9 KiB
C

/*
*
* t k - g l u e . h - Glue functions between the scheme and Tk worlds
*
* Copyright © 1993-1998 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
*
*
* 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
* Last file update: 8-Feb-1998 18:26
*
*/
/* 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;
SCM STk_convert_tcl_list_to_scheme(SCM l);
char *STk_convert_for_Tk(SCM obj, SCM *res);
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);
int STk_valid_environment(char *s, void **env);
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);
/* Include tcl-glue.h */
#include "tcl-glue.h"
#define STk_convert_for_Tk STk_convert_for_Tcl /* compatibility with pre 4.0 */