Documentation
¶
Index ¶
- Constants
- Variables
- func Run(appFn func(f *Frame, ev *Event) bool) error
- func RuneWidth(r rune) int
- func Start(drawFn func(f *Frame)) error
- func StringWidth(text string) int
- type Alignment
- type Backend
- type Block
- type BorderSymbols
- type Buffer
- type Cell
- type Checkbox
- type Color
- type ColorType
- type Constraint
- type Context
- type Dialog
- type Direction
- type Event
- type EventType
- type FlexLayout
- type Frame
- type Insets
- type KeyEvent
- type KeyType
- type Layout
- type Line
- type List
- type ListState
- type Markdown
- type Modifier
- type MouseButton
- type MouseEvent
- type Paragraph
- type Point
- type ProgressBar
- type RadioButton
- type Rect
- type Select
- type SelectState
- type Slider
- type SliderState
- type Span
- type Style
- type Table
- type TableCell
- type TableConstraint
- type TableRow
- type TableState
- type Terminal
- type Text
- type TextAlignment
- type TextArea
- type TextAreaState
- type TextInput
- type TextInputState
- type Widget
Constants ¶
const ( // Direction Horizontal = layout.Horizontal Vertical = layout.Vertical // Alignment AlignLeft = widgets.AlignLeft AlignCenter = widgets.AlignCenter AlignRight = widgets.AlignRight // TextAlignment AlignTextLeft = widgets.AlignTextLeft AlignTextCenter = widgets.AlignTextCenter AlignTextRight = widgets.AlignTextRight // Borders BorderNone = widgets.BorderNone BorderTop = widgets.BorderTop BorderBottom = widgets.BorderBottom BorderLeft = widgets.BorderLeft BorderRight = widgets.BorderRight BorderAll = widgets.BorderAll // Modifiers ModifierReset = cell.ModifierReset ModifierBold = cell.ModifierBold ModifierDim = cell.ModifierDim ModifierItalic = cell.ModifierItalic ModifierUnderline = cell.ModifierUnderline ModifierBlink = cell.ModifierBlink ModifierReverse = cell.ModifierReverse // Event Types EventKey = backend.EventKey EventMouse = backend.EventMouse EventResize = backend.EventResize // Key Types KeyRune = backend.KeyRune KeySpace = backend.KeySpace KeyEnter = backend.KeyEnter KeyBackspace = backend.KeyBackspace KeyDelete = backend.KeyDelete KeyTab = backend.KeyTab KeyEsc = backend.KeyEsc KeyUp = backend.KeyArrowUp KeyDown = backend.KeyArrowDown KeyLeft = backend.KeyArrowLeft KeyRight = backend.KeyArrowRight KeyHome = backend.KeyHome KeyEnd = backend.KeyEnd KeyPageUp = backend.KeyPageUp KeyPageDown = backend.KeyPageDown // Mouse Buttons MouseLeft = backend.MouseLeft MouseMiddle = backend.MouseMiddle MouseRight = backend.MouseRight MouseRelease = backend.MouseRelease MouseScrollUp = backend.MouseScrollUp MouseScrollDown = backend.MouseScrollDown )
Re-exported Constants
Variables ¶
var ( SymbolsSingle = widgets.SymbolsSingle SymbolsDouble = widgets.SymbolsDouble SymbolsThick = widgets.SymbolsThick SymbolsRounded = widgets.SymbolsRounded SymbolsBlock = widgets.SymbolsBlock )
var ( ColorDefault = cell.NewColorDefault() ColorBlack = cell.NewColorANSI(0) ColorRed = cell.NewColorANSI(1) ColorGreen = cell.NewColorANSI(2) ColorYellow = cell.NewColorANSI(3) ColorBlue = cell.NewColorANSI(4) ColorMagenta = cell.NewColorANSI(5) ColorCyan = cell.NewColorANSI(6) ColorWhite = cell.NewColorANSI(7) )
Color Presets
Functions ¶
func Run ¶
Run starts an event-driven Limoni application loop. appFn is invoked with the active Frame and the triggering Event. Returning false from appFn cleanly exits the application. On the first invocation, ev is nil for the initial render. Ctrl+C automatically terminates the application.
func Start ¶
Start displays a static or single-state frame and cleanly exits when 'q', 'ESC', or Ctrl+C is pressed.
func StringWidth ¶
StringWidth returns the terminal display column width of UTF-8 text.
Types ¶
type Color ¶
Re-exported Core Types
type Constraint ¶
type Constraint = layout.Constraint
Re-exported Core Types
func Fill ¶
func Fill() Constraint
Fill creates a constraint that expands to take all remaining available space.
func Percentage ¶
func Percentage(p uint16) Constraint
Percentage creates a percentage-based layout constraint (0-100).
type ListState ¶
Re-exported Core Types
func NewListState ¶
func NewListState() *ListState
NewListState creates a new ListState for tracking list item selection and scroll offsets.
type Markdown ¶
Re-exported Core Types
func NewMarkdown ¶
NewMarkdown creates a new Markdown rendering widget.
type Paragraph ¶
Re-exported Core Types
func NewParagraph ¶
NewParagraph creates a new Paragraph widget with word-wrapping enabled.
type Rect ¶
Re-exported Core Types
func SplitHorizontal ¶
func SplitHorizontal(area Rect, constraints ...Constraint) []Rect
SplitHorizontal splits an area horizontally according to constraints.
func SplitVertical ¶
func SplitVertical(area Rect, constraints ...Constraint) []Rect
SplitVertical splits an area vertically according to constraints.
type SelectState ¶
type SelectState = widgets.SelectState
Re-exported Core Types
func NewSelectState ¶
func NewSelectState() *SelectState
NewSelectState creates a new SelectState for dropdown selection.
type SliderState ¶
type SliderState = widgets.SliderState
Re-exported Core Types
func NewSliderState ¶
func NewSliderState(value int) *SliderState
NewSliderState creates a new SliderState with the given initial value.
type Style ¶
Re-exported Core Types
type TableState ¶
type TableState = widgets.TableState
Re-exported Core Types
func NewTableState ¶
func NewTableState() *TableState
NewTableState creates a new TableState for tracking selection, scrolling, and column sizes.
type TextAreaState ¶
type TextAreaState = widgets.TextAreaState
Re-exported Core Types
func NewTextAreaState ¶
func NewTextAreaState() *TextAreaState
NewTextAreaState creates a new TextAreaState for multiline text editing.
type TextInput ¶
Re-exported Core Types
func NewTextInput ¶
NewTextInput creates a single-line interactive TextInput widget with the specified ID.
type TextInputState ¶
type TextInputState = widgets.TextInputState
Re-exported Core Types
func NewTextInputState ¶
func NewTextInputState() *TextInputState
NewTextInputState creates a new TextInputState for managing typed text and cursor position.
Directories
¶
| Path | Synopsis |
|---|---|
|
runners/compare
command
|
|
|
runners/dashboard
command
|
|
|
runners/limoni
command
|
|
|
cmd
|
|
|
limoni
command
Command limoni, Limoni TUI projeleri için iskelet (scaffold) üretir.
|
Command limoni, Limoni TUI projeleri için iskelet (scaffold) üretir. |
|
compat
|
|
|
core
|
|
|
accessibility
Package accessibility contains semantic UI metadata independent of rendering.
|
Package accessibility contains semantic UI metadata independent of rendering. |
|
runtime
Package runtime provides an optional Init/Update/View application runtime.
|
Package runtime provides an optional Init/Update/View application runtime. |
|
examples
|
|
|
3d_viewer
command
|
|
|
animation
command
|
|
|
ascii3d
command
ascii3d demonstrates real-time 3D ASCII & sub-cell rendering in Limoni TUI.
|
ascii3d demonstrates real-time 3D ASCII & sub-cell rendering in Limoni TUI. |
|
charts
command
|
|
|
custom_widget
command
|
|
|
dashboard
command
|
|
|
demo
command
Limoni Flagship Interactive Demo Designed with a clean, professional sidebar layout, full mouse click interaction, and studio-quality 3D lemon model rendering.
|
Limoni Flagship Interactive Demo Designed with a clean, professional sidebar layout, full mouse click interaction, and studio-quality 3D lemon model rendering. |
|
forms
command
forms demonstrates the Select and Slider widgets.
|
forms demonstrates the Select and Slider widgets. |
|
layer_demo
command
layer_demo demonstrates Limoni layered rendering capabilities: - Layered Rendering with z-index based compositing - Modal Dialog with Focus Trapping - Popup / Dropdown menus - Click-outside dismissal mechanism
|
layer_demo demonstrates Limoni layered rendering capabilities: - Layered Rendering with z-index based compositing - Modal Dialog with Focus Trapping - Popup / Dropdown menus - Click-outside dismissal mechanism |
|
paint
command
|
|
|
showcase
command
|
|
|
simple
command
|
|
|
ssh_server
command
|
|
|
table_virtual
command
|
|
|
toast
command
|
|
|
todo
command
|
|
|
treeview
command
|
|
|
wasm
command
|
|
|
internal
|
|
|
tools/widgetdocs
command
Command widgetdocs, widgets paketindeki kaynak koddan docs/widget-gallery.md dosyasını üretir.
|
Command widgetdocs, widgets paketindeki kaynak koddan docs/widget-gallery.md dosyasını üretir. |
|
Package testkit provides deterministic, terminal-independent helpers for testing Limoni widgets and frames.
|
Package testkit provides deterministic, terminal-independent helpers for testing Limoni widgets and frames. |