Skip to main content

sui_widgets/
composites.rs

1//! Public exports for the feature modules below.
2
3mod dialogs;
4mod forms;
5mod indicators;
6mod navigation;
7mod painting;
8mod popups;
9mod status;
10mod surfaces;
11mod toolbars;
12
13pub use dialogs::BottomSheet;
14pub use dialogs::CommandPalette;
15pub use dialogs::Dialog;
16pub use dialogs::SheetState;
17pub use dialogs::SideSheet;
18pub use dialogs::SideSheetPlacement;
19pub use forms::ActionCard;
20pub use forms::DetailRow;
21pub use forms::DockPanel;
22pub use forms::FieldGroup;
23pub use forms::FormRow;
24pub use forms::FormSection;
25pub use forms::PanelSection;
26pub use forms::PropertyRow;
27pub use forms::PropertyRowLayout;
28pub use forms::SectionLabel;
29pub use forms::SectionLabelPaint;
30pub use forms::detail_row_height_for_value;
31pub use forms::paint_detail_row_at;
32pub use forms::paint_section_label;
33pub use forms::paint_section_label_detail;
34pub use indicators::CoverageDots;
35pub use indicators::CoverageDotsConfig;
36pub use indicators::PlacementBadge;
37pub use indicators::PlacementBadgePaint;
38pub use indicators::ProgressBar;
39pub use indicators::Spinner;
40pub use indicators::paint_coverage_dots;
41pub use indicators::paint_coverage_dots_with_config;
42pub use indicators::paint_placement_badge;
43pub use indicators::paint_placement_badge_with;
44pub use indicators::paint_progress_bar;
45pub use navigation::BrowserTabBar;
46pub use navigation::SegmentedControl;
47pub use navigation::SegmentedControlItem;
48pub use navigation::TabBar;
49pub use navigation::TabBarItem;
50pub use navigation::Tabs;
51pub use painting::ActionTileGeometry;
52pub use painting::ActionTilePaint;
53pub use painting::CalloutPaint;
54pub use painting::CodePanelPaint;
55pub use painting::CodeTextLine;
56pub use painting::CodeTextPaint;
57pub use painting::CodeTextSpan;
58pub use painting::CommandButtonFill;
59pub use painting::CommandButtonPaint;
60pub use painting::DisclosureButtonPaint;
61pub use painting::EmptyStatePaint;
62pub use painting::HairlineEdge;
63pub use painting::SectionPanelGeometry;
64pub use painting::SectionPanelPaint;
65pub use painting::paint_action_tile;
66pub use painting::paint_border;
67pub use painting::paint_callout;
68pub use painting::paint_code_lines;
69pub use painting::paint_code_panel;
70pub use painting::paint_command_button;
71pub use painting::paint_disclosure_button;
72pub use painting::paint_empty_state;
73pub use painting::paint_hairline;
74pub use painting::paint_rounded_panel;
75pub use painting::paint_rounded_rect;
76pub use painting::paint_section_panel;
77pub use popups::Menu;
78pub use popups::Popover;
79pub use popups::PopoverAlignment;
80pub use popups::Tooltip;
81pub use popups::TooltipAlignment;
82pub use popups::TooltipPlacement;
83pub use popups::{ContextMenu, ContextMenuHandle};
84pub use status::EmptyState;
85pub use status::PresetStrip;
86pub use status::StatusBadge;
87pub use status::StatusBar;
88pub use status::StatusBarHost;
89pub use status::StatusBarSegment;
90pub use status::paint_status_badge;
91pub use surfaces::FramedField;
92pub use surfaces::ShadowBox;
93pub use surfaces::Surface;
94pub use surfaces::SurfaceAppearance;
95pub use surfaces::SurfaceBorder;
96pub use surfaces::SurfaceElevation;
97pub use surfaces::SurfaceRole;
98pub use toolbars::CommandGroup;
99pub use toolbars::MenuItem;
100pub use toolbars::ToolPalette;
101pub use toolbars::ToolPaletteItem;
102pub use toolbars::Toolbar;
103
104#[cfg(test)]
105use crate::composites::forms::{
106    detail_row_label_style, detail_row_value_style, dock_panel_title_id, panel_section_title_id,
107    property_row_label_id, section_label_text_style,
108};
109#[cfg(test)]
110use crate::composites::indicators::text_token_style;
111#[cfg(test)]
112use crate::composites::navigation::{browser_tab_close_semantics_id, browser_tab_semantics_id};
113#[cfg(test)]
114use crate::draw::{inset_rect, mix_color, rect_center};
115
116#[cfg(test)]
117use crate::composites::status::status_bar_segment_id;
118
119#[cfg(test)]
120mod shadow_tests;
121#[cfg(test)]
122mod tests;