Skip to main content

ferrokit_core/
lib.rs

1//! The AppKit layer under [`ferrokit`](https://docs.rs/ferrokit): apps want
2//! that crate.
3//!
4//! Places real AppKit views in a window and keeps their frames, focus and
5//! keyboard in step with `ferrokit`'s layout. [`table::TableModel`] and
6//! [`text::TextModel`], which `ferrokit` re-exports, are documented here.
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};