Documentation
¶
Index ¶
Constants ¶
View Source
const ( KeyEnter key = "Enter" KeySpace key = "Space" KeyBackSpace key = "BackSpace" KeyTab key = "Tab" KeyEsc key = "Esc" KeyUp key = "Up" KeyDown key = "Down" KeyLeft key = "Left" KeyRight key = "Right" Key0 key = "0" Key1 key = "1" Key2 key = "2" Key3 key = "3" Key4 key = "4" Key5 key = "5" Key6 key = "6" Key7 key = "7" Key8 key = "8" Key9 key = "9" KeyA key = "a" KeyB key = "b" KeyC key = "c" KeyD key = "d" KeyE key = "e" KeyF key = "f" KeyG key = "g" KeyH key = "h" KeyI key = "i" KeyJ key = "j" KeyK key = "k" KeyL key = "l" KeyM key = "m" KeyN key = "n" KeyO key = "o" KeyP key = "p" KeyQ key = "q" KeyR key = "r" KeyS key = "s" KeyT key = "t" KeyU key = "u" KeyV key = "v" KeyW key = "w" KeyX key = "x" KeyY key = "y" KeyZ key = "z" KeyTilda key = "~" KeyPlus key = "+" KeyMinus key = "-" KeyEqual key = "=" )
View Source
const ( Border = iota BackgroundColor TextColor Wigth Heigth ZeroX ZeroY )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IComponent ¶
type IComponent interface {
SetOnCreate(f func()) IComponent
SetOnUpdate(f func()) IComponent
SetOnDelete(f func()) IComponent
SetOnSelect(f func()) IComponent
SetOnActive(f func()) IComponent
SetOnBack(f func()) IComponent
SetOnUp(f func()) IComponent
SetOnDown(f func()) IComponent
SetOnLeft(f func()) IComponent
SetOnRight(f func()) IComponent
SetComponents(comp ...IComponent) IComponent
SetStyle(style map[Style]interface{}) IComponent
SetActive(active bool) IComponent
Style() map[Style]interface{}
Active() bool
// contains filtered or unexported methods
}
IComponent итерфейс компонента
type ILayout ¶
type ILayout interface {
SetEvent(key key, f func()) ILayout
SetOnCreate(f func()) ILayout
SetOnUpdate(f func()) ILayout
SetOnDelete(f func()) ILayout
SetStyle(style map[Style]interface{}) ILayout
SetComponents(comp ...IComponent) ILayout
// contains filtered or unexported methods
}
ILayout интерфейс слоя
Click to show internal directories.
Click to hide internal directories.