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, Frame,
51    HapticFeedbackType, InertPlatform, Platform, PlatformRef, PopupMenuEntry, SystemUiOverlayStyle,
52    TargetPlatform, ViewRef,
53};
54pub use pointer::{
55    PointerChange, PointerData, PointerDataPacket, PointerDeviceKind, PointerSignalKind,
56};
57pub use restoration::{RestorationData, RestorationMap, RestorationUpdate};
58pub use scene_builder::{Scene, SceneBuilder};
59pub use system_context_menu::SystemContextMenuItem;
60pub use text::*;
61pub use text_editing::*;
62pub use text_input::*;
63pub use views::{
64    GestureSettings, View, ViewConstraints, ViewFocusDirection, ViewFocusEvent, ViewFocusState,
65    ViewId, ViewMetrics, ViewPadding,
66};
67pub use web_time::Instant;
68pub use window::{
69    HostWindow, RawWindowHandle, WindowBackground, WindowConfig, WindowError, WindowFuture,
70    WindowLevel, WindowRef, WindowingOwner,
71};