1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
// Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License in the LICENSE-APACHE file or at: // https://www.apache.org/licenses/LICENSE-2.0 //! KAS, the toolKit Abstraction Library //! //! KAS is a GUI library. This crate provides the following: //! //! - the [`Widget`] trait family, with [`macros`] to implement them //! - a [`layout`] solver and [`event`] handling for widgets //! - building blocks including [`geom`] types and a [`draw`] API //! - some pre-build widgets: the [`widget`] module //! //! See also these external crates: //! //! - [`kas-theme`](https://crates.io/crates/kas-theme) - [docs.rs](https://docs.rs/kas-theme) - theme API + themes //! - [`kas-wgpu`](https://crates.io/crates/kas-wgpu) - [docs.rs](https://docs.rs/kas-wgpu) - WebGPU + winit integration //! //! This document is a reference manual. There is currently no tutorial, but the //! [examples](https://github.com/kas-gui/kas/tree/master/kas-wgpu/examples) //! provide a starting point. #![cfg_attr(feature = "gat", feature(generic_associated_types))] #![cfg_attr(feature = "min_spec", feature(min_specialization))] #[cfg(not(feature = "winit"))] #[macro_use] extern crate bitflags; extern crate kas_macros; extern crate self as kas; // required for reliable self-reference in kas_macros // internal modules: mod data; mod toolkit; mod traits; // public implementations: pub mod class; pub mod draw; pub mod event; pub mod geom; pub mod layout; pub mod prelude; pub mod text; pub mod widget; // macro re-exports pub mod macros; // export most important members directly for convenience and less redundancy: pub use crate::data::*; pub use crate::toolkit::*; pub use crate::traits::*; pub use kas_text::Align;