tricrypt/tui/consts.go

48 lines
893 B
Go
Raw Normal View History

package tui
const (
MY_SIGNAL_EXIT = iota
MY_SIGNAL_MESSAGE
MY_SIGNAL_CONNECT
)
const (
cursorPosGeneralCenter cursorPosConfigValue = -1
cursorPosGeneralLeft cursorPosConfigValue = -2
cursorPosGeneralRight cursorPosConfigValue = -3
)
const (
footerStart = "State: "
)
func (c *cursorPosConfigValue) isGeneral() bool {
switch *c {
case cursorPosGeneralCenter:
return true
case cursorPosGeneralLeft:
return true
case cursorPosGeneralRight:
return true
}
return false
}
const (
widgetPosGeneralCenter widgetPosConfigValue = -1
widgetPosGeneralLeftCenter widgetPosConfigValue = -2
widgetPosGeneralRightCenter widgetPosConfigValue = -3
)
func (w *widgetPosConfigValue) isGeneral() bool {
switch *w {
case widgetPosGeneralCenter:
return true
case widgetPosGeneralLeftCenter:
return true
case widgetPosGeneralRightCenter:
return true
}
return false
}