mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-29 05:14:48 +00:00
75 lines
1.7 KiB
Rust
75 lines
1.7 KiB
Rust
/*!
|
|
|
|
# SixtyFPS runtime library
|
|
|
|
**NOTE:** This library is an internal crate for the SixtyFPS project.
|
|
This crate should not be used directly by application using SixtyFPS.
|
|
You should use the `sixtyfps` crate instead
|
|
*/
|
|
|
|
#![deny(unsafe_code)]
|
|
|
|
/// The animation system
|
|
pub mod animations;
|
|
pub mod graphics;
|
|
pub mod input;
|
|
pub mod item_tree;
|
|
pub mod layout;
|
|
|
|
#[cfg(feature = "rtti")]
|
|
pub mod rtti;
|
|
|
|
/// Things that are exposed to the C ABI
|
|
pub mod abi {
|
|
#![warn(missing_docs)]
|
|
// We need to allow unsafe functions because of FFI
|
|
#![allow(unsafe_code)]
|
|
pub mod datastructures;
|
|
pub mod model;
|
|
pub mod primitives;
|
|
pub mod properties;
|
|
pub mod sharedarray;
|
|
pub mod signals;
|
|
pub mod slice;
|
|
pub mod string;
|
|
pub mod tests;
|
|
}
|
|
|
|
#[doc(inline)]
|
|
pub use abi::string::SharedString;
|
|
|
|
#[doc(inline)]
|
|
pub use abi::sharedarray::SharedArray;
|
|
|
|
#[doc(inline)]
|
|
pub use abi::datastructures::Resource;
|
|
|
|
#[doc(inline)]
|
|
pub use abi::properties::Property;
|
|
|
|
#[doc(inline)]
|
|
pub use abi::signals::Signal;
|
|
|
|
#[doc(inline)]
|
|
pub use abi::datastructures::Color;
|
|
|
|
#[doc(inline)]
|
|
pub use abi::datastructures::PathData;
|
|
|
|
/// Type alias to the commonly use `Pin<VRef<ComponentVTable>>>`
|
|
pub type ComponentRefPin<'a> = core::pin::Pin<abi::datastructures::ComponentRef<'a>>;
|
|
|
|
pub mod eventloop;
|
|
mod item_rendering;
|
|
|
|
/// One need to use at least one function in each module in order to get them
|
|
/// exported in the final binary.
|
|
/// This only use functions from modules which are not otherwise used.
|
|
#[doc(hidden)]
|
|
#[cold]
|
|
pub fn use_modules() -> usize {
|
|
abi::tests::sixtyfps_test_ellapse_time as usize
|
|
+ abi::signals::sixtyfps_signal_init as usize
|
|
+ abi::sharedarray::sixtyfps_shared_array_drop as usize
|
|
+ layout::solve_grid_layout as usize
|
|
}
|