2024-01-13 18:17:34 +03:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2024-05-19 21:11:58 +03:00
|
|
|
"surdeus.su/core/gg"
|
2024-01-14 03:51:11 +03:00
|
|
|
//"fmt"
|
2024-01-13 18:17:34 +03:00
|
|
|
)
|
|
|
|
|
2024-05-19 21:11:58 +03:00
|
|
|
type Objecter interface {
|
2024-01-13 21:45:56 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type Wrap[V Objecter] struct {
|
|
|
|
O V
|
|
|
|
}
|
|
|
|
|
2024-05-19 21:11:58 +03:00
|
|
|
//func (w *Wrap)
|
2024-01-13 21:45:56 +03:00
|
|
|
|
|
|
|
type Context2 struct {
|
|
|
|
*gg.Context
|
2024-01-13 18:17:34 +03:00
|
|
|
}
|
|
|
|
|
2024-05-19 21:11:58 +03:00
|
|
|
type Text struct {
|
2024-01-13 21:45:56 +03:00
|
|
|
gg.Text
|
2024-01-14 03:51:11 +03:00
|
|
|
}
|
2024-01-13 21:45:56 +03:00
|
|
|
|
2024-01-14 03:51:11 +03:00
|
|
|
func (txt *Text) Update(c *Context) {
|
2024-01-16 07:37:53 +03:00
|
|
|
//txt.Data += string(c.Runes())
|
2024-01-14 03:51:11 +03:00
|
|
|
}
|