mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Move ther model code from the rust API to the corelib
We will need it in the dynamic component
This commit is contained in:
parent
c7e5b39973
commit
1b506a1b03
5 changed files with 575 additions and 610 deletions
|
@ -110,9 +110,7 @@ The follow table summarizes the entire mapping:
|
|||
|
||||
pub use sixtyfps_rs_macro::sixtyfps;
|
||||
|
||||
pub(crate) mod repeater;
|
||||
|
||||
pub use crate::repeater::{Model, ModelHandle, ModelNotify, ModelPeer, VecModel};
|
||||
pub use sixtyfps_corelib::model::{Model, ModelHandle, ModelNotify, ModelPeer, VecModel};
|
||||
pub use sixtyfps_corelib::sharedarray::SharedArray;
|
||||
pub use sixtyfps_corelib::string::SharedString;
|
||||
pub use sixtyfps_corelib::{ARGBColor, Color};
|
||||
|
@ -120,7 +118,6 @@ pub use sixtyfps_corelib::{ARGBColor, Color};
|
|||
/// internal re_exports used by the macro generated
|
||||
#[doc(hidden)]
|
||||
pub mod re_exports {
|
||||
pub use crate::repeater::*;
|
||||
pub use const_field_offset::{self, FieldOffsets, PinnedDrop};
|
||||
pub use core::iter::FromIterator;
|
||||
pub use once_cell::sync::Lazy;
|
||||
|
@ -148,6 +145,7 @@ pub mod re_exports {
|
|||
grid_layout_info, solve_grid_layout, solve_path_layout, GridLayoutCellData, GridLayoutData,
|
||||
Padding, PathLayoutData, PathLayoutItemData,
|
||||
};
|
||||
pub use sixtyfps_corelib::model::*;
|
||||
pub use sixtyfps_corelib::properties::{Property, PropertyTracker};
|
||||
pub use sixtyfps_corelib::signals::Signal;
|
||||
pub use sixtyfps_corelib::slice::Slice;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue