Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func IsAttached ¶ added in v0.6.0
IsAttached reports whether the node provided leads to a node that is attached.
func ValidateTree ¶ added in v0.6.0
ValidateTree inspects a tree and ensures that it conforms to all relevant constraints, namely there should only be one PaneType with Attached=true.
Types ¶
type BorderType ¶ added in v0.5.0
type Layout ¶
type Layout struct {
Root NodeType
}
func (*Layout) MarshalJanet ¶
func (l *Layout) MarshalJanet() interface{}
type MarginsType ¶
type NodeChangeEvent ¶ added in v0.6.0
type NodeChangeEvent struct {
Config NodeType
}
type NodeRemoveEvent ¶ added in v0.6.0
type NodeRemoveEvent struct{}
type NodeType ¶
type NodeType interface{}
func AttachFirst ¶ added in v0.6.0
AttachFirst attaches to the first node it can find.
func RemoveAttached ¶ added in v0.6.0
RemoveAttached removes the attached node by replacing its nearest parent that has more than one child with a parent with that child removed, or the other child if there are no other children.
type Reusable ¶ added in v0.6.0
Reusable is used to describe a Screen that has a configuration that can change. Often a Screen does not actually need to be created from scratch when the corresponding layout node changes; it can just be updated. The reuse function checks whether the Screen can be updated to match the new configuration and updates it if possible.