1#![doc = include_str!("../README.md")]
5#![deny(missing_docs)]
6
7pub const VERSION: &str = env!("CARGO_PKG_VERSION");
9
10pub mod controls;
11pub mod feedback;
12pub mod layout;
13pub mod motion;
14pub mod navigation;
15pub mod state;
16pub mod surfaces;
17pub mod symbols;
18pub mod theme;
19pub mod tokens;
20
21pub use symbols::{
22 setup_macview_fonts, setup_symbols_font, MacSymbol, CUPERTINO_ICONS_FONT_BYTES,
23 CUPERTINO_ICONS_FONT_NAME, INTER_REGULAR_FONT_BYTES, INTER_REGULAR_FONT_NAME,
24 INTER_SEMIBOLD_FONT_BYTES, INTER_SEMIBOLD_FONT_NAME,
25};
26
27pub use theme::{
28 alpha_composite, contrast_ratio, ensure_wcag_contrast, plus_darker, plus_lighter,
29 relative_luminance, MacAppearance, MacBackgroundStyle, MacTheme, WindowControlsStyle,
30};
31
32pub use controls::{
33 calculate_pan_weights, format_remaining_timecode, format_timecode, MacBox, MacButton,
34 MacButtonCell, MacCheckbox, MacCircularSlider, MacCollectionView, MacCollectionViewFlowLayout,
35 MacColorWell, MacComboBox, MacControlSize, MacDate, MacDatePicker, MacDatePickerElementFlags,
36 MacDatePickerStyle, MacDisclosureButton, MacDisclosureGroup, MacDisclosureResponse,
37 MacFontWeight, MacHelpButton, MacInlineActionButton, MacInputCell, MacInsets, MacLabel,
38 MacLabelColor, MacLevelIndicator, MacLevelIndicatorStyle, MacLevelOrientation, MacOriginAnchor,
39 MacOriginMatrix, MacOutlineRow, MacOutlineRowResponse, MacOutlineTree, MacOutlineView,
40 MacPathComponent, MacPathControl, MacPathControlResponse, MacPlayerControlsStyle,
41 MacPlayerView, MacPopUpButton, MacProgressControlSize, MacProgressIndicator, MacProgressStyle,
42 MacRadioButton, MacRatingIndicator, MacRuleEditor, MacRuleRow, MacSearchField,
43 MacSegmentEvent, MacSegmentItem, MacSegmentedControl, MacSlider, MacSortDirection, MacStepper,
44 MacTabItem, MacTabStyle, MacTabView, MacTableActionBar, MacTableActionResponse, MacTableColumn,
45 MacTableView, MacTableViewOutput, MacTableViewResponse, MacTagColorPicker, MacThumbnailCell,
46 MacTimelineZone, MacToggle, MacTokenField, MacTrimScrubber, MacTrimScrubberResponse,
47 SegmentContent, SegmentEvent, SegmentIconFn, SegmentIconPainter, SegmentItem,
48 SegmentMenuTrigger, UNIT_STAR,
49};
50pub use feedback::{clamp_menu_rect, MacContextMenu, MacToast, MacToastManager, ToastLevel};
51pub use layout::{
52 is_window_active, subpixel_snap, subpixel_snap_pos, subpixel_snap_rect, MacFixedView, MacForm,
53 MacFormUi, MacFrame, MacRow, MacScrollView, MacScrollViewOutput, MacSplitOrientation,
54 MacSplitView, MacStackAlignment, MacStackOrientation, MacStackUi, MacStackView,
55 MacStackViewOutput,
56};
57pub use motion::CASpring;
58pub use navigation::{
59 CommandPaletteItem, MacCanvasFooter, MacCanvasFooterAction, MacCommandPalette,
60 MacKeyboardShortcut, MacMenuBar, MacMenuItemKind, MacToolbar, MacToolbarResponse, NSMenu,
61 NSMenuItem, CANVAS_FOOTER_HEIGHT, COMMAND_PALETTE_HEIGHT, COMMAND_PALETTE_WIDTH,
62};
63pub use state::{NSUndoManager, DEFAULT_UNDO_CAPACITY};
64pub use surfaces::{
65 MacCard, MacFloatingInfoBox, MacPanel, MacPopover, MacPopoverArrowEdge, MacPopoverSurface,
66};
67pub use tokens::{
68 sf_pro_tracking, CheckboxMetrics, CheckboxSizeMetrics, ColorWellMetrics, HelpButtonMetrics,
69 InlineActionButtonMetrics, LabelMetrics, LayoutMetrics, LevelIndicatorMetrics, MacColorTokens,
70 MacControlMetrics, MacDesignTokens, MacMotionTokens, MacTagLabelColors, MacTypographyTokens,
71 OriginMatrixMetrics, OutlineViewMetrics, PathControlMetrics, PopUpButtonMetrics,
72 ProgressIndicatorMetrics, ProgressSizeMetrics, ScrollViewMetrics, SearchFieldMetrics,
73 SliderMetrics, SplitViewMetrics, StackViewMetrics, StepperMetrics, TableActionBarMetrics,
74 TableViewMetrics, TagColorPickerMetrics, ThumbnailCellMetrics, ToggleMetrics, TokenFieldMetrics,
75 TrimScrubberMetrics,
76};