Skip to content

Commit 70e102e

Browse files
committed
Keep in sinc slint and slint-interpreter re-export
1 parent 7eafcaf commit 70e102e

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

api/rs/slint/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,17 +211,20 @@ compile_error!(
211211

212212
pub use slint_macros::slint;
213213

214-
pub use i_slint_core::api::*;
215214
#[doc(hidden)]
216215
#[deprecated(note = "Experimental type was made public by mistake")]
217216
pub use i_slint_core::component_factory::ComponentFactory;
218217
#[cfg(not(target_arch = "wasm32"))]
219218
pub use i_slint_core::graphics::{BorrowedOpenGLTextureBuilder, BorrowedOpenGLTextureOrigin};
219+
pub use i_slint_core::translations::{select_bundled_translation, SelectBundledTranslationError};
220+
220221
// keep in sync with internal/interpreter/api.rs
222+
pub use i_slint_backend_selector::api::*;
221223
#[cfg(feature = "std")]
222224
pub use i_slint_common::sharedfontique::{
223225
register_font_from_memory, FontHandle, RegisterFontError,
224226
};
227+
pub use i_slint_core::api::*;
225228
pub use i_slint_core::graphics::{
226229
Brush, Color, Image, LoadImageError, Rgb8Pixel, Rgba8Pixel, RgbaColor, SharedPixelBuffer,
227230
};
@@ -231,7 +234,6 @@ pub use i_slint_core::model::{
231234
};
232235
pub use i_slint_core::sharedvector::SharedVector;
233236
pub use i_slint_core::timers::{Timer, TimerMode};
234-
pub use i_slint_core::translations::{select_bundled_translation, SelectBundledTranslationError};
235237
pub use i_slint_core::{
236238
format,
237239
string::{SharedString, ToSharedString},
@@ -434,8 +436,6 @@ pub mod platform {
434436
))]
435437
pub mod android;
436438

437-
pub use i_slint_backend_selector::api::*;
438-
439439
/// Helper type that helps checking that the generated code is generated for the right version
440440
#[doc(hidden)]
441441
#[allow(non_camel_case_types)]

internal/interpreter/api.rs

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
// Copyright © SixtyFPS GmbH <[email protected]>
22
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
33

4+
use crate::dynamic_item_tree::{ErasedItemTreeBox, WindowOptions};
45
use i_slint_compiler::langtype::Type as LangType;
56
use i_slint_core::component_factory::ComponentFactory;
67
#[cfg(feature = "internal")]
78
use i_slint_core::component_factory::FactoryContext;
89
use i_slint_core::graphics::euclid::approxeq::ApproxEq as _;
9-
use i_slint_core::model::{Model, ModelExt, ModelRc};
10+
use i_slint_core::items::*;
1011
#[cfg(feature = "internal")]
1112
use i_slint_core::window::WindowInner;
12-
use i_slint_core::{PathData, SharedVector};
13+
use i_slint_core::PathData;
1314
use smol_str::SmolStr;
1415
use std::collections::HashMap;
1516
use std::future::Future;
@@ -19,15 +20,26 @@ use std::rc::Rc;
1920
#[doc(inline)]
2021
pub use i_slint_compiler::diagnostics::{Diagnostic, DiagnosticLevel};
2122

22-
pub use i_slint_core::api::*;
2323
// keep in sync with api/rs/slint/lib.rs
2424
pub use i_slint_backend_selector::api::*;
25+
#[cfg(feature = "std")]
26+
pub use i_slint_common::sharedfontique::{
27+
register_font_from_memory, FontHandle, RegisterFontError,
28+
};
29+
pub use i_slint_core::api::*;
2530
pub use i_slint_core::graphics::{
2631
Brush, Color, Image, LoadImageError, Rgb8Pixel, Rgba8Pixel, RgbaColor, SharedPixelBuffer,
2732
};
28-
use i_slint_core::items::*;
29-
30-
use crate::dynamic_item_tree::{ErasedItemTreeBox, WindowOptions};
33+
pub use i_slint_core::model::{
34+
FilterModel, MapModel, Model, ModelExt, ModelNotify, ModelPeer, ModelRc, ModelTracker,
35+
ReverseModel, SortModel, StandardListViewItem, TableColumn, VecModel,
36+
};
37+
pub use i_slint_core::sharedvector::SharedVector;
38+
pub use i_slint_core::timers::{Timer, TimerMode};
39+
pub use i_slint_core::{
40+
format,
41+
string::{SharedString, ToSharedString},
42+
};
3143

3244
/// This enum represents the different public variants of the [`Value`] enum, without
3345
/// the contained values.

0 commit comments

Comments
 (0)