tcl_context.h 535 B

1234567891011121314151617
  1. /// @file
  2. /// @brief data that is shared between the TK renderer and TCL bindings
  3. #pragma once
  4. /// TCL interpreter state
  5. ///
  6. /// This is actually declared in TCL’s tcl.h. But we forward declare it here to
  7. /// avoid the TK renderer having a hard dependency on TCL, when it does not use
  8. /// this.
  9. struct Tcl_Interp;
  10. /// context used to convey information between commands and a renderer
  11. typedef struct {
  12. const char *canvas; ///< TCL canvas to render to
  13. struct Tcl_Interp *interp; ///< TCL interpreter
  14. } tcldot_context_t;