Views and composition
This reference documents every current public declaration in this part of Pine. Examples run inside App.Mount(), a component factory, or an explicit P.Root(...) unless they only create state/configuration. Explicit P.Mount(...) remains available for advanced ownership. Variable names such as count, items and label refer to the typed values described by each example. All APIs run on Unity’s main thread.
View
View
A deferred native UI declaration.
View.With
public View With(params View[] entries)
Returns a declaration with the supplied entries appended in order.
public View With(Func<IEnumerable<View>> children)
Appends tracked children.
P.Self
public static View Self(View view)
Places a visual declaration's component on its containing GameObject.
P.Declare
public static View Declare<T>(
Action<T> configure = null,
Action<T> reference = null,
bool modifier = false,
Value<bool>? active = null
)
where T : Component
Declares a custom native component using the same ownership and composition rules as built-in factories.
P.Mount
public static Mount Mount(
Func<View> component,
Transform parent = null,
CanvasOptions options = null
)
Builds and mounts a deferred view once.
public static Mount Mount(View view, Transform parent = null, CanvasOptions options = null)
Builds and mounts an existing reusable declaration once.
P.Vertical
public static View Vertical(View first, params View[] rest)
Composes vertical children without a settings block.
P.Horizontal
public static View Horizontal(View first, params View[] rest)
Composes horizontal children without a settings block.
