Procházet zdrojové kódy

uiterm: remove LayoutFunc, remove InputFunc type

master
Tim Cooper před 10 roky
rodič
revize
e026b662ce
2 změnil soubory, kde provedl 1 přidání a 5 odebrání
  1. +1
    -3
      uiterm/textbox.go
  2. +0
    -2
      uiterm/ui.go

+ 1
- 3
uiterm/textbox.go Zobrazit soubor

@@ -7,14 +7,12 @@ import (
"github.com/nsf/termbox-go" "github.com/nsf/termbox-go"
) )


type InputFunc func(ui *Ui, textbox *Textbox, text string)

type Textbox struct { type Textbox struct {
Text string Text string
Fg Attribute Fg Attribute
Bg Attribute Bg Attribute


Input InputFunc Input func(ui *Ui, textbox *Textbox, text string)


ui *Ui ui *Ui
active bool active bool


+ 0
- 2
uiterm/ui.go Zobrazit soubor

@@ -6,8 +6,6 @@ import (
"github.com/nsf/termbox-go" "github.com/nsf/termbox-go"
) )


type LayoutFunc func(ui *Ui, width, height int)

type KeyListener func(ui *Ui, key Key) type KeyListener func(ui *Ui, key Key)


type UiManager interface { type UiManager interface {


||||||
x
 
000:0
Načítá se…
Zrušit
Uložit