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 composition;
15mod drag_drop;
16mod fonts;
17mod geometry;
18mod image;
19mod key;
20mod locale;
21mod mouse_cursor;
22mod painting;
23mod paragraph;
24mod platform;
25mod pointer;
26mod restoration;
27mod scene_builder;
28mod system_context_menu;
29#[cfg(feature = "test-support")]
30pub mod test_support;
31mod text;
32mod text_editing;
33mod text_input;
34mod views;
35mod vsync;
36mod window;
37
38pub use client::EmbedderClient;
39pub use composition::{Buffer, Compositor, Surface};
40pub use drag_drop::{DropChange, DropData};
41pub use fonts::{
42    FontCollection, FontDemand, FontId, FontManager, FontSource, SystemFontSource, Typeface,
43    default_font_families, set_default_font_manager,
44};
45pub use geometry::*;
46pub use image::{
47    ImageCodec, ImageCodecFuture, ImageDecodeError, ImageFrame, ImageFrameFuture, ImageRepetition,
48};
49pub use key::{KeyData, KeyEventDeviceType, KeyEventType};
50pub use locale::Locale;
51pub use mouse_cursor::SystemMouseCursorKind;
52pub use painting::*;
53pub use paragraph::*;
54pub use platform::{
55    AppExit, AppExitReply, AppExitResponse, AppExitType, AppLifecycleState,
56    ApplicationSwitcherDescription, Brightness, Clipboard, ClipboardHasStringsFuture,
57    ClipboardSetTextFuture, ClipboardTextFuture, Dispatcher, FileOpening, Frame,
58    HapticFeedbackType, Haptics, InertDispatcher, InertPlatform, MouseCursor, OpenFilesHandler,
59    Platform, PlatformRef, PopupMenuEntry, PopupMenuFuture, PopupMenus, Restoration, Screen,
60    ScreenId, Screens, SystemChrome, SystemContextMenu, SystemUiOverlayStyle, TargetPlatform,
61    TextServices, ViewRef,
62};
63pub use pointer::{
64    PointerChange, PointerData, PointerDataPacket, PointerDeviceKind, PointerSignalKind,
65};
66pub use restoration::{RestorationData, RestorationMap, RestorationUpdate};
67pub use scene_builder::{EngineLayer, Scene, SceneBuilder, SurfacePlacement};
68pub use system_context_menu::SystemContextMenuItem;
69pub use text::*;
70pub use text_editing::*;
71pub use text_input::*;
72pub use views::{
73    GestureSettings, TextInputHost, View, ViewConstraints, ViewFocusDirection, ViewFocusEvent,
74    ViewFocusState, ViewId, ViewMetrics, ViewPadding,
75};
76pub use vsync::{VsyncObserver, VsyncWaiter};
77pub use web_time::Instant;
78pub use window::{
79    HostWindow, RawWindowHandle, RequestId, ViewError, ViewRequest, WindowBackground, WindowConfig,
80    WindowLevel, WindowRef,
81};