NumberInput no longer embeds tomo.ContainerBox
This commit is contained in:
parent
b784596b4d
commit
02fed8ce48
@ -3,14 +3,17 @@ package objects
|
|||||||
import "math"
|
import "math"
|
||||||
import "strconv"
|
import "strconv"
|
||||||
import "git.tebibyte.media/tomo/tomo"
|
import "git.tebibyte.media/tomo/tomo"
|
||||||
|
import "git.tebibyte.media/tomo/tomo/text"
|
||||||
import "git.tebibyte.media/tomo/tomo/input"
|
import "git.tebibyte.media/tomo/tomo/input"
|
||||||
import "git.tebibyte.media/tomo/tomo/event"
|
import "git.tebibyte.media/tomo/tomo/event"
|
||||||
import "git.tebibyte.media/tomo/objects/layouts"
|
import "git.tebibyte.media/tomo/objects/layouts"
|
||||||
|
|
||||||
|
var _ tomo.Object = new(NumberInput)
|
||||||
|
|
||||||
// NumberInput is an editable text box which accepts only numbers, and has
|
// NumberInput is an editable text box which accepts only numbers, and has
|
||||||
// controls to increment and decrement its value.
|
// controls to increment and decrement its value.
|
||||||
type NumberInput struct {
|
type NumberInput struct {
|
||||||
tomo.ContainerBox
|
box tomo.ContainerBox
|
||||||
input *TextInput
|
input *TextInput
|
||||||
increment *Button
|
increment *Button
|
||||||
decrement *Button
|
decrement *Button
|
||||||