You get an OnDotChange! Everypony gets an OnDotChange!
This commit is contained in:
@@ -47,6 +47,12 @@ func (this *TextView) Dot () text.Dot {
|
||||
return this.box.Dot()
|
||||
}
|
||||
|
||||
// OnDotChange specifies a function to be called when the text cursor or
|
||||
// selection changes.
|
||||
func (this *TextView) OnDotChange (callback func ()) event.Cookie {
|
||||
return this.box.OnDotChange(callback)
|
||||
}
|
||||
|
||||
// SetAlign sets the X and Y alignment of the text view.
|
||||
func (this *TextView) SetAlign (x, y tomo.Align) {
|
||||
this.box.SetAttr(tomo.AAlign(x, y))
|
||||
|
||||
Reference in New Issue
Block a user