Add dot manipulation to TextBox
This commit is contained in:
parent
85fe5ac65b
commit
d1b62f5560
14
object.go
14
object.go
|
@ -3,6 +3,7 @@ package tomo
|
|||
import "image"
|
||||
import "image/color"
|
||||
import "golang.org/x/image/font"
|
||||
import "git.tebibyte.media/tomo/tomo/text"
|
||||
import "git.tebibyte.media/tomo/tomo/data"
|
||||
import "git.tebibyte.media/tomo/tomo/event"
|
||||
import "git.tebibyte.media/tomo/tomo/input"
|
||||
|
@ -166,10 +167,15 @@ type ContentBox interface {
|
|||
type TextBox interface {
|
||||
ContentBox
|
||||
|
||||
SetText (string)
|
||||
SetTextColor (color.Color)
|
||||
SetFace (font.Face)
|
||||
SetWrap (bool)
|
||||
SetText (string)
|
||||
SetTextColor (color.Color)
|
||||
SetFace (font.Face)
|
||||
SetWrap (bool)
|
||||
|
||||
SetSelectable (bool)
|
||||
Select (text.Dot)
|
||||
Dot () text.Dot
|
||||
OnDotChange (func ()) event.Cookie
|
||||
}
|
||||
|
||||
// ContentBox is a box that can contain child objects. It arranges them
|
||||
|
|
Loading…
Reference in New Issue