cli

package module
v0.0.0-...-54685cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 10 Imported by: 0

README

CLI

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 App

type App interface {
	Start()
	Window() IWindow
}

App главный обьект приложения

func InitApp

func InitApp(layout ILayout) (App, error)

InitApp инициализаци приложения

type Event

type Event struct{}

Event обьект событий

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 интерфейс слоя

func Layout

func Layout() ILayout

Layout создание нового слоя

type IWindow

type IWindow interface {
	// contains filtered or unexported methods
}

IWindow интерфейс окна

type Style

type Style byte

Style ключ стиля

Directories

Path Synopsis
internal
c
sys

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL