Documentation ¶
Index ¶
- Variables
- func Echo[O any](fn func() O) O
- func Echo2[O any, O1 any](fn func() (O, O1)) (O, O1)
- func Echo3[O any, O1 any, O2 any](fn func() (O, O1, O2)) (O, O1, O2)
- func UseEffect(ctx BuildContext, setup func() func(), deps []any)
- func UseMemo[T any](ctx BuildContext, setup func() T, deps []any) T
- type BuildContext
- type Component
- type ComponentWrapper
- type Element
- type ElementPainter
- type IconvgSetter
- type ImageSetter
- type ParentInsetSetter
- type Ref
- type State
- type SubmitEventProvider
- type TextSetter
- type VNode
- func Box(modifiers ...modifier.Modifier[any]) VNode
- func CloneNode(n VNode, modifiers ...modifier.Modifier[any]) VNode
- func Column(modifiers ...modifier.Modifier[any]) VNode
- func FormController(modifiers ...modifier.Modifier[any]) VNode
- func Fragment(vnodes ...VNode) VNode
- func H(component Component, modifiers ...modifier.Modifier[any]) VNode
- func Icon(src []byte, modifiers ...modifier.Modifier[any]) VNode
- func Image(image image.Image, modifiers ...modifier.Modifier[any]) VNode
- func Input(modifies ...modifier.Modifier[any]) VNode
- func Portal(mountPoint node.Node) VNode
- func ProvideTextStyle(modifiers ...modifier.Modifier[*text.Style]) VNode
- func Provider(c func(ctx context.Context) context.Context, ...) VNode
- func Row(modifiers ...modifier.Modifier[any]) VNode
- func Text(text string, modifies ...modifier.Modifier[*text.Style]) VNode
- type WidgetWithPositionBy
Constants ¶
This section is empty.
Variables ¶
View Source
var SubmitEventProviderContext = contextutil.New[SubmitEventProvider]( contextutil.Defaulter(func() SubmitEventProvider { return &formController{} }), )
Functions ¶
func UseEffect ¶
func UseEffect(ctx BuildContext, setup func() func(), deps []any)
func UseMemo ¶
func UseMemo[T any](ctx BuildContext, setup func() T, deps []any) T
Types ¶
type BuildContext ¶
type BuildContext = internal.BuildContext
type ComponentWrapper ¶
type ComponentWrapper = internal.ComponentWrapper
type ElementPainter ¶
type ElementPainter = internal.ElementPainter
func ElementPainterFunc ¶
func ElementPainterFunc(layout func(gtx layout.Context) layout.Dimensions) ElementPainter
type IconvgSetter ¶
type IconvgSetter interface {
SetIconvg(src []byte)
}
type ImageSetter ¶
type Ref ¶
type Ref[T any] struct { Current T }
func UseRef ¶
func UseRef[T any](ctx BuildContext, initialValue T) *Ref[T]
type State ¶
type State[T comparable] interface { Value() T Update(value T) UpdateFunc(func(prev T) T) }
func UseState ¶
func UseState[T comparable](ctx BuildContext, defaultState T) State[T]
type SubmitEventProvider ¶
type SubmitEventProvider interface { WatchSubmitEvent(fn func()) TriggerSubmit() }
type TextSetter ¶
type TextSetter interface {
SetText(txt string)
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.