Interface IHostedSizeApplier
Reserves a hosted view's reported content size on its layout slot. Implemented by UnityLayoutBuilder; injected into HostedChildManager (and used by the composite factory) so the "how an auto-sized hosted child claims space" rule has one owner instead of a static helper called from two places.
Namespace: Serenity.Ui.Infrastructure.Views
Assembly: Serenity.UnityUi.Infrastructure.dll
Syntax
public interface IHostedSizeApplier
Methods
ApplyHostedAutoSize(GameObject, IHostableView, bool)
Applies the hosted view's preferred content size to its slot.
Declaration
void ApplyHostedAutoSize(GameObject hostedGameObject, IHostableView hostable, bool parentHorizontal)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | hostedGameObject | The hosted view's GameObject placed inside the container. |
| IHostableView | hostable | The hosted view reporting its preferred content size. |
| bool | parentHorizontal | True when the parent container's main axis is horizontal. |