Skip to main content

Crate bhoo

Crate bhoo 

Source
Expand description

Bhoo: small, event-driven UI foundations for SpectreOS. Application values remain caller-owned. Coordinates are logical pixels.

Re-exports§

pub use icons::SystemIcon;
pub use media::Image;
pub use media::ImageFit;
pub use scroll::EdgeStretch;
pub use shapes::beercss_shapes;
pub use shapes::shape_data;
pub use systems::android::reference as android_reference;
pub use systems::android::state::calendar as android_calendar;
pub use systems::android::state::date_spinner as android_date_spinner;
pub use systems::android::state::dialer_filter as android_dialer_filter;
pub use systems::android::state::expandable_list as android_expandable_list;
pub use systems::android::state::number_picker as android_number_picker;
pub use systems::android::state::time_clock as android_time_clock;
pub use systems::android::state::time_spinner as android_time_spinner;
pub use systems::android::xml as android_xml;
pub use systems::material::ActionTileOptions;
pub use systems::material::AlertOptions;
pub use systems::material::AlertSeverity;
pub use systems::material::AlertVariant;
pub use systems::material::AppBarAction;
pub use systems::material::AppBarIcon;
pub use systems::material::AutocompleteOptions;
pub use systems::material::AvatarContent;
pub use systems::material::AvatarGroupCounts;
pub use systems::material::AvatarGroupOptions;
pub use systems::material::AvatarShape;
pub use systems::material::BadgeContent;
pub use systems::material::BadgeGravity;
pub use systems::material::BadgeNumberFormat;
pub use systems::material::BadgeNumberLimit;
pub use systems::material::BadgeOptions;
pub use systems::material::BannerOptions;
pub use systems::material::BottomAppBarOverflowState;
pub use systems::material::BottomAppBarScrollBehavior;
pub use systems::material::BottomAppBarState;
pub use systems::material::ButtonGroupState;
pub use systems::material::ButtonVariant;
pub use systems::material::CardIconGravity;
pub use systems::material::CardOptions;
pub use systems::material::CardVariant;
pub use systems::material::CardVisualState;
pub use systems::material::CarouselItem;
pub use systems::material::CarouselLayout;
pub use systems::material::CarouselOptions;
pub use systems::material::CarouselState;
pub use systems::material::ChatMessage;
pub use systems::material::CheckState;
pub use systems::material::ChipKind;
pub use systems::material::ChipOptions;
pub use systems::material::Choice;
pub use systems::material::CommandItem;
pub use systems::material::DatePickerOptions;
pub use systems::material::DatePickerState;
pub use systems::material::DatePickerView;
pub use systems::material::DockedToolbarEdge;
pub use systems::material::DockedToolbarInsets;
pub use systems::material::DockedToolbarScrollState;
pub use systems::material::EmptyStateOptions;
pub use systems::material::ExpansionPanelOptions;
pub use systems::material::FabColor;
pub use systems::material::FabElevation;
pub use systems::material::FabMenuAction;
pub use systems::material::FabMenuOptions;
pub use systems::material::FabMenuState;
pub use systems::material::FabOptions;
pub use systems::material::FieldAffordance;
pub use systems::material::FloatingPillSlot;
pub use systems::material::FloatingToolbarExpansionScrollState;
pub use systems::material::GridListItem;
pub use systems::material::GridListOptions;
pub use systems::material::ListState;
pub use systems::material::MaterialIcon;
pub use systems::material::MenuTypeaheadState;
pub use systems::material::NavigationDestination;
pub use systems::material::NavigationIcon;
pub use systems::material::Options;
pub use systems::material::OverlayDismissPolicy;
pub use systems::material::OverlayKind;
pub use systems::material::OverlaySection;
pub use systems::material::OverlayState;
pub use systems::material::OverlayStyle;
pub use systems::material::PageDirection;
pub use systems::material::PageIndicatorOptions;
pub use systems::material::PaginationOptions;
pub use systems::material::RouteTransitionKind;
pub use systems::material::RouteTransitionState;
pub use systems::material::ScaffoldAdaptiveOptions;
pub use systems::material::ScaffoldOptions;
pub use systems::material::ScaffoldSlots;
pub use systems::material::ScrollbarDragState;
pub use systems::material::ScrollbarIndicatorState;
pub use systems::material::ScrollbarOrientation;
pub use systems::material::SearchOverlayState;
pub use systems::material::SelectState;
pub use systems::material::ShapeRotationState;
pub use systems::material::SkeletonAnimation;
pub use systems::material::SkeletonOptions;
pub use systems::material::SlideDirection;
pub use systems::material::SliderExpressiveOptions;
pub use systems::material::SortDirection;
pub use systems::material::SplitButtonOptions;
pub use systems::material::SplitButtonSize;
pub use systems::material::SplitPaneOptions;
pub use systems::material::SplitPaneOrientation;
pub use systems::material::StepperState;
pub use systems::material::SwipeDismissState;
pub use systems::material::SwitchIconMode;
pub use systems::material::TabItem;
pub use systems::material::TabOptions;
pub use systems::material::TabStyle;
pub use systems::material::TableColumn;
pub use systems::material::TableSortState;
pub use systems::material::TimePickerMode;
pub use systems::material::TimePickerOptions;
pub use systems::material::TimePickerState;
pub use systems::material::ToastOptions;
pub use systems::material::ToastState;
pub use systems::material::ToolbarAction;
pub use systems::material::ToolbarFabPosition;
pub use systems::material::ToolbarFabSelection;
pub use systems::material::ToolbarKind;
pub use systems::material::ToolbarState;
pub use systems::material::TopAppBarMaterialAction;
pub use systems::material::TopAppBarScrollBehavior;
pub use systems::material::TopAppBarState;
pub use systems::material::TopAppBarVariant;
pub use systems::material::TreeItem;
pub use systems::material::TreeState;
pub use systems::material::WindowFrameAction;
pub use systems::material::WindowFrameOptions;
pub use systems::material::WindowFrameState;
pub use systems::material::hue_to_color;
pub use systems::material::loading;
pub use systems::material::month_days;
pub use systems::material::progress;
pub use systems::material::pull_refresh;
pub use systems::material::segmented_card_radii;
pub use systems::material::snackbar;
pub use systems::material::time_picker_label;
pub use systems::material::time_picker_label_24h;
pub use systems::material::time_picker_label_step;
pub use systems::material::weekday;
pub use loading::LoadingState;
pub use progress::WavyProgressOptions;
pub use motion::MotionPreference;
pub use motion::MotionScheme;

Modules§

icons
Bundled vector & raster icon catalogs (Material Symbols, Material Outlined system icons, Material Navigation icons, and Android widget icons).
media
Bounded caller-owned RGBA images and object-fit geometry.
motion
Bounded, deterministic motion state. No threads, timers, dependencies or disk caches.
platform
Native platform windowing and GPU renderer backends.
scroll
Android-style spline flings in logical pixels, with AOSP EdgeEffect stretch overscroll. Spline & EdgeEffect stretch constants/formulas adapted from AOSP OverScroller & EdgeEffect (Apache-2.0). Copyright (C) 2010, 2021 The Android Open Source Project. See THIRD_PARTY_NOTICES.md.
shapes
Auto-generated tessellated vector shapes (see tools/generate-*.py). Bundled icon catalogs live in crate::icons.
systems
Design systems and platform UI compatibility layers.
timing
Duration curves adapted from Material Web internal/motion/animation.ts, Copyright 2021 Google LLC, Apache-2.0. Independently implemented CSS sampling.

Structs§

Color
DividerOptions
Appearance and logical insets for a Material divider.
Frame
Input
One input snapshot. Press/release are edges, time is monotonic seconds.
KeyInput
Rect
Response
SemanticNode
Backend-independent semantic snapshot. A native accessibility bridge is future work.
TextMetrics
Backend-supplied normalized ASCII advances. Fixed storage; no per-frame font queries.
TextStyle
Theme
Ui

Enums§

DividerOrientation
Direction of a decorative divider’s long axis.
DrawCommand
FontFamily
Key
PointerKind
RippleStyle
Role

Functions§

shape_clip_bounds
Axis-aligned clip of the shape’s square viewport after rotation.