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#![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")]
12
13mod appearance;
14mod events;
15mod geometry;
16mod host;
17#[doc(hidden)]
18pub mod kept;
19mod keys;
20mod snapshot;
21pub mod sync;
22pub mod table;
23pub mod text;
24pub mod testing;
25
26pub use appearance::{Rgba, SystemColors, generation as appearance_generation, is_dark, observe_appearance, system_colors};
27pub use events::{Event, request_redraw, set_event_sink};
28pub use geometry::{Frames, Rect, frames};
29pub use host::{
30    AttachError, ViewId, attach, begin_frame, content_view, end_frame, hide, is_attached, is_mounted, is_suppressed,
31    mount, place, scale, set_suppressed, unmount, view, views_in,
32};
33pub use keys::{focus, focus_host, focused_view, install_edit_menu, set_accepts_tab, set_action, set_menu_action};
34pub use snapshot::{Snapshot, snapshot};