Versions in this module Expand all Collapse all v0 v0.1.5 Jun 9, 2020 v0.1.4 Jun 9, 2020 v0.1.3 Jun 9, 2020 v0.1.2 Jun 9, 2020 v0.1.1 Jun 9, 2020 v0.1.0 Jun 9, 2020 Changes in this version + func CreateElement(component Component, props Properties, children Children) *fiber + func CreateFragment(children Children) *fiber + func CreateScreenElement(calculateLayout CalculateLayout, render RenderToScreen, props Properties, ...) *fiber + func Retort(root Element, config RetortConfiguration) + func UseEffect(effect Effect, deps EffectDependencies) + func UseQuit() func() + func UseScreen() tcell.Screen + func UseState(initial State) (State, SetState) + type Action = func(s State) State + type ActionCreator struct + type BlockLayout struct + Border EdgeSizes + Columns int + FixedColumns bool + FixedRows bool + Grow int + Margin EdgeSizes + Order int + Padding EdgeSizes + Rows int + Valid bool + X int + Y int + ZIndex int + type BlockLayouts = []BlockLayout + type CalculateLayout func(s tcell.Screen, stage CalculateLayoutStage, parentBlockLayout BlockLayout, ...) (blockLayout BlockLayout, innerBlockLayout BlockLayout, ...) + type CalculateLayoutStage int + const CalculateLayoutStageFinal + const CalculateLayoutStageInitial + const CalculateLayoutStageWithChildren + type Children []*fiber + type Component func(props Properties) Element + type Context struct + func CreateContext(initial State) *Context + func (c *Context) Mount(state State) + type DisplayCommand struct + BlockLayout BlockLayout + RenderToScreen *RenderToScreen + type DisplayList []DisplayCommand + func (dl DisplayList) Sort() + type DisplayListSortZIndex []DisplayCommand + func (dl DisplayListSortZIndex) Len() int + func (dl DisplayListSortZIndex) Less(i, j int) bool + func (dl DisplayListSortZIndex) Swap(i, j int) + type EdgeSizes struct + Bottom int + Left int + Right int + Top int + type Effect func() EffectCancel + type EffectCancel func() + type EffectDependencies []interface + type Element *fiber + type EventHandler = func(e *tcell.Event) + type EventHandlerMouse = func(e *tcell.EventMouse) + type EventHandlerMouseHover = func() + type EventMouseClick = func(isPrimary, isSecondary bool, buttonMask tcell.ButtonMask) EventMouseClickRelease + type EventMouseClickDrag = func() + type EventMouseClickRelease = func() + type EventMouseScroll = func(up, down, left, right bool) + type Properties []interface + func (props Properties) GetOptionalProperty(propType interface{}) interface{} + func (props Properties) GetProperty(propType interface{}, errorMessage string) interface{} + func AddPropsIfNone(props Properties, prop interface{}) Properties + func ReplaceProps(props Properties, prop interface{}) Properties + type RenderToScreen func(s tcell.Screen, blockLayout BlockLayout) + type RetortConfiguration struct + DisableMouse bool + UseDebugger bool + UseSimulationScreen bool + type SetState = func(a Action) + type State []interface + func (state State) GetState(stateType interface{}) interface{} + func UseContext(c *Context) State