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//! Its own API isn't covered by Ferrokit's stability promise: apps use what
9//! `ferrokit` re-exports, and the rest may change in any release.
10//!
11//! Main thread only. Every function panics off the main thread.
12
13#![warn(missing_docs)]
14#![doc(html_logo_url = "https://raw.githubusercontent.com/lhassa8/ferrokit/main/assets/icon.png", html_favicon_url = "https://raw.githubusercontent.com/lhassa8/ferrokit/main/assets/icon-128.png")]
15
16mod appearance;
17#[doc(hidden)]
18pub mod boundary;
19mod events;
20mod geometry;
21mod host;
22#[doc(hidden)]
23pub mod kept;
24mod keys;
25mod snapshot;
26pub mod sync;
27pub mod table;
28pub mod text;
29pub mod testing;
30
31pub use appearance::{Rgba, SystemColors, generation as appearance_generation, is_dark, observe_appearance, system_colors};
32pub use events::{Event, request_redraw, set_event_sink};
33pub use geometry::{Frames, Rect, frames};
34pub use host::{
35    AttachError, ViewId, attach, begin_frame, content_view, end_frame, hide, is_attached, is_mounted, is_suppressed,
36    mount, place, scale, set_suppressed, unmount, view, views_in,
37};
38pub use keys::{focus, focus_host, focused_view, install_edit_menu, set_accepts_tab, set_action, set_menu_action};
39pub use snapshot::{Snapshot, snapshot};