kas_core/
lib.rs

1// Licensed under the Apache License, Version 2.0 (the "License");
2// you may not use this file except in compliance with the License.
3// You may obtain a copy of the License in the LICENSE-APACHE file or at:
4//     https://www.apache.org/licenses/LICENSE-2.0
5
6//! KAS GUI core
7//!
8//! Re-exports:
9//!
10//! -   [`kas::cast`] is a re-export of [`easy-cast`](https://crates.io/crates/easy-cast)
11//! -   [`impl_self`], [`impl_scope!`], [`impl_anon!`], [`autoimpl`] and [`impl_default`] are
12//!     re-implementations of [`impl-tools`](https://crates.io/crates/impl-tools) macros
13
14#![cfg_attr(docsrs, feature(doc_auto_cfg))]
15#![cfg_attr(docsrs, feature(doc_cfg))]
16#![cfg_attr(feature = "spec", feature(specialization))]
17
18extern crate self as kas;
19
20#[macro_use] extern crate bitflags;
21
22#[doc(inline)] pub extern crate easy_cast as cast;
23
24// internal modules:
25#[cfg(feature = "accesskit")] pub(crate) mod accesskit;
26mod action;
27mod core;
28pub mod widgets;
29pub mod window;
30
31pub use crate::core::*;
32pub use action::Action;
33pub use kas_macros::{autoimpl, extends, impl_default};
34pub use kas_macros::{cell_collection, collection, impl_anon, impl_scope, impl_self};
35pub use kas_macros::{layout, widget, widget_index, widget_set_rect};
36
37// public implementations:
38pub mod config;
39pub mod dir;
40pub mod draw;
41pub mod event;
42pub mod geom;
43pub mod layout;
44pub mod messages;
45pub mod prelude;
46pub mod runner;
47pub mod text;
48pub mod theme;
49pub mod util;