Skip to main content

mitsuami_core/
lib.rs

1//! mitsuami core: the retained node tree, styles and units, layout,
2//! accessibility model, control flow and the backend contract.
3//!
4//! See [`docs/ARCHITECTURE.md`](https://github.com/Roboport-Tecnologia/mitsuami/blob/main/docs/ARCHITECTURE.md)
5//! for the design.
6
7pub mod a11y;
8mod any_value;
9mod app_info;
10pub mod backend;
11pub mod command;
12mod custom;
13pub mod draw;
14mod element;
15mod flow;
16pub mod geometry;
17pub mod graphemes;
18mod input;
19pub mod l10n;
20mod list;
21mod measure;
22mod resource;
23pub mod services;
24mod store;
25pub mod style;
26mod surface;
27mod table;
28pub mod task;
29mod tweak;
30mod ui;
31pub mod units;
32mod view;
33mod widget;
34
35pub use a11y::{A11yAction, A11yNode, A11yProps, ActionError, Role};
36pub use any_value::{AnyValue, Opaque};
37pub use app_info::{AppIcon, AppInfo, NativeAppInfo, NativeIcon};
38pub use backend::{
39    Appearance, AvailableSpace, Backend, EventSink, Key, MeasureRequest, NativeState, PlatformMetrics, SyntheticInput,
40    TestHooks,
41};
42pub use command::{Command, EventValue, PointerEvent, PointerKind, UiEvent};
43pub use custom::{Composed, Custom, CustomProps, CustomView, CustomWidget, Drawn, Render, Renderer};
44pub use draw::{Canvas, Color, DisplayList, Path, Shape};
45pub use element::{Element, ElementBuilder};
46pub use flow::{For, Show};
47pub use geometry::{Insets, Point, Rect, Size, WindowSize};
48pub use input::{KeyCode, Modifiers, MouseButton, ScrollDelta, SurfaceInput};
49pub use list::{List, ListHandle, RowRender};
50pub use measure::{NodeRef, node_ref, use_size, use_viewport};
51pub use resource::{Action, Resource, action, resource, resource_on};
52pub use store::{Store, provide_stores, use_store};
53pub use style::{Align, Display, FlexDirection, GridPlacement, Justify, Style, TextDirection, Track, repeat};
54pub use surface::{NativeSurface, SurfaceHandle, SurfaceSize};
55pub use table::{Sort, Table, TableColumn, TableWithoutEach, TableWithoutKey};
56pub use tweak::Tweak;
57pub use ui::{NodeInfo, Ui, WeakUi};
58pub use units::{Length, LengthExt, Spacing};
59pub use view::{AnyView, Callback, Children, Slot, View};
60pub use widget::{
61    ButtonRole, ButtonStyle, CellKey, ColumnData, ColumnSort, CurrentWindow, Cursor, FileDrop, FontWeight,
62    HorizontalAlign, ImageFit, ImageSource, InputPurpose, LayoutDirection, ListStyle, Modality, NodeId, Orientation,
63    Pixels, Prop, RowKey, ScrollAxes, SelectionMode, SidebarItemData, SidebarSectionData, SortOrder, TabsStyle,
64    TextAlign, TextStyle, Truncation, WidgetKind,
65};
66
67pub use mitsuami_reactive as reactive;
68pub use raw_window_handle;
69/// Grapheme clusters, which text selections count (`NodeRef::select_text`).
70pub use unicode_segmentation;