Skip to main content

Crate truce_gui_utils

Crate truce_gui_utils 

Source
Expand description

Shared host-side platform helpers for truce GUI backends that embed a wgpu-backed (or CALayer-backed) child view into a DAW-provided parent window.

Currently macOS-only: the helpers pin an embedded NSView’s top edge to its superview’s top edge across host-driven resizes. Linux/Windows hosts manage child-window positioning natively, so these helpers are no-ops there.

Functions§

reanchor_all_children_to_top
reanchor_to_superview_top