Expand description
Layout engines: MacFixedView (absolute pt), MacSplitView (NSSplitView),
MacScrollView (NSScrollView), MacStackView (NSStackView), and MacForm (NSForm).
Re-exports§
pub use form::MacForm;pub use form::MacFormUi;pub use scroll_view::MacScrollView;pub use scroll_view::MacScrollViewOutput;pub use scrollbar::render_overlay_thumb;pub use split_view::MacSplitOrientation;pub use split_view::MacSplitView;pub use stack_view::MacStackAlignment;pub use stack_view::MacStackOrientation;pub use stack_view::MacStackUi;pub use stack_view::MacStackView;pub use stack_view::MacStackViewOutput;
Modules§
- form
- Authentic macOS AppKit Form Layout (
MacForm). - scroll_
view - Authentic macOS AppKit Floating Overlay Scroll View (NSScrollView equivalent).
- scrollbar
- Authentic macOS Floating Overlay Scrollbar Thumb primitives.
- split_
view - Authentic macOS AppKit Hairline Split View (NSSplitView equivalent).
- stack_
view - Authentic macOS AppKit Stack View (NSStackView equivalent).
Structs§
- MacFixed
View - Absolute pt coordinate container based on macOS NIB geometries.
- MacFrame
- A logical geometry frame in AppKit points.
- MacRow
- Deterministic horizontal row container with fixed height and spacing budget.
Functions§
- is_
window_ active - Returns whether the host window and viewport are currently focused, active, and not minimized. Used across timers, animations, and audio synchronization to eliminate wasteful background repaints and battery drain.
- subpixel_
snap - Snaps a logical coordinate to the nearest physical hardware pixel boundary according to the Subpixel Snap Criterion (SPEC-001 §2.1 A):
- subpixel_
snap_ pos - Snaps a 2D logical point
Pos2to hardware pixel boundaries. - subpixel_
snap_ rect - Snaps a logical
Rectto hardware pixel boundaries.