Skip to main content

inset_embedder/
lib.rs

1//! Flutter's `dart:ui`: host traits (`Platform`, `View`) and value types
2//! (`Offset`, `Color`, `Canvas`, `Paint`, `Shadow`).
3//!
4//! The framework depends on this crate. This crate does not depend on the
5//! framework. Hosts implement [`Platform`] and [`View`], and invoke
6//! [`EmbedderClient`] on the client the start closure returns. They do not
7//! name `App`.
8
9// A test image carries a wgpu texture, and proving one `Sync` walks a type graph deeper than the
10// default limit.
11#![recursion_limit = "256"]
12
13mod client;
14mod fonts;
15mod geometry;
16mod image;
17mod key;
18mod locale;
19mod mouse_cursor;
20mod painting;
21mod paragraph;
22mod platform;
23mod pointer;
24mod restoration;
25mod scene_builder;
26mod system_context_menu;
27#[cfg(feature = "test-support")]
28pub mod test_support;
29mod text;
30mod text_editing;
31mod text_input;
32mod views;
33mod window;
34
35pub use client::EmbedderClient;
36pub use fonts::{
37    FontCollection, FontDemand, FontId, FontManager, FontSource, SystemFontSource, Typeface,
38    default_font_families, set_default_font_manager,
39};
40pub use geometry::*;
41pub use image::{
42    ImageCodec, ImageCodecFuture, ImageDecodeError, ImageFrame, ImageFrameFuture, ImageRepetition,
43};
44pub use key::{KeyData, KeyEventDeviceType, KeyEventType};
45pub use locale::Locale;
46pub use mouse_cursor::SystemMouseCursorKind;
47pub use painting::*;
48pub use paragraph::*;
49pub use platform::{
50    AppExitResponse, AppLifecycleState, ApplicationSwitcherDescription, Brightness, Clipboard,
51    Frame, HapticFeedbackType, Haptics, InertPlatform, MouseCursor, Platform, PlatformRef,
52    PopupMenuEntry, PopupMenus, Restoration, SystemChrome, SystemContextMenu, SystemUiOverlayStyle,
53    TargetPlatform, TextServices, ViewRef,
54};
55pub use pointer::{
56    PointerChange, PointerData, PointerDataPacket, PointerDeviceKind, PointerSignalKind,
57};
58pub use restoration::{RestorationData, RestorationMap, RestorationUpdate};
59pub use scene_builder::{EngineLayer, Scene, SceneBuilder};
60pub use system_context_menu::SystemContextMenuItem;
61pub use text::*;
62pub use text_editing::*;
63pub use text_input::*;
64pub use views::{
65    GestureSettings, TextInputHost, View, ViewConstraints, ViewFocusDirection, ViewFocusEvent,
66    ViewFocusState, ViewId, ViewMetrics, ViewPadding,
67};
68pub use web_time::Instant;
69pub use window::{
70    HostWindow, RawWindowHandle, WindowBackground, WindowConfig, WindowError, WindowFuture,
71    WindowLevel, WindowRef, WindowingOwner,
72};