1#![forbid(unsafe_code)]
58#![warn(missing_docs)]
59
60mod animation;
61mod canvas;
62mod cx;
63mod dnd;
64mod edit;
65mod floating;
66mod geometry;
67mod grid_view;
68mod image;
69mod input;
70mod keyboard;
71mod keyed;
72mod layout;
73mod lock;
74mod menu;
75mod popup;
76mod prop;
77mod region;
78mod rich;
79mod screencopy;
80mod scroll;
81mod scrolling;
82mod select;
83mod slider;
84mod style;
85mod text;
86mod text_area;
87mod text_input;
88mod timer;
89mod tree;
90mod view;
91mod widgets;
92mod window;
93
94#[cfg(test)]
95mod tests;
96
97pub use animation::{
98 Animate, Animation, Easing, Spring, Transition, advance_animations, animating,
99};
100pub use canvas::{Canvas, CanvasOp, Cap, Join, Paint, Path, PathCommand, Pen, Stroke};
101pub use cx::Cx;
102pub use dnd::{DragContent, DragOut, DropSpot};
103pub use floating::{FloatingConfig, FloatingWindow, WindowRequest};
104pub use geometry::{Affine, Point, Rect, Size};
105pub use grid_view::GridView;
106pub use image::{ImageTransition, dropped_images, image_source_decoding, image_source_failed};
107pub use input::{CursorShape, Drag, DragPhase, PointerButton, ScrollSource, Wheel, WheelAxis};
108pub use keyboard::{Clipboard, Key, KeyEvent, Modifiers};
109pub use lock::{Lock, SessionLock};
110pub use menu::{Menu, MenuEntry, MenuToggle};
111pub use popup::{Adjust, Placement, PopupWindow};
112pub use prop::{IntoProp, Prop};
113pub use region::Region;
114pub use rich::{MARKUP_CAP, Span, parse_markup};
115pub use screencopy::{CaptureFrame, CaptureRequest, CaptureSource, ScreencopyView};
116pub use scroll::{ListView, ScrollView};
117pub use slider::Slider;
118pub use style::{
119 Border, Color, Font, FontFeature, Gradient, GradientShape, Mask, Padding, Radii, Shadow, Style,
120 TextAlign,
121};
122pub use text::{TextMetrics, TextRun, TextSystem};
123pub use text_area::TextArea;
124pub use text_input::{FieldState, Preedit, TextInput};
125pub use timer::{Timer, fire_timers, next_timer};
126pub use view::{
127 CanvasView, CaptureView, Content, IconView, ImageView, InputView, NodeView, TextView, WindowView,
128};
129pub use widgets::{
130 Align, Button, Column, Element, Elide, Fit, Grid, Icon, IconPixels, IconSource, Image,
131 ImageFilters, Justify, Row, Spacer, Stack, Text, Widget,
132};
133pub use window::{
134 Anchors, Edge, KeyboardFocus, Layer, Margins, Output, PanelWindow, SurfaceConfig, Window,
135};
136
137pub mod prelude {
139 pub use crate::{
140 Align, Button, Canvas, Cap, Color, Column, CursorShape, Cx, Drag, DragContent, DragPhase, Edge,
141 Elide, Font, FontFeature, Grid, GridView, Icon, IconSource, ImageTransition, Join, Justify,
142 Layer, Mask, Menu, Output, Paint, PanelWindow, Path, Pen, Point, PopupWindow, Radii, Rect, Row,
143 ScrollSource, Size, Slider, Spacer, Span, Stack, Stroke, Style, Text, TextAlign, TextMetrics,
144 TextSystem, Timer, Wheel, WheelAxis, Widget, Window, parse_markup,
145 };
146}