1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#![deny(intra_doc_link_resolution_failure, unsafe_code)]
#![allow(clippy::new_ret_no_self)]
#![cfg_attr(docsrs, feature(doc_cfg))]
use druid_shell as shell;
pub use druid_shell::{kurbo, piet};
mod app;
mod app_delegate;
mod box_constraints;
mod command;
mod core;
mod data;
mod env;
mod event;
pub mod lens;
mod localization;
mod menu;
mod mouse;
pub mod theme;
pub mod widget;
mod win_handler;
mod window;
pub use kurbo::{Affine, Insets, Point, Rect, Size, Vec2};
pub use piet::{Color, LinearGradient, PaintBrush, RadialGradient, RenderContext, UnitPoint};
pub use shell::{
Application, Clipboard, ClipboardFormat, Cursor, Error as PlatformError, FileDialogOptions,
FileInfo, FileSpec, FormatId, HotKey, KeyCode, KeyEvent, KeyModifiers, MouseButton, RawMods,
SysMods, Text, TimerToken, WinCtx, WindowHandle,
};
pub use crate::core::{BoxedWidget, EventCtx, LayoutCtx, PaintCtx, UpdateCtx, WidgetPod};
pub use app::{AppLauncher, WindowDesc};
pub use app_delegate::{AppDelegate, DelegateCtx};
pub use box_constraints::BoxConstraints;
pub use command::{sys as commands, Command, Selector};
pub use data::Data;
pub use env::{Env, Key, Value};
pub use event::{Event, LifeCycle, WheelEvent};
pub use lens::{Lens, LensExt, LensWrap};
pub use localization::LocalizedString;
pub use menu::{sys as platform_menus, ContextMenu, MenuDesc, MenuItem};
pub use mouse::MouseEvent;
pub use widget::Widget;
pub use win_handler::DruidHandler;
pub use window::{Window, WindowId};