fontlab_glyport.ui.cocoa_containers
cocoa_containers
Container views a NIB can hold (R031): NSStackView, NSScrollView,
NSBox, NSSplitView, NSGridView, NSVisualEffectView.
A stack view is a frame-based container, like every NIB view here (Auto Layout
constraints are not solved). Views loaded from a NIB keep Interface Builder's
frames. When the arranged views change (added, inserted, removed, hidden with
detachesHiddenViews) or the orientation, spacing, alignment or insets are
set, the stack places its arranged views again: along the axis from the
leading edge (top-down when vertical, Cocoa's y decreasing), spacing
apart, inside edgeInsets, each at its current size, and aligned on the
other axis (leading/top, trailing/bottom, else centred). Distributions:
gravity areas and fill keep sizes (fill's stretched view depends on hugging
priorities, which are not decoded);
fill equally/proportionally resize along the axis; equal spacing/centering
spread the views. The stack view does not resize itself.
Classes
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
CONTAINER_CLASSES |
attribute | ||
NSEdgeInsetsMake |
function | (top, left, bottom, right) -> NSEdgeInsets |