Skip to main content

Module layout

Module layout 

Source
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§

MacFixedView
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 Pos2 to hardware pixel boundaries.
subpixel_snap_rect
Snaps a logical Rect to hardware pixel boundaries.