Bläddra i källkod

code formatting

master
Tim Cooper 10 år sedan
förälder
incheckning
497db88dcb
5 ändrade filer med 7 tillägg och 12 borttagningar
  1. +2
    -3
      uiterm/label.go
  2. +2
    -3
      uiterm/textbox.go
  3. +1
    -2
      uiterm/textview.go
  4. +1
    -2
      uiterm/tree.go
  5. +1
    -2
      uiterm/ui.go

+ 2
- 3
uiterm/label.go Visa fil

@@ -7,9 +7,8 @@ import (
) )


type Label struct { type Label struct {
Text string
Fg Attribute
Bg Attribute
Text string
Fg, Bg Attribute


ui *Ui ui *Ui
x0, y0, x1, y1 int x0, y0, x1, y1 int


+ 2
- 3
uiterm/textbox.go Visa fil

@@ -8,9 +8,8 @@ import (
) )


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


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




+ 1
- 2
uiterm/textview.go Visa fil

@@ -9,8 +9,7 @@ import (
type Textview struct { type Textview struct {
Lines []string Lines []string
CurrentLine int CurrentLine int
Fg Attribute
Bg Attribute
Fg, Bg Attribute


parsedLines []string parsedLines []string




+ 1
- 2
uiterm/tree.go Visa fil

@@ -18,8 +18,7 @@ type renderedTreeItem struct {
} }


type Tree struct { type Tree struct {
Fg Attribute
Bg Attribute
Fg, Bg Attribute
Generator func(item TreeItem) []TreeItem Generator func(item TreeItem) []TreeItem
Listener func(ui *Ui, tree *Tree, item TreeItem) Listener func(ui *Ui, tree *Tree, item TreeItem)




+ 1
- 2
uiterm/ui.go Visa fil

@@ -15,8 +15,7 @@ type UiManager interface {
} }


type Ui struct { type Ui struct {
Fg Attribute
Bg Attribute
Fg, Bg Attribute


close chan bool close chan bool
manager UiManager manager UiManager


Laddar…
Avbryt
Spara