sinomo-ui-widgets 0.4.0

Built-in widget library for SUI.
Documentation
#![forbid(unsafe_code)]
// Widgets naturally combine callback trait objects and parameter-rich paint helpers.
#![allow(clippy::too_many_arguments, clippy::type_complexity)]

pub mod animation;
mod binding;
pub mod canvas;
pub mod collection;
pub mod composites;
pub mod containers;
pub mod controls;
pub mod data;
pub mod docking;
pub mod drag_drop;
mod draw;
mod editable_text;
mod editor;
mod frame;
pub mod hdr_theme;
pub mod layout_policy;
pub mod media;
pub mod overlay;
pub mod panes;
pub mod presence;
pub mod reorderable;
pub mod rich_document;
pub mod rich_text;
pub mod selection;
mod text_align;
pub mod text_command;
pub mod text_surface;
pub mod theme;
pub mod workspace;

pub use animation::{
    ANIMATION_DOCUMENT_VERSION, AnimatedValue, AnimationBinding, AnimationBindingInvalidation,
    AnimationDocument, AnimationDocumentFormatError, AnimationEditorCommand, AnimationEditorState,
    AnimationPlayer, AnimationProperty, AnimationPropertyPath, AnimationSelection, AnimationSpec,
    AnimationTargetId, AnimationTick, AnimationValue, AnimationValueKind, Blink, Clip,
    CompiledClip, CompiledTimeline, CompiledTrack, Easing, Interpolate, Keyframe,
    KeyframeSelection, LoopMode, MIN_ANIMATION_DOCUMENT_VERSION, MotionScalar, MotionValue,
    PlaybackSpan, PlaybackState, Progress, Pulse, SampleBatch, SampleBuffer, SampledAnimationValue,
    SharedCompiledTimeline, SpringF32, SpringSpec, Stagger, StaggerOrigin, Timeline,
    TimelineBindingSink, TimelineMarker, TimelinePlayer, TimelineSnap, TimelineTick, Track,
    Transition, invalidation_for_animation_property,
};
pub use canvas::{
    Canvas, CanvasColors, CanvasGridStyle, CanvasRuler, CanvasRulerAxis, CanvasRulerColors,
    CanvasShape, CanvasStroke, CanvasSurface, CanvasViewport, CanvasZoomBehavior,
    CanvasZoomContext, PixelCanvas, PixelCanvasBlendMode, PixelCanvasBrushShape, PixelCanvasColors,
    PixelCanvasExportSnapshot, PixelCanvasState, PixelCanvasTool, paint_canvas_grid,
};
pub use collection::{
    CollectionAnchor, CollectionAnchorGravity, CollectionChange, CollectionDelta,
    CollectionExtentIndex, CollectionModelError, CollectionSync, CollectionWindow, ScrollAlignment,
    VirtualCollectionModel, VirtualCollectionSource, VirtualList, VirtualListChrome,
    VirtualListSelectionMode, VirtualListState, VirtualViewportSnapshot,
};
pub use composites::{
    ActionCard, ActionTilePaint, BottomSheet, BrowserTabBar, CalloutPaint, CodePanelPaint,
    CodeTextLine, CodeTextPaint, CodeTextSpan, CommandButtonFill, CommandButtonPaint, CommandGroup,
    CommandPalette, ContextMenu, ContextMenuHandle, CoverageDots, CoverageDotsConfig, DetailRow,
    Dialog, DisclosureButtonPaint, DockPanel, EmptyState, EmptyStatePaint, FieldGroup, FormRow,
    FormSection, FramedField, HairlineEdge, Menu, MenuItem, PanelSection, PlacementBadge,
    PlacementBadgePaint, Popover, PopoverAlignment, PresetStrip, ProgressBar, PropertyRow,
    PropertyRowLayout, SectionLabel, SectionLabelPaint, SectionPanelGeometry, SectionPanelPaint,
    SegmentedControl, SegmentedControlItem, ShadowBox, SheetState, SideSheet, SideSheetPlacement,
    Spinner, StatusBadge, StatusBar, StatusBarHost, StatusBarSegment, Surface, SurfaceAppearance,
    SurfaceBorder, SurfaceElevation, SurfaceRole, TabBar, TabBarItem, Tabs, ToolPalette,
    ToolPaletteItem, Toolbar, Tooltip, TooltipAlignment, TooltipPlacement,
    detail_row_height_for_value, paint_action_tile, paint_border, paint_callout, paint_code_lines,
    paint_code_panel, paint_command_button, paint_coverage_dots, paint_coverage_dots_with_config,
    paint_detail_row_at, paint_disclosure_button, paint_empty_state, paint_hairline,
    paint_placement_badge, paint_placement_badge_with, paint_progress_bar, paint_rounded_panel,
    paint_rounded_rect, paint_section_label, paint_section_label_detail, paint_section_panel,
    paint_status_badge,
};
// Former names, kept so existing code keeps building; naming one warns.
#[allow(deprecated)]
pub use composites::{BusyIndicator, Drawer, Modal};
pub use containers::{
    Align, Background, ContentExtent, Dock, FixedPaneSplit, Flex, MeasuredBottomDock, Overflow,
    Padding, RebuildOnChange, RebuildOnConstraints, ScrollAxes, ScrollBar, ScrollState, ScrollView,
    SemanticRegion, SizedBox, Stack, SwitchView, TrailingSlotRow, VirtualScrollView,
};
#[allow(deprecated)]
pub use controls::register_builtin_icon_resources;
pub use controls::{
    BUILTIN_ICON_GLYPHS, Button, ButtonAppearance, Checkbox, CheckboxIndicatorState,
    ChoiceAppearance, DateTimeInput, FieldAppearance, Icon, IconButton, IconButtonPaint, IconGlyph,
    InteractionPreview, Label, Link, NumberInput, PasswordInput, RadioButton, RadioGroup, Select,
    Separator, Slider, Switch, TextArea, TextInput, draw_glyph, paint_checkbox_indicator,
    paint_icon_button,
};
// Former names, kept so existing code keeps building; naming one warns.
#[allow(deprecated)]
pub use controls::{ComboBox, Divider, MultilineTextInput, SpinBox};
pub use data::{
    Breadcrumb, BreadcrumbItem, LayerList, LayerListItem, LayerListReorderChange,
    LeadingLabelCellPaint, ListItem, ListView, Table, TableColumn, TableColumnAlignment, TableRow,
    TextBlockPaint, TextCellPaint, TreeItem, TreeView, VirtualTable, VirtualTableColumn,
    VirtualTableRowActivationKind, VirtualTableRowContext, VirtualTableSortDirection,
    VirtualTableState, paint_leading_label_cell, paint_text_block, paint_text_cell,
};
// Former names, kept so existing code keeps building; naming one warns.
#[allow(deprecated)]
pub use data::{DataGrid, PathBar};
pub use docking::{
    DockFloatingGroup, DockLayoutError, DockNode, DockPanelId, DockWorkspace,
    DockWorkspaceSnapshot, DockWorkspaceState, DockZone,
};
pub use drag_drop::{DragDropHost, Draggable, DropHover, DropTarget};
pub use hdr_theme::{
    EffectToken, HdrColorRoles, HdrEffectTokens, HdrLuminanceTokens, HdrMaterialTokens,
    HdrPolicyTokens, HdrThemeMode, HdrThemeTokens, MaterialToken, ResolvedEffectStyle,
    ResolvedHdrStyle, ResolvedMaterialStyle, SemanticColorToken, WidgetColorRole, WidgetEffectRole,
    WidgetLuminanceRole, WidgetMaterialRole, resolve_effect_role, resolve_luminance_role,
    resolve_material_role, resolve_semantic_color, resolve_widget_hdr_style,
};
pub use layout_policy::{
    AspectRatio, AspectRatioFit, Grid, GridCell, LayoutTransition, SafeArea, SafeAreaEdges,
};
pub use media::{
    BrushPreview, BrushPreviewShape, BrushPreviewSpec, ColorPalette, ColorPaletteSwatch,
    ColorPicker, ColorPickerColors, ColorSwatch, Image, ImageFit, SignalMeter, SimpleColorPicker,
    SimpleColorPickerMode,
};
pub use overlay::{
    NotificationCenter, NotificationHost, NotificationId, NotificationUrgency, OverlayAlignment,
    OverlayCollisionPolicy, OverlayHost, OverlayPlacement, OverlayPlacementRequest,
    OverlayPlacementResult, OverlaySide, TransientNotification, place_overlay,
};
pub use panes::{
    FloatingStack, FloatingViewConfig, FloatingViewSnapshot, FloatingWorkspace,
    FloatingWorkspaceState, SplitExtent, SplitPaneSide, SplitState, SplitStateSnapshot, SplitView,
};
// Former names, kept so existing code keeps building; naming one warns.
#[allow(deprecated)]
pub use canvas::{CanvasAppearance, CanvasRulerAppearance, PixelCanvasAppearance};
#[allow(deprecated)]
pub use media::ColorPickerAppearance;
#[allow(deprecated)]
pub use panes::ResizablePane;
pub use presence::{KeyedStack, Presence, PresenceTransition};
pub use reorderable::{ReorderableList, ReorderableListChange};
pub use rich_document::{
    BasicSyntaxHighlighter, RichAttachment, RichBlockId, RichDocumentBlock, RichDocumentBlockKind,
    RichDocumentModel, RichDocumentRenderContext, RichDocumentRendererRegistry,
    RichDocumentSnapshot, RichDocumentSpan, RichDocumentStatus, RichDocumentUpdate,
    RichDocumentView, RichDocumentViewState, RichExtensionBlock, RichInlineImage, RichInlineKind,
    RichInlineStyle, RichLink, RichListItem, RichSyntaxHighlighter, RichSyntaxSpan,
    RichSyntaxTokenKind,
};
pub use rich_text::{RichText, RichTextSourceMap, RichTextSourceSpan};
pub use selection::{
    SelectionChange, SelectionClipboardBehavior, SelectionEntry, SelectionIntent, SelectionOrder,
    SelectionOwnerId, SelectionPayload, SelectionPoint, SelectionScope, TextSelectionInfo,
};
pub use text_align::{
    Paragraph, TextPlacement, TextShaper, VerticalAlign, paint_text, paint_text_line,
    wrap_text_lines,
};
pub use text_command::{TEXT_COMMAND, TextCommand};
pub use text_surface::{
    TextSurface, TextSurfaceOverlayKind, TextSurfaceStatus, TextSurfaceStyleOverlay,
    TextSurfaceStyleSpan,
};
pub use theme::{
    ControlMetrics, ControlPalette, ControlSize, ControlStateMetrics, ControlTypography,
    DecorativeColors, DecorativeHue, DecorativePalette, DefaultTheme, GlowTone, NeutralRamp,
    SemanticTone, SurfacePalette, ThemeAspectRatios, ThemeBlurScale, ThemeBoxShadowScale,
    ThemeBreakpoints, ThemeColorScheme, ThemeColors, ThemeContainers, ThemeDensity,
    ThemeDropShadowScale, ThemeFontFamilies, ThemeFontStack, ThemeFontWeights, ThemeGlows,
    ThemeInsetShadowScale, ThemeLeading, ThemeMotion, ThemePerspective, ThemeRadii, ThemeShadow,
    ThemeShadowLayer, ThemeShadows, ThemeTextScale, ThemeTextShadowScale, ThemeTextToken,
    ThemeTracking, ToneRoles, paint_theme_glow, paint_theme_inset_shadow, paint_theme_shadow,
};
pub use workspace::{
    AdaptiveBreakpoints, AdaptiveClass, AdaptiveView, ConstraintOrientation, ConstraintQuery,
    ConstraintView, MasterDetail, MasterDetailRoute, MasterDetailState, ResponsiveSidebar,
    ResponsiveSidebarMode, ResponsiveSidebarSnapshot, ResponsiveSidebarState,
};