#![doc = include_str!("../README.md")]
#![deny(missing_docs)]
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub mod controls;
pub mod feedback;
pub mod layout;
pub mod motion;
pub mod navigation;
pub mod state;
pub mod surfaces;
pub mod symbols;
pub mod theme;
pub mod tokens;
pub use symbols::{
setup_symbols_font, MacSymbol, CUPERTINO_ICONS_FONT_BYTES, CUPERTINO_ICONS_FONT_NAME,
};
pub use theme::{
contrast_ratio, relative_luminance, MacAppearance, MacBackgroundStyle, MacTheme,
WindowControlsStyle,
};
pub use controls::{
calculate_pan_weights, MacBox, MacButtonCell, MacCircularSlider, MacCollectionView,
MacCollectionViewFlowLayout, MacColorWell, MacComboBox, MacControlSize, MacDate, MacDatePicker,
MacDatePickerElementFlags, MacDatePickerStyle, MacDisclosureButton, MacDisclosureGroup,
MacInputCell, MacLevelIndicator, MacLevelIndicatorStyle, MacLevelOrientation, MacOutlineRow,
MacOutlineRowResponse, MacOutlineTree, MacOutlineView, MacPathComponent, MacPathControl,
MacPathControlResponse, MacPlayerControlsStyle, MacPlayerView, MacPopUpButton,
MacProgressControlSize, MacProgressIndicator, MacProgressStyle, MacRatingIndicator,
MacSearchField, MacSegmentedControl, MacSlider, MacSortDirection, MacStepper, MacTabItem,
MacTabStyle, MacTabView, MacTableColumn, MacTableView, MacTableViewOutput, MacTableViewResponse,
MacThumbnailCell, MacTimelineZone, MacToggle, MacTokenField, MacTrimScrubber,
MacTrimScrubberResponse, UNIT_STAR, MacInsets,
};
pub use feedback::{clamp_menu_rect, MacContextMenu, MacToast, MacToastManager, ToastLevel};
pub use layout::{
is_window_active, subpixel_snap, subpixel_snap_pos, subpixel_snap_rect, MacFixedView, MacForm,
MacFormUi, MacFrame, MacRow, MacScrollView, MacScrollViewOutput, MacSplitOrientation,
MacSplitView, MacStackAlignment, MacStackOrientation, MacStackUi, MacStackView,
MacStackViewOutput,
};
pub use motion::CASpring;
pub use navigation::{
CommandPaletteItem, MacCanvasFooter, MacCanvasFooterAction, MacCommandPalette,
MacKeyboardShortcut, MacMenuBar, MacMenuItemKind, MacToolbar, MacToolbarResponse, NSMenu,
NSMenuItem, CANVAS_FOOTER_HEIGHT, COMMAND_PALETTE_HEIGHT, COMMAND_PALETTE_WIDTH,
};
pub use state::{NSUndoManager, DEFAULT_UNDO_CAPACITY};
pub use surfaces::{MacCard, MacFloatingInfoBox, MacPanel, MacPopover, MacPopoverArrowEdge};
pub use tokens::{
sf_pro_tracking, ColorWellMetrics, LayoutMetrics, LevelIndicatorMetrics, MacColorTokens,
MacControlMetrics, MacDesignTokens, MacMotionTokens, MacTypographyTokens, OutlineViewMetrics,
PathControlMetrics, PopUpButtonMetrics, ProgressIndicatorMetrics, ProgressSizeMetrics,
ScrollViewMetrics, SearchFieldMetrics, SliderMetrics, SplitViewMetrics, StackViewMetrics,
StepperMetrics, TableViewMetrics, ThumbnailCellMetrics, ToggleMetrics, TokenFieldMetrics,
TrimScrubberMetrics,
};