package
0.22.0
Repository: https://github.com/mokiat/lacking.git
Documentation: pkg.go.dev

# Functions

After will schedule a closure function to be run after the specified amount of time.
No description provided by the author
ContextScope returns a new Scope that extends the specified parent scope but uses a different ui.Context.
ContextScoped will cause a wrapped component to receive a Scope that has a dedicated ui.Context with a lifecycle equal to the lifecycle of the component instance.
CreateFont uses the ui.Context from the specified scope to create a new ui.Font based on the passed opentype Font.
CreateImage uses the ui.Context from the specified scope to create a new image.
Define defines a new component using the specified Go type as template.
Every will schedule a closure function to be run every interval amount of time.
GetCallbackData returns the callback data stored in Properties as the specified type.
GetData returns the data stored in Properties as the specified type.
GetFont uses the ui.Context from the specified scope to retrieve the font with the specified family and style.
GetLayoutData returns the layout data stored in Properties as the specified type.
GetOptionalCallbackData returns the callback data stored in Properties as the specified type, unless there is no callback data, in which case the defaultValue is returned.
GetOptionalData returns the data stored in Properties as the specified type, unless there is no data, in which case the defaultValue is returned.
GetOptionalLayoutData returns the layout data stored in Properties as the specified type, unless there is no layout data, in which case the defaultValue is returned.
GetScopeValue is a helper function that retrieves the value as the specified generic param type from the specified scope using the provided key.
Initialize wires the framework using the specified root scope.
Invalidate causes the component that owns the specified scope to be recalculated.
IsEqualData compares if the two data objects are equal.
New instantiates the specified component.
OpenFont uses the ui.Context from the specified scope to load the font at the specified uri location.
OpenFontCollection uses the ui.Context from the specified scope to load the font collection at the specified uri location.
OpenImage uses the ui.Context from the specified scope to load image at the specified uri location.
OpenOverlay opens a new Overlay that will take the appearance described in the specified instance.
RootScope initializes a new scope associated with the specified window.
Schedule will schedule a closure function to run as soon as possible on the UI thread.
TypedValue returns the value in the specified scope associated with the generic type.
TypedValueScope returns a ValueScope that uses the value's type as the key.
ValueScope creates a new Scope that extends the specified parent scope by adding the specified key-value pair.
Window uses the specified scope to retrieve the Window that owns that particular scope.
WithCallbackData specifies the callback data to be passed to the component during instantiation.
WithChild adds a child to the given component.
WithChildren sets the children for the given component.
WithData specifies the data to be passed to the component during instantiation.
WithLayoutData specifies the layout data to be passed to the component during instantiation.
WithScope attaches a custom Scope to this component.
XWithCallbackData is a helper function that resembles WithCallbackData but does nothing.
XWithChild is a helper function that resembles WithChild but does nothing.
XWithChildren is a helper function that resembles WithChildren but does nothing.
XWithData is a helper function that resembles WithData but does nothing.
XWithLayoutData is a helper function that resembles WithLayoutData but does nothing.
XWithScope is a helper function that resembles WithScope but does nothing.

# Variables

Element represents the most basic component, which is translated to a UI Element.

# Structs

No description provided by the author
ElementData is the struct that should be used when configuring an Element component's data.
Instance represents the instantiation of a given Component chain.
Properties is a holder for all user-specified data necessary to render a component.

# Interfaces

Component represents the definition of a component.
CreateNotifiable should be implemented by component types that want to be notified of component creation.
DeleteNotifiable should be implemented by component types that want to be notified of component deletion.
Overlay represents a UI Element that stays on top of all existing elements and is first to receive events.
Renderable is a component that is implemented through a Go type.
Scope represents a component sub-hierarchy region.
UpdateNotifiable should be implemented by component types that want to be notified of component updates.
UpsertNotifiable should be implemented by component types that want to be notified of component creations and updates.

# Type aliases

InvalidateFunc can be used to indicate that the component's data has been internally modified and it needs to be reconciled.