Versions in this module Expand all Collapse all v1 v1.0.3 Jan 7, 2021 v1.0.2 Jan 7, 2021 Changes in this version + const TCL_ALL_EVENTS + const TCL_APPEND_VALUE — windows/amd64 + const TCL_DONT_WAIT + const TCL_ERROR + const TCL_FILE_EVENTS + const TCL_GLOBAL_ONLY — windows/amd64 + const TCL_IDLE_EVENTS + const TCL_LEAVE_ERR_MSG — windows/amd64 + const TCL_LIST_ELEMENT — windows/amd64 + const TCL_NAMESPACE_ONLY — windows/amd64 + const TCL_OK + const TCL_TIMER_EVENTS + const TCL_WINDOW_EVENTS + const TK_PHOTO_COMPOSITE_OVERLAY — windows/amd64 + const TK_PHOTO_COMPOSITE_SET — windows/amd64 + func Async(fn func()) + func BytePtrToString(data *byte, length int32) string — windows/amd64 + func IsMainThread() bool + func MainLoop(fn func()) + func Tcl_DeleteInterp(interp *Tcl_Interp) — windows/amd64 + func Tcl_Eval(interp *Tcl_Interp, script *byte) (r int32) — windows/amd64 + func Tcl_EvalEx(interp *Tcl_Interp, script *byte, length int32, flags int32) (r int32) — windows/amd64 + func Tcl_GetBooleanFromObj(interp *Tcl_Interp, obj *Tcl_Obj, out *int32) (status int32) — windows/amd64 + func Tcl_GetDoubleFromObj(interp *Tcl_Interp, obj *Tcl_Obj, out *Tcl_Double) (status int32) — windows/amd64 + func Tcl_GetStringFromObj(obj *Tcl_Obj, length *int32) (ret *byte) — windows/amd64 + func Tcl_GetStringResult(interp *Tcl_Interp) (ret *byte) — windows/amd64 + func Tcl_GetWideIntFromObj(interp *Tcl_Interp, obj *Tcl_Obj, out *Tcl_WideInt) (status int32) — windows/amd64 + func Tcl_Init(interp *Tcl_Interp) (r int32) — windows/amd64 + func Tcl_ListObjAppendElement(interp *Tcl_Interp, listobj *Tcl_Obj, obj *Tcl_Obj) (status int32) — windows/amd64 + func Tcl_ListObjGetElements(interp *Tcl_Interp, listobj *Tcl_Obj, objc *int32, objv ***Tcl_Obj) (status int32) — windows/amd64 + func Tcl_ListObjIndex(interp *Tcl_Interp, listobj *Tcl_Obj, index int32, out **Tcl_Obj) (status int32) — windows/amd64 + func Tcl_ListObjLength(interp *Tcl_Interp, listobj *Tcl_Obj, length *int32) (status int32) — windows/amd64 + func Tcl_ListObjReplace(interp *Tcl_Interp, listobj *Tcl_Obj, first int32, count int32, objc int32, ...) (status int32) — windows/amd64 + func Tcl_SetListObj(listobj *Tcl_Obj, objc int, objv **Tcl_Obj) — windows/amd64 + func Tcl_SetObjResult(interp *Tcl_Interp, resultObjPtr *Tcl_Obj) — windows/amd64 + func Tcl_SetVar(interp *Tcl_Interp, name *byte, value *byte, flags int32) (r *byte) — windows/amd64 + func Tcl_SetVar2Ex(interp *Tcl_Interp, part1 *byte, part2 *byte, value *Tcl_Obj, flags int32) (r *byte) — windows/amd64 + func Tcl_ThreadAlert(threadId *Tcl_ThreadId) — windows/amd64 + func Tcl_ThreadQueueEvent(threadId *Tcl_ThreadId, evPtr *Tcl_Event, positon Tcl_QueuePosition) — windows/amd64 + func Tcl_UnsetVar(interp *Tcl_Interp, part1 *byte, flags int32) (status int32) — windows/amd64 + func Tcl_WrongNumArgs(interp *Tcl_Interp, objc int32, objv uintptr, message *byte) — windows/amd64 + func Tk_Init(interp *Tcl_Interp) (r int32) — windows/amd64 + func Tk_MainLoop() — windows/amd64 + func Tk_PhotoBlank(handle *Tk_PhotoHandle) — windows/amd64 + func Tk_PhotoExpand(interp *Tcl_Interp, handle *Tk_PhotoHandle, width int32, height int32) (status int32) — windows/amd64 + func Tk_PhotoGetImage(handle *Tk_PhotoHandle, blockPtr *Tk_PhotoImageBlock) (status int32) — windows/amd64 + func Tk_PhotoGetSize(hanlde *Tk_PhotoHandle, widthPtr *int32, heightPtr *int32) — windows/amd64 + func Tk_PhotoPutBlock(interp *Tcl_Interp, handle *Tk_PhotoHandle, blockPtr *Tk_PhotoImageBlock, ...) (status int32) — windows/amd64 + func Tk_PhotoPutZoomedBlock(interp *Tcl_Interp, handle *Tk_PhotoHandle, blockPtr *Tk_PhotoImageBlock, ...) (status int32) — windows/amd64 + func Tk_PhotoSetSize(interp *Tcl_Interp, handle *Tk_PhotoHandle, width int32, height int32) (status int32) — windows/amd64 + type ActionMap struct + func NewActionMap() *ActionMap + func (m *ActionMap) Invoke(id uintptr, args []string) error + func (m *ActionMap) Register(fn func([]string)) uintptr + func (m *ActionMap) UnRegister(id uintptr) + type CommandMap struct + func NewCommandMap() *CommandMap + func (m *CommandMap) Find(id uintptr) func([]string) (string, error) + func (m *CommandMap) Invoke(id uintptr, args []string) (string, error) + func (m *CommandMap) Register(fn func([]string) (string, error)) uintptr + func (m *CommandMap) UnRegister(id uintptr) + type Interp struct + func NewInterp() (*Interp, error) + func (interp *Interp) EvalAsBool(script string) (bool, error) + func (interp *Interp) EvalAsFloat64(script string) (float64, error) + func (interp *Interp) EvalAsInt(script string) (int, error) + func (interp *Interp) EvalAsInt64(script string) (int64, error) + func (interp *Interp) EvalAsIntList(script string) ([]int, error) + func (interp *Interp) EvalAsListObj(script string) (*ListObj, error) + func (interp *Interp) EvalAsObj(script string) (*Obj, error) + func (interp *Interp) EvalAsString(script string) (string, error) + func (interp *Interp) EvalAsStringList(script string) ([]string, error) + func (interp *Interp) EvalAsUint(script string) (uint, error) + func (interp *Interp) TclPatchLevel() string + func (interp *Interp) TclVersion() string + func (interp *Interp) TkPatchLevel() string + func (interp *Interp) TkVersion() string + func (p *Interp) AppendStringList(name string, value string, global bool) error + func (p *Interp) AppendStringListList(name string, list []string, global bool) error + func (p *Interp) AppendStringVar(name string, value string, global bool) error + func (p *Interp) CreateAction(name string, action func([]string)) (uintptr, error) + func (p *Interp) CreateAction(name string, fn func([]string)) (uintptr, error) + func (p *Interp) CreateCommand(name string, fn func([]string) (string, error)) (uintptr, error) + func (p *Interp) Destroy() error + func (p *Interp) Eval(script string) error + func (p *Interp) GetBoolResult() bool + func (p *Interp) GetBoolVar(name string, global bool) bool + func (p *Interp) GetErrorResult() error + func (p *Interp) GetFloadt64Var(name string, global bool) float64 + func (p *Interp) GetFloat64Result() float64 + func (p *Interp) GetInt64Result() int64 + func (p *Interp) GetInt64Var(name string, global bool) int64 + func (p *Interp) GetIntResult() int + func (p *Interp) GetIntVar(name string, global bool) int + func (p *Interp) GetList(name string, global bool) *ListObj + func (p *Interp) GetListObjResult() *ListObj + func (p *Interp) GetObjResult() *Obj + func (p *Interp) GetStringResult() string + func (p *Interp) GetStringVar(name string, global bool) string + func (p *Interp) GetUintResult() uint + func (p *Interp) GetVar(name string, global bool) *Obj + func (p *Interp) InitTcl(tcl_library string) error + func (p *Interp) InitTk(tk_library string) error + func (p *Interp) InvokeAction(id uintptr, args []string) error + func (p *Interp) InvokeCommand(id uintptr, args []string) (string, error) + func (p *Interp) SetBoolVar(name string, b bool, global bool) error + func (p *Interp) SetFloat64Var(name string, value float64, global bool) error + func (p *Interp) SetInt64Var(name string, value int64, global bool) error + func (p *Interp) SetIntVar(name string, value int, global bool) error + func (p *Interp) SetStringList(name string, list []string, global bool) error + func (p *Interp) SetStringVar(name string, value string, global bool) error + func (p *Interp) SetVarListObj(name string, obj *ListObj, global bool) error + func (p *Interp) SetVarObj(name string, obj *Obj, global bool) error + func (p *Interp) SupportTk86() bool + func (p *Interp) UnsetVar(name string, global bool) error + type ListObj Obj + func NewListObj(p *Interp) *ListObj + func (o *ListObj) AppendObj(obj *Obj) bool + func (o *ListObj) AppendString(s string) + func (o *ListObj) AppendStringList(list []string) + func (o *ListObj) IndexObj(index int) *Obj + func (o *ListObj) IndexString(index int) string + func (o *ListObj) InsertObj(index int, obj *Obj) + func (o *ListObj) InsertString(index int, s string) + func (o *ListObj) Length() int + func (o *ListObj) Remove(first int, count int) + func (o *ListObj) SetIndexObj(index int, obj *Obj) bool + func (o *ListObj) SetIndexString(index int, s string) + func (o *ListObj) SetStringList(list []string) + func (o *ListObj) ToIntList() (list []int) + func (o *ListObj) ToObjList() (list []*Obj) + func (o *ListObj) ToStringList() (list []string) + type Obj struct + func NewBoolObj(value bool, p *Interp) *Obj + func NewFloat64Obj(value float64, p *Interp) *Obj + func NewInt64Obj(value int64, p *Interp) *Obj + func NewIntObj(value int, p *Interp) *Obj + func NewRawObj(obj *Tcl_Obj, interp *Tcl_Interp) *Obj + func NewStringObj(value string, p *Interp) *Obj + func (o *Obj) ToBool() bool + func (o *Obj) ToFloat64() float64 + func (o *Obj) ToInt() int + func (o *Obj) ToInt64() int64 + func (o *Obj) ToString() string + func (o *Obj) ToUint() uint + type Photo struct + func FindPhoto(interp *Interp, imageName string) *Photo + func (p *Photo) Blank() + func (p *Photo) Expand(width int, height int) error + func (p *Photo) PutImage(img image.Image, tk85alphacolor color.Color) error + func (p *Photo) PutZoomedImage(img image.Image, zoomX, zoomY, subsampleX, subsampleY int, ...) error + func (p *Photo) SetSize(width int, height int) error + func (p *Photo) Size() (int, int) + func (p *Photo) ToImage() image.Image + type Tcl_Command struct — windows/amd64 + func Tcl_CreateCommand(interp *Tcl_Interp, cmdName *byte, proc uintptr, clientData uintptr, ...) (cmd *Tcl_Command) + func Tcl_CreateObjCommand(interp *Tcl_Interp, cmdName *byte, proc uintptr, clientData uintptr, ...) (cmd *Tcl_Command) + type Tcl_Double float64 — windows/amd64 + type Tcl_Event struct — windows/amd64 + NextPtr *Tcl_Event + Proc uintptr + func Tcl_Alloc(size uint) (r *Tcl_Event) + type Tcl_Interp struct — windows/amd64 + func Tcl_CreateInterp() (interp *Tcl_Interp) + type Tcl_Obj struct — windows/amd64 + func Tcl_GetObjResult(interp *Tcl_Interp) (obj *Tcl_Obj) + func Tcl_GetVar2Ex(interp *Tcl_Interp, part1 *byte, part2 *byte, flags int32) (obj *Tcl_Obj) + func Tcl_NewBooleanObj(value int32) (obj *Tcl_Obj) + func Tcl_NewDoubleObj(value Tcl_Double) (obj *Tcl_Obj) + func Tcl_NewListObj(objc int, objv **Tcl_Obj) (obj *Tcl_Obj) + func Tcl_NewStringObj(bytes *byte, length int32) (obj *Tcl_Obj) + func Tcl_NewWideIntObj(value Tcl_WideInt) (obj *Tcl_Obj) + type Tcl_QueuePosition int + const TCL_QUEUE_HEAD + const TCL_QUEUE_MARK + const TCL_QUEUE_TAIL + type Tcl_ThreadId struct — windows/amd64 + func Tcl_GetCurrentThread() (threadid *Tcl_ThreadId) + type Tcl_WideInt int64 — windows/amd64 + type Tk_PhotoHandle struct — windows/amd64 + func Tk_FindPhoto(interp *Tcl_Interp, imageName *byte) (handle *Tk_PhotoHandle) + type Tk_PhotoImageBlock struct — windows/amd64