Skip to main content

mkframe/
lib.rs

1// Allow dead code for library features that are planned but not yet used
2#![allow(dead_code)]
3// Allow too many arguments for text rendering functions
4#![allow(clippy::too_many_arguments)]
5
6mod app;
7mod attached_surface;
8mod gpu;
9mod input;
10mod render;
11mod split;
12mod text;
13mod widget;
14mod window;
15
16pub use app::{App, DropEvent};
17pub use attached_surface::{
18    Anchor as AttachedAnchor, AttachedSurface, AttachedSurfaceHandler, AttachedSurfaceId,
19    AttachedSurfaceManager,
20};
21#[cfg(feature = "gpu")]
22pub use gpu::GpuRenderTarget;
23pub use gpu::{Renderer, RendererBackend};
24pub use input::{
25    Key, KeyEvent, KeyState, Modifiers, PointerButton, PointerEvent, PointerEventKind,
26};
27pub use render::{Canvas, Rgba};
28pub use split::{LeafId, SplitDirection, SplitTree};
29pub use text::{HAlign, TextRenderer, VAlign};
30pub use widget::{Constraints, LayoutContext, Rect, RenderContext, Size, Widget, WidgetId};
31pub use window::{
32    Overlay, OverlayId, Popup, PopupAnchor, PopupConfig, PopupGravity, PopupId, Subsurface,
33    SubsurfaceId, Window, WindowId, WindowManager,
34};
35
36// Re-export key dependencies for users
37pub use cosmic_text::Color as TextColor;
38pub use smithay_client_toolkit::reexports::client::{EventQueue, QueueHandle};
39pub use smithay_client_toolkit::shell::wlr_layer::{Anchor, KeyboardInteractivity, Layer};
40pub use tiny_skia::Color;