mirror of
https://github.com/rivo/tview.git
synced 2025-04-24 13:48:56 +08:00
added configurable borders
This commit is contained in:
parent
2e0f146244
commit
29553e5794
45
borders.go
Normal file
45
borders.go
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
package tview
|
||||||
|
|
||||||
|
// Borders defines various borders used when primitives are drawn.
|
||||||
|
// These may be changed to accommodate a different look and feel.
|
||||||
|
var Borders = struct {
|
||||||
|
Horizontal rune
|
||||||
|
Vertical rune
|
||||||
|
TopLeft rune
|
||||||
|
TopRight rune
|
||||||
|
BottomLeft rune
|
||||||
|
BottomRight rune
|
||||||
|
|
||||||
|
LeftT rune
|
||||||
|
RightT rune
|
||||||
|
TopT rune
|
||||||
|
BottomT rune
|
||||||
|
Cross rune
|
||||||
|
|
||||||
|
HorizontalFocus rune
|
||||||
|
VerticalFocus rune
|
||||||
|
TopLeftFocus rune
|
||||||
|
TopRightFocus rune
|
||||||
|
BottomLeftFocus rune
|
||||||
|
BottomRightFocus rune
|
||||||
|
}{
|
||||||
|
Horizontal: BoxDrawingsLightHorizontal,
|
||||||
|
Vertical: BoxDrawingsLightVertical,
|
||||||
|
TopLeft: BoxDrawingsLightDownAndRight,
|
||||||
|
TopRight: BoxDrawingsLightDownAndLeft,
|
||||||
|
BottomLeft: BoxDrawingsLightUpAndRight,
|
||||||
|
BottomRight: BoxDrawingsLightUpAndLeft,
|
||||||
|
|
||||||
|
LeftT: BoxDrawingsLightVerticalAndRight,
|
||||||
|
RightT: BoxDrawingsLightVerticalAndLeft,
|
||||||
|
TopT: BoxDrawingsLightDownAndHorizontal,
|
||||||
|
BottomT: BoxDrawingsLightUpAndHorizontal,
|
||||||
|
Cross: BoxDrawingsLightVerticalAndHorizontal,
|
||||||
|
|
||||||
|
HorizontalFocus: BoxDrawingsDoubleHorizontal,
|
||||||
|
VerticalFocus: BoxDrawingsDoubleVertical,
|
||||||
|
TopLeftFocus: BoxDrawingsDoubleDownAndRight,
|
||||||
|
TopRightFocus: BoxDrawingsDoubleDownAndLeft,
|
||||||
|
BottomLeftFocus: BoxDrawingsDoubleUpAndRight,
|
||||||
|
BottomRightFocus: BoxDrawingsDoubleUpAndLeft,
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user