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