瀏覽代碼

code formatting

master
Tim Cooper 10 年之前
父節點
當前提交
497db88dcb
共有 5 個檔案被更改,包括 7 行新增12 行删除
  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 查看文件

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

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

ui *Ui
x0, y0, x1, y1 int


+ 2
- 3
uiterm/textbox.go 查看文件

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

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

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



+ 1
- 2
uiterm/textview.go 查看文件

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

parsedLines []string



+ 1
- 2
uiterm/tree.go 查看文件

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

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



+ 1
- 2
uiterm/ui.go 查看文件

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

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

close chan bool
manager UiManager


Loading…
取消
儲存