Skip to main content

ferrokit_core/
lib.rs

1//! The native layer under [`ferrokit`](https://docs.rs/ferrokit) and
2//! [`ferrokit-iced`](https://docs.rs/ferrokit-iced): apps want one of those.
3//!
4//! Places real AppKit views inside a window whose content is drawn by a GPU
5//! host framework (Iced first). Host-agnostic: it only needs the window's
6//! `raw-window-handle` and layout rectangles in the host's logical points.
7//!
8//! Main thread only. Every function panics off the main thread.
9
10#![warn(missing_docs)]
11
12mod appearance;
13mod events;
14mod geometry;
15mod host;
16#[doc(hidden)]
17pub mod kept;
18mod keys;
19mod snapshot;
20pub mod sync;
21pub mod table;
22pub mod text;
23pub mod testing;
24
25pub use appearance::{Rgba, SystemColors, generation as appearance_generation, is_dark, observe_appearance, system_colors};
26pub use events::{Event, request_redraw, set_event_sink};
27pub use geometry::{Frames, Rect, frames};
28pub use host::{
29    AttachError, ViewId, attach, begin_frame, content_view, end_frame, hide, is_attached, is_mounted, is_suppressed,
30    mount, place, scale, set_suppressed, unmount, view, views_in,
31};
32pub use keys::{focus, focus_host, focused_view, install_edit_menu, set_accepts_tab, set_action, set_menu_action};
33pub use snapshot::{Snapshot, snapshot};