Documentation ¶
Index ¶
- Constants
- func Async(fn func())
- func IsMainThread() bool
- func MainLoop(fn func())
- type ActionMap
- type CommandMap
- type Interp
- 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, 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 (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 (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 (interp *Interp) TclPatchLevel() string
- func (interp *Interp) TclVersion() string
- func (interp *Interp) TkPatchLevel() string
- func (interp *Interp) TkVersion() string
- func (p *Interp) UnsetVar(name string, global bool) error
- type 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
- type 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_QueuePosition
Constants ¶
View Source
const ( TCL_OK = 0 TCL_ERROR = 1 )
View Source
const ( TCL_DONT_WAIT = 1 << 1 TCL_WINDOW_EVENTS = 1 << 2 TCL_FILE_EVENTS = 1 << 3 TCL_TIMER_EVENTS = 1 << 4 TCL_IDLE_EVENTS = 1 << 5 TCL_ALL_EVENTS = ^TCL_DONT_WAIT )
Variables ¶
This section is empty.
Functions ¶
func IsMainThread ¶
func IsMainThread() bool
Types ¶
type ActionMap ¶
type ActionMap struct {
// contains filtered or unexported fields
}
func NewActionMap ¶
func NewActionMap() *ActionMap
func (*ActionMap) UnRegister ¶
type CommandMap ¶
type CommandMap struct {
// contains filtered or unexported fields
}
func NewCommandMap ¶
func NewCommandMap() *CommandMap
func (*CommandMap) Register ¶
func (m *CommandMap) Register(fn func([]string) (string, error)) uintptr
func (*CommandMap) UnRegister ¶
func (m *CommandMap) UnRegister(id uintptr)
type Interp ¶
type Interp struct {
// contains filtered or unexported fields
}
func (*Interp) AppendStringList ¶
func (*Interp) AppendStringListList ¶
func (*Interp) AppendStringVar ¶
func (*Interp) CreateAction ¶
func (*Interp) CreateCommand ¶
func (*Interp) EvalAsStringList ¶
func (*Interp) GetBoolResult ¶
func (*Interp) GetErrorResult ¶
func (*Interp) GetFloat64Result ¶
func (*Interp) GetInt64Result ¶
func (*Interp) GetIntResult ¶
func (*Interp) GetListObjResult ¶
func (*Interp) GetObjResult ¶
func (*Interp) GetStringResult ¶
func (*Interp) GetUintResult ¶
func (*Interp) InvokeCommand ¶
func (*Interp) SetFloat64Var ¶
func (*Interp) SetInt64Var ¶
func (*Interp) SetStringList ¶
func (*Interp) SetStringVar ¶
func (*Interp) SetVarListObj ¶
func (*Interp) SupportTk86 ¶
func (*Interp) TclPatchLevel ¶
func (*Interp) TclVersion ¶
func (*Interp) TkPatchLevel ¶
type ListObj ¶
type ListObj Obj
func NewListObj ¶
func (*ListObj) AppendString ¶
func (*ListObj) AppendStringList ¶
func (*ListObj) IndexString ¶
func (*ListObj) InsertString ¶
func (*ListObj) SetIndexString ¶
func (*ListObj) SetStringList ¶
func (*ListObj) ToStringList ¶
type Obj ¶
type Obj struct {
// contains filtered or unexported fields
}
func NewBoolObj ¶
func NewFloat64Obj ¶
func NewInt64Obj ¶
func NewStringObj ¶
type Photo ¶
type Photo struct {
// contains filtered or unexported fields
}
func (*Photo) PutZoomedImage ¶
type Tcl_QueuePosition ¶
type Tcl_QueuePosition int
const ( TCL_QUEUE_TAIL Tcl_QueuePosition = 0 TCL_QUEUE_HEAD TCL_QUEUE_MARK )
Click to show internal directories.
Click to hide internal directories.