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 tree;
30mod tweak;
31mod ui;
32pub mod units;
33mod vector_icon;
34mod view;
35mod widget;
36
37pub use a11y::{A11yAction, A11yNode, A11yProps, ActionError, Role};
38pub use any_value::{AnyValue, Opaque};
39pub use app_info::{AppIcon, AppInfo, NativeAppInfo, NativeIcon, RunOptions};
40pub use backend::{
41    Appearance, AvailableSpace, Backend, EventSink, Key, MeasureRequest, NativeState, PlatformMetrics, SyntheticInput,
42    TestHooks,
43};
44pub use command::{Command, EventValue, PointerEvent, PointerKind, UiEvent};
45pub use custom::{Composed, Custom, CustomProps, CustomView, CustomWidget, Drawn, Render, Renderer};
46pub use draw::{Canvas, Color, DisplayList, Path, Shape};
47pub use element::{Element, ElementBuilder};
48pub use flow::{For, Show};
49pub use geometry::{Insets, Placement, Point, Rect, Size, WindowFrame, WindowSize};
50pub use input::{KeyCode, Modifiers, MouseButton, ScrollDelta, SurfaceInput};
51pub use list::{List, ListHandle, RowRender};
52pub use measure::{NodeRef, node_ref, use_size, use_viewport};
53pub use resource::{Action, Resource, action, resource, resource_on};
54pub use store::{Store, provide_stores, use_store};
55pub use style::{Align, Display, FlexDirection, GridPlacement, Justify, Style, TextDirection, Track, repeat};
56pub use surface::{NativeSurface, SurfaceHandle, SurfaceSize};
57pub use table::{Sort, Table, TableColumn, TableWithoutEach, TableWithoutKey};
58pub use tree::Tree;
59pub use tweak::Tweak;
60pub use ui::{NodeInfo, Ui, WeakUi};
61pub use units::{Length, LengthExt, Spacing};
62pub use vector_icon::{PathStep, VectorIcon};
63pub use view::{AnyView, Callback, Children, Slot, View};
64pub use widget::{
65    ButtonRole, ButtonStyle, CellKey, ColumnData, ColumnSort, CurrentWindow, Cursor, DocumentTabsStyle, FileDrop,
66    FileLookup, FontWeight, HeaderEdge, HorizontalAlign, ImageFit, ImageSource, InputPurpose, LayoutDirection,
67    ListStyle, Modality, NodeId, Orientation, Pixels, Prop, RowDrop, RowKey, RowMoves, ScrollAxes, SelectionMode,
68    SidebarItemData, SidebarSectionData, SortOrder, Suggestion, SystemCursor, TabsStyle, TextAlign, TextStyle,
69    TreeIndent, TreeRow, Truncation, WidgetKind, moved_index,
70};
71
72pub use mitsuami_reactive as reactive;
73pub use raw_window_handle;
74/// Grapheme clusters, which text selections count (`NodeRef::select_text`).
75pub use unicode_segmentation;