mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Rename internal crates and add a README.md to them
The README.md contains the warning that used to be in lib.rs. Add README.md files to all internal crates ... pointing to the official public crate to use instead. Rename internal crates fixup: README files fixup rename
This commit is contained in:
parent
c245c0f941
commit
de4e195280
124 changed files with 867 additions and 996 deletions
|
@ -4,17 +4,17 @@
|
|||
/*! This crate just expose the function used by the C++ integration */
|
||||
|
||||
use core::ffi::c_void;
|
||||
use slint_backend_selector_internal::backend;
|
||||
use slint_core_internal::window::ffi::WindowRcOpaque;
|
||||
use slint_core_internal::window::WindowRc;
|
||||
use i_slint_backend_selector::backend;
|
||||
use i_slint_core::window::ffi::WindowRcOpaque;
|
||||
use i_slint_core::window::WindowRc;
|
||||
|
||||
#[doc(hidden)]
|
||||
#[cold]
|
||||
pub fn use_modules() -> usize {
|
||||
#[cfg(feature = "slint-interpreter")]
|
||||
slint_interpreter::use_modules();
|
||||
slint_backend_selector_internal::use_modules();
|
||||
slint_core_internal::use_modules()
|
||||
i_slint_backend_selector::use_modules();
|
||||
i_slint_core::use_modules()
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
@ -25,9 +25,8 @@ pub unsafe extern "C" fn slint_windowrc_init(out: *mut WindowRcOpaque) {
|
|||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn slint_run_event_loop() {
|
||||
crate::backend().run_event_loop(
|
||||
slint_core_internal::backend::EventLoopQuitBehavior::QuitOnLastWindowClosed,
|
||||
);
|
||||
crate::backend()
|
||||
.run_event_loop(i_slint_core::backend::EventLoopQuitBehavior::QuitOnLastWindowClosed);
|
||||
}
|
||||
|
||||
/// Will execute the given functor in the main thread
|
||||
|
@ -64,8 +63,8 @@ pub unsafe extern "C" fn slint_quit_event_loop() {
|
|||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn slint_register_font_from_path(
|
||||
path: &slint_core_internal::SharedString,
|
||||
error_str: *mut slint_core_internal::SharedString,
|
||||
path: &i_slint_core::SharedString,
|
||||
error_str: *mut i_slint_core::SharedString,
|
||||
) {
|
||||
core::ptr::write(
|
||||
error_str,
|
||||
|
@ -78,8 +77,8 @@ pub unsafe extern "C" fn slint_register_font_from_path(
|
|||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn slint_register_font_from_data(
|
||||
data: slint_core_internal::slice::Slice<'static, u8>,
|
||||
error_str: *mut slint_core_internal::SharedString,
|
||||
data: i_slint_core::slice::Slice<'static, u8>,
|
||||
error_str: *mut i_slint_core::SharedString,
|
||||
) {
|
||||
core::ptr::write(
|
||||
error_str,
|
||||
|
@ -93,5 +92,5 @@ pub unsafe extern "C" fn slint_register_font_from_data(
|
|||
#[cfg(feature = "testing")]
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn slint_testing_init_backend() {
|
||||
slint_backend_testing_internal::init();
|
||||
i_slint_backend_testing::init();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue