1#![deny(missing_docs)]
2#![doc = include_str!("../README.md")]
3
4extern crate self as cranpose_ui;
5
6use std::{
7 ops::{Deref, DerefMut},
8 rc::Rc,
9};
10
11pub use cranpose_core::Composition;
12use cranpose_core::{ApplierGuard, MemoryApplier, NodeError, NodeId, RuntimeHandle, location_key};
13pub use cranpose_macros::{composable, include_wgsl, worker_job};
14#[cfg(feature = "localization")]
15pub use cranpose_macros::{message, tr, translation_messages, translations};
16#[cfg(feature = "localization")]
17pub use localization::{
18 Catalog, Language, LanguagePreference, Locale, LocalizedText, PreviewMode, ProvideLocalization,
19 ProvideTranslator,
20};
21pub use text::SharedText;
22#[cfg(feature = "localization")]
23mod ui_text;
24#[cfg(feature = "localization")]
25pub use ui_text::UiText;
26#[cfg(feature = "localization")]
27mod language_preferences;
28mod memory_headroom;
29#[cfg(feature = "localization")]
30pub use language_preferences::{
31 LocalizationController, ProvideLanguagePreferences, local_localization,
32};
33pub use ui_strings::UiString;
34
35pub mod anchored_draggable;
36mod animate_content_size;
37pub mod announce;
39mod arrow_focus;
40mod background_draw;
41pub mod bring_into_view;
42mod bring_into_view_spec;
43pub mod clipboard_session;
44mod configuration;
45mod cursor_animation;
46mod debug;
47pub mod density;
48mod dirty_node_queue;
49pub mod draggable;
50mod draw;
51mod environment_locals;
52mod eye;
53pub mod fling_animation;
54mod focus_dispatch;
55pub mod focus_manager;
57mod focus_navigation;
58pub mod focus_order;
60mod focus_within;
61pub mod font_scale;
62mod gesture_velocity;
63mod indication;
64mod interaction;
65mod key_event;
66mod keyboard_options;
67pub mod layout;
69pub mod layout_direction;
70mod layout_modifier;
71pub mod lazy_item;
72mod lazy_prefetch;
73#[cfg(feature = "localization")]
74pub mod localization;
75pub mod modal;
76mod modal_nodes;
77#[expect(clippy::multiple_inherent_impl, reason = "one file per modifier")]
78mod modifier;
79mod modifier_nodes;
80pub mod mouse_input;
81mod nested_scroll;
82pub mod nine_patch;
83mod pointer_dispatch;
84pub mod pointer_icon_session;
85mod primitives;
86mod render_state;
87mod renderer;
88pub mod round_scaling_list;
89pub mod round_scroll_indicator;
90pub mod safe_area;
91pub mod scroll;
92mod scroll_semantics;
93pub mod scrollbar;
94pub mod selection_container;
95mod semantics_dispatch;
96mod semantics_layout_log;
97mod subcompose_layout;
98mod tap_counter;
99pub mod text;
101mod text_field_decorator_node;
102pub mod text_field_focus;
103mod text_field_handler;
104mod text_field_input;
105mod text_field_modifier_node;
106mod text_field_presentation;
107pub mod text_input_session;
108pub mod text_layout_result;
109mod text_modifier_node;
110pub mod text_selection;
111mod text_selection_colors;
112mod thread_state;
113mod two_dimensional_focus_search;
114mod ui_strings;
115mod unhandled_keys;
116pub mod widgets;
117mod word_boundaries;
118pub mod zoom;
119
120pub use anchored_draggable::{AnchoredDraggableState, DraggableAnchors};
121pub use announce::{Announcement, Announcer, announce, drain_announcements, local_announcer};
122#[doc(hidden)]
123pub use arrow_focus::arrow_focus_target;
124pub use background_draw::BackgroundDraw;
125pub use bring_into_view::{
126 BringIntoViewResponder, local_bring_into_view_responder, scroll_delta_to_reveal,
127};
128pub use bring_into_view_spec::local_bring_into_view_spec;
129pub use configuration::{Configuration, UiModeType, local_configuration};
130pub use cranpose_foundation::{
131 BringIntoViewSpec, CanvasSemanticsNode, CollectionInfo, DelegatableNode, LiveRegionMode,
132 ModifierNode, ModifierNodeElement, NodeCapabilities, NodeState, PointerId, PointerUptime,
133 ProgressBarRangeInfo, ScrollAxisRange, SemanticsConfiguration, SemanticsCustomAction,
134 SemanticsDismiss, SemanticsExpand, SemanticsLongClick, SemanticsMagicTap, SemanticsScrollBy,
135 SemanticsScrollToIndex, SemanticsSetProgress, SemanticsSetSelection, SemanticsSetText,
136 SemanticsSpec, SemanticsWidgetRole, ToggleableState,
137 lazy::{
138 LazyItems, LazyListItemInfo, LazyListLayoutInfo, LazyListScope, LazyListState,
139 rememberLazyListState, rememberLazyListStateWithPosition,
140 },
141 text::{TextFieldBuffer, TextFieldLineLimits, TextFieldState, TextFieldValue, TextRange},
142};
143pub use cranpose_ui_graphics::space;
146pub use cranpose_ui_graphics::{
147 BlurredEdgeTreatment, ColorFilter, CursorIcon, CustomPointerIcon, DashPathEffect, Dp,
148 DrawScope, DrawSpecialization, DrawStyle, DrawTextStyle, DrawTransform, ExternalTexture,
149 ImageBitmap, ImageBitmapError, ImagePixelFormat, ImageSampling, MemoryHeadroom, Path,
150 PlaceholderShape, PointerIcon, PointerIconError, RuntimeShaderUniformError, ShaderPlaceholder,
151 Stroke, StrokeCap, StrokeJoin, SubstrateSpec, TextMeasurement, TextVerticalAlign, TileMode,
152 WindowCoordinates, glass_material_folds_enabled, set_glass_material_folds,
153};
154pub use cranpose_ui_layout::{
155 AlignmentLines, Axis, IntrinsicSize, LayoutModifierMeasureResult, Measurement,
156};
157pub use cursor_animation::{
158 is_cursor_visible, next_cursor_blink_time, reset_cursor_blink, start_cursor_blink,
159 stop_cursor_blink, tick_cursor_blink,
160};
161pub use debug::{
162 ModifierChainTraceGuard, format_layout_tree, format_modifier_chain, format_render_scene,
163 format_screen_summary, install_modifier_chain_trace, log_layout_tree, log_modifier_chain,
164 log_render_scene, log_screen_summary,
165};
166pub use density::{Density, DensityMeasureScope, density, local_density};
167pub use draggable::{
168 DragDeltaHandler, DraggableState, ScrollableState, rememberDraggableState,
169 rememberScrollableState,
170};
171pub use draw::{
172 DrawCacheBuilder, DrawCommand, DrawCommandFn, command_draw_scope, execute_draw_commands,
173};
174pub use eye::{Eye, local_eye, rememberEye};
175pub use focus_dispatch::{
176 active_focus_target, clear_focus_invalidations, has_focus_targets,
177 has_pending_focus_invalidations, keyboard_focus_visible, process_focus_invalidations,
178 schedule_focus_invalidation, set_active_focus_target, set_keyboard_focus_visible,
179};
180pub use focus_manager::{
181 FocusManager, local_focus_manager, request_focus_from_platform, request_focus_without_keyboard,
182};
183pub use focus_navigation::{KeyboardFocusTarget, keyboard_focus_target};
184pub use focus_order::{
185 FocusEntry, collect_focus_order, collect_focus_order_under, focus_order_len, set_focus_order,
186 take_requested_focus_move,
187};
188pub use focus_within::FocusWithin;
189pub use font_scale::{FontScaleCurve, MAX_FONT_SCALE_KNOTS};
190pub use indication::{Indication, IndicationState, local_indication};
191pub use interaction::{
192 HoverInteraction, HoverInteractionEnter, HoverInteractionExit, Interaction,
193 MutableInteractionSource, PressInteraction, PressInteractionCancel, PressInteractionPress,
194 PressInteractionRelease, collect_is_hovered_as_state, collect_is_pressed_as_state,
195 rememberMutableInteractionSource,
196};
197pub use key_event::{Key, KeyEvent, KeyEventType, Modifiers, NativeKeyEvent};
198pub use keyboard_options::{
199 ContentType, ImeAction, KeyboardActionHandler, KeyboardActionScope, KeyboardCapitalization,
200 KeyboardOptions, KeyboardType,
201};
202pub use layout::{
203 LayoutAllocationDebugStats, LayoutBox, LayoutEngine, LayoutMeasurements, LayoutNodeData,
204 LayoutNodeKind, LayoutTree, MeasureLayoutOptions, SemanticsAction, SemanticsCallback,
205 SemanticsDetails, SemanticsNode, SemanticsPlacement, SemanticsRole, SemanticsText,
206 SemanticsTree, build_layout_tree_from_applier, build_semantics_tree_from_applier,
207 build_semantics_tree_from_layout_tree,
208 core::{
209 Alignment, Arrangement, HorizontalAlignment, LayoutData, LinearArrangement, Measurable,
210 Measurables, ParentData, Placeable, VerticalAlignment,
211 },
212 has_placed_content, measure_layout, measure_layout_with_options, placed_content_extent,
213 top_modal_from_applier, tree_needs_layout, tree_needs_semantics,
214 update_semantics_tree_from_applier,
215};
216pub use layout_direction::{
217 LayoutDirection, ProvideLayoutDirection, layout_direction, local_layout_direction,
218};
219pub use lazy_item::{ProvideLazyItemKey, lazy_item_key, local_lazy_item_key};
220pub use lazy_prefetch::{
221 drain_lazy_prefetch_requests, has_lazy_prefetch_requests, lazy_prefetch_pass_cost,
222 lazy_prefetch_pass_due, set_idle_prefetch_passes, warm_prefetched_slices,
223 with_lazy_prefetch_pass,
224};
225pub use memory_headroom::{current_memory_headroom, set_memory_headroom};
226pub use modal::{
227 ModalRegistration, clear_modals, dispatch_modal_back, local_modal_depth, modal_depth,
228};
229#[doc(hidden)]
230pub use modifier::__kept_modifier;
231pub use modifier::{
232 BlendMode, Brush, Color, CompositingStrategy, CornerRadii, DpOffset, DragAndDropEvent,
233 DragAndDropOutcome, DragAndDropPayload, DragAndDropPoint, DragAndDropSource,
234 DragAndDropSourceElement, DragAndDropSourceNode, DragAndDropState, DragAndDropTarget,
235 DragAndDropTargetElement, DragAndDropTargetNode, EdgeInsets, FocusDirection, FocusRequestError,
236 FocusRequester, GlassMaterial, GraphicsLayer, KeyEventRoute, LayerShape, Modifier,
237 ModifierLocalKey, ModifierLocalReadScope, ModifierNodeSlices, ModifierNodeSlicesDebugStats,
238 Point, PointerButton, PointerButtons, PointerEvent, PointerEventKind, PointerInputScope,
239 PointerSource, Rect, RenderEffect, ResolvedBackground, ResolvedModifiers,
240 RotaryInputModifierNode, RotaryScrollEvent, RoundedCornerShape, RuntimeShader,
241 SemanticsRequester, Shadow, ShadowScope, Size, SliceTextRef, TransformOrigin,
242 WindowRootDescriptor, WindowRootElement, WindowRootEntry, WindowRootNode, WindowRootRegistry,
243 WindowRootRoutingScratch, collect_modifier_slices, collect_semantics_from_modifier,
244 collect_slices_from_modifier, is_window_root, nearest_window_root, nearest_window_roots,
245 nearest_window_roots_into, window_roots, window_roots_revision, z_index_in_use,
246 z_index_modifier_in_use,
247};
248#[cfg(feature = "test-helpers")]
249pub use modifier::{last_fling_velocity, reset_last_fling_velocity};
250pub use modifier_nodes::{
251 AlphaElement, AlphaNode, BackgroundElement, ClickableElement, ClickableNode,
252 CornerShapeElement, FillDirection, FillElement, FractionalOffsetElement, OffsetElement,
253 PaddingElement, SizeElement,
254};
255pub use nested_scroll::{NestedScroll, NestedScrollConnection, NestedScrollSource};
256pub use nine_patch::{
257 NinePatchInsets, PatchFill, PatchQuad, nine_patch_quads, tile_count, tile_quads,
258};
259#[doc(hidden)]
260pub use pointer_dispatch::{
261 clear_pointer_repasses, has_pending_pointer_repasses, process_pointer_repasses,
262 schedule_pointer_repass,
263};
264pub use primitives::{
265 AnimateScroll, AnimatedContent, AnimatedContentWithKey, AnimatedVisibility,
266 BasicSecureTextField, BasicText, BasicTextField, BasicTextFieldDecorated,
267 BasicTextFieldDecorationScope, BasicTextFieldOptions, BasicTextFieldWithOptions,
268 BasicTextWithOptions, BitmapPainter, BitmapRegionPainter, Box, BoxScope, BoxSpec,
269 BoxWithConstraints, BoxWithConstraintsScope, BoxWithConstraintsScopeImpl, Button, ButtonSpec,
270 Canvas, Column, ColumnSpec, ContentScale, ContentSeek, ContentTransform, Crossfade,
271 DEFAULT_ALPHA, EnterTransition, ExitTransition, ForEach, HorizontalPager, Image, Layout,
272 LayoutNode, PageSize, PagerFling, PagerSpec, PagerState, Painter, Row, RowSpec,
273 SecureTextFieldOptions, SeekableAnimatedContent, SeekableCrossfade, SharedBounds,
274 SharedElement, SharedTransitionLayout, SizeTransform, SlideDirection, SnapPosition, Spacer,
275 SubcomposeLayout, SvgPainter, SvgPainterError, Text, TextObfuscationMode, TextWithOptions,
276 VerticalPager, expand_horizontally, expand_horizontally_with, expand_in, expand_in_with,
277 expand_vertically, expand_vertically_with, fade_in, fade_out, rememberPagerState, rememberSvg,
278 scale_in, scale_out, shrink_horizontally, shrink_horizontally_with, shrink_out,
279 shrink_out_with, shrink_vertically, shrink_vertically_with, slide_in_horizontally,
280 slide_in_vertically, slide_into_container, slide_out_horizontally, slide_out_of_container,
281 slide_out_vertically,
282};
283#[cfg(any(test, feature = "test-helpers"))]
284#[doc(hidden)]
285pub use render_state::reset_render_state_for_tests;
286pub use render_state::{
287 AppContext, AppContextScope, MAX_FONT_SCALE, MIN_FONT_SCALE, current_density,
288 current_font_scale, current_font_scale_curve, scale_sp, set_density, set_font_scale,
289 set_font_scale_curve,
290};
291#[doc(hidden)]
292pub use render_state::{
293 GeometrySceneNodes, MovedSceneNode, append_z_order_changes,
294 clear_transient_scroll_motion_contexts, debug_last_fling_velocity,
295 debug_reset_last_fling_velocity, has_current_app_context, has_pending_draw_repasses,
296 has_pending_layer_property_repasses, has_pending_layout_repasses, has_pending_measure_repasses,
297 peek_focus_invalidation, peek_layout_invalidation, peek_pointer_invalidation,
298 peek_render_invalidation, pending_layout_repass_nodes_snapshot,
299 pending_measure_repass_nodes_snapshot, request_current_draw_redraw, request_focus_invalidation,
300 request_layout_invalidation, request_pointer_invalidation, request_render_invalidation,
301 retire_draw_observations, schedule_draw_repass, schedule_layout_repass,
302 schedule_measure_repass, schedule_z_order_change, take_draw_repass_nodes,
303 take_draw_repass_nodes_into, take_focus_invalidation, take_geometry_scene_nodes,
304 take_geometry_scene_nodes_into, take_layer_property_repass_nodes_into,
305 take_layout_invalidation, take_layout_repass_nodes, take_measure_repass_nodes,
306 take_pointer_invalidation, take_render_invalidation,
307};
308pub use renderer::{HeadlessRenderer, PaintLayer, RecordedRenderScene, RenderOp};
309pub use safe_area::{WindowInsets, local_ime_insets, local_safe_area_insets, window_insets};
310pub use scroll::{ScrollElement, ScrollMetrics, ScrollNode, ScrollSettlePolicy, ScrollState};
311pub use scrollbar::{ThumbBounds, ThumbGeometry, content_delta_for_thumb_drag, thumb_geometry};
312#[doc(hidden)]
313pub use semantics_dispatch::{
314 clear_semantics_invalidations, has_pending_semantics_invalidations,
315 process_semantics_invalidations, schedule_semantics_invalidation,
316};
317pub use subcompose_layout::{
318 Constraints, MeasureResult, Placement, SubcomposeLayoutNode, SubcomposeLayoutScope,
319 SubcomposeMeasureScope, SubcomposeMeasureScopeImpl, clean_slot_skip_count,
320 retained_measure_count,
321};
322pub use text::{
323 LinkAnnotation, ParagraphStyle, PlatformParagraphStyle, PlatformSpanStyle, PlatformTextStyle,
324 PreparedTextLayout, SpanStyle, StringAnnotation, TextDrawStyle, TextLayoutOptions,
325 TextLayoutResult, TextMetrics, TextOptions, TextOverflow, TextShaping, TextStyle,
326 get_cursor_x_for_offset, get_offset_for_position, layout_text, measure_text,
327 measure_text_with_options, prepare_text_layout, set_text_fonts,
328};
329pub use text_field_focus::{ImeEditorState, has_focused_field};
330pub use text_field_modifier_node::{TextFieldElement, TextFieldModifierNode, TextPanResolver};
331pub use text_input_session::PlatformTextInputHandler;
332pub use text_modifier_node::{TextModifierElement, TextModifierNode};
333pub use text_selection_colors::{TextSelectionColors, local_text_selection_colors};
334pub use unhandled_keys::{UnhandledKeyEvents, dispatch_unhandled_key_event};
335pub use widgets::{
336 clickable_text::ClickableText,
337 lazy_list::{
338 GridCells, LazyColumn, LazyColumnSpec, LazyGridState, LazyHorizontalGrid,
339 LazyHorizontalGridSpec, LazyHorizontalStaggeredGrid, LazyHorizontalStaggeredGridSpec,
340 LazyRow, LazyRowSpec, LazyStaggeredGridState, LazyVerticalGrid, LazyVerticalGridSpec,
341 LazyVerticalStaggeredGrid, LazyVerticalStaggeredGridSpec, rememberLazyGridState,
342 rememberLazyStaggeredGridState,
343 },
344 linked_text::LinkedText,
345 padding_values::PaddingValues,
346 popup::{dismiss_top_popup, dismissable_popup_open},
347 slider::{Slider, SliderOrientation, SliderScope, SliderSpec},
348 swipe_to_dismiss::{
349 SwipeDismissDirection, SwipeDismissSide, SwipeDismissState, SwipeToDismiss,
350 SwipeToDismissBox, SwipeToDismissSpec, rememberSwipeDismissState,
351 },
352 text_selection_menu::local_on_light_surface,
353};
354pub use zoom::ZoomState;
355
356pub struct TestComposition {
358 _scope: AppContextScope,
359 app_context: Rc<AppContext>,
360 composition: Composition<MemoryApplier>,
361 root_content: Option<(cranpose_core::Key, Box<dyn FnMut()>)>,
364}
365
366impl TestComposition {
367 pub fn root(&self) -> Option<NodeId> {
369 self.app_context.enter(|| self.composition.root())
370 }
371
372 pub fn runtime_handle(&self) -> RuntimeHandle {
374 self.app_context.enter(|| self.composition.runtime_handle())
375 }
376
377 pub fn should_render(&self) -> bool {
379 self.app_context.enter(|| self.composition.should_render())
380 }
381
382 pub fn take_root_render_request(&mut self) -> bool {
385 self.app_context
386 .enter(|| self.composition.take_root_render_request())
387 }
388
389 pub fn flush_pending_node_updates(&mut self) -> Result<(), NodeError> {
391 self.app_context
392 .enter(|| self.composition.flush_pending_node_updates())
393 }
394
395 pub fn process_invalid_scopes(&mut self) -> Result<bool, NodeError> {
399 self.app_context.enter(|| match &mut self.root_content {
400 Some((key, content)) => self.composition.reconcile(*key, content),
401 None => self.composition.process_invalid_scopes(),
402 })
403 }
404
405 pub fn render(
408 &mut self,
409 root_key: cranpose_core::Key,
410 content: impl FnMut() + 'static,
411 ) -> Result<(), NodeError> {
412 let (key, content) = self.root_content.insert((root_key, Box::new(content)));
413 self.app_context
414 .enter(|| self.composition.render(*key, content))
415 }
416
417 pub fn measure_layout(
420 &mut self,
421 root: NodeId,
422 max_size: Size,
423 ) -> Result<LayoutMeasurements, NodeError> {
424 self.with_runtime_applier(|applier| measure_layout(applier, root, max_size))
425 }
426
427 pub fn with_runtime_applier<R>(&mut self, with: impl FnOnce(&mut MemoryApplier) -> R) -> R {
430 let handle = self.runtime_handle();
431 let mut applier = self.applier_mut();
432 applier.set_runtime_handle(handle);
433 let result = with(&mut applier);
434 applier.clear_runtime_handle();
435 result
436 }
437
438 pub fn applier_mut(&mut self) -> TestApplierGuard<'_> {
441 let scope = self.app_context.enter_scope();
442 let applier = self.composition.applier_mut();
443 TestApplierGuard {
444 _scope: scope,
445 applier,
446 }
447 }
448
449 pub fn with_app_context<R>(&self, block: impl FnOnce() -> R) -> R {
451 self.app_context.enter(block)
452 }
453}
454
455pub struct TestApplierGuard<'a> {
458 _scope: AppContextScope,
459 applier: ApplierGuard<'a, MemoryApplier>,
460}
461
462impl Deref for TestApplierGuard<'_> {
463 type Target = MemoryApplier;
464
465 fn deref(&self) -> &Self::Target {
466 &self.applier
467 }
468}
469
470impl DerefMut for TestApplierGuard<'_> {
471 fn deref_mut(&mut self) -> &mut Self::Target {
472 &mut self.applier
473 }
474}
475
476pub fn run_test_composition(build: impl FnMut() + 'static) -> TestComposition {
478 let composition = Composition::new(MemoryApplier::new());
479 let app_context = AppContext::new_with_density(1.0, Some(composition.runtime_handle()));
480 app_context.enter(|| {
481 #[cfg(test)]
482 reset_render_state_for_tests();
483 });
484 let mut test_composition = TestComposition {
485 _scope: app_context.enter_scope(),
486 app_context,
487 composition,
488 root_content: None,
489 };
490 test_composition
491 .render(location_key(file!(), line!(), column!()), build)
492 .expect("initial render succeeds");
493 test_composition
494}
495
496pub use cranpose_core::MutableState as SnapshotState;
497
498#[cfg(test)]
499#[path = "tests/anchor_async_tests.rs"]
500mod anchor_async_tests;
501
502#[cfg(test)]
503#[path = "tests/animated_visibility_tests.rs"]
504mod animated_visibility_tests;
505
506#[cfg(test)]
507#[path = "tests/lazy_recycle_effect_tests.rs"]
508mod lazy_recycle_effect_tests;
509
510#[cfg(test)]
511#[path = "tests/measure_time_ui_task_tests.rs"]
512mod measure_time_ui_task_tests;
513
514#[cfg(test)]
515#[path = "tests/animation_frame_pump_tests.rs"]
516mod animation_frame_pump_tests;
517
518#[cfg(test)]
519#[path = "tests/crossfade_tests.rs"]
520mod crossfade_tests;
521
522#[cfg(test)]
523#[path = "tests/async_runtime_full_layout_test.rs"]
524mod async_runtime_full_layout_test;
525
526#[cfg(test)]
527#[path = "tests/cursor_position_tests.rs"]
528mod cursor_position_tests;
529
530#[cfg(test)]
531#[path = "tests/popup_tests.rs"]
532mod popup_tests;
533
534#[cfg(test)]
535#[path = "tests/selection_handle_tests.rs"]
536mod selection_handle_tests;
537
538#[cfg(test)]
539#[path = "tests/tab_switching_tests.rs"]
540mod tab_switching_tests;
541
542#[cfg(test)]
543#[path = "tests/layout_keep_tests.rs"]
544mod layout_keep_tests;
545
546#[cfg(test)]
547#[path = "tests/lazy_list_viewport_tests.rs"]
548mod lazy_list_viewport_tests;
549
550#[cfg(test)]
551#[path = "tests/swipe_to_dismiss_lazy_tests.rs"]
552mod swipe_to_dismiss_lazy_tests;
553
554#[cfg(test)]
555#[path = "tests/top_modal_tests.rs"]
556mod top_modal_tests;
557
558#[cfg(test)]
559#[path = "tests/swipe_to_dismiss_render_tests.rs"]
560mod swipe_to_dismiss_render_tests;
561
562#[cfg(test)]
563#[path = "tests/lazy_list_recompose_tests.rs"]
564mod lazy_list_recompose_tests;
565
566#[cfg(test)]
567#[path = "tests/lazy_row_tests.rs"]
568mod lazy_row_tests;
569
570#[cfg(test)]
571#[path = "tests/wear_widget_tests.rs"]
572mod wear_widget_tests;
573
574#[cfg(test)]
575#[path = "tests/ios_fling_measurement.rs"]
576mod ios_fling_measurement;