#![cfg(doc)]
pub mod generated_code {
use crate::ComponentHandle;
use crate::Global;
use crate::Weak;
use crate::Window;
#[derive(Clone)]
pub struct SampleComponent {
_marker: core::marker::PhantomData<*mut ()>,
}
impl SampleComponent {
pub fn new() -> Result<Self, crate::PlatformError> {
unimplemented!()
}
pub fn get_counter(&self) -> i32 {
unimplemented!()
}
pub fn set_counter(&self, value: i32) {}
pub fn get_user_name(&self) -> crate::SharedString {
unimplemented!()
}
pub fn set_user_name(&self, value: crate::SharedString) {}
pub fn invoke_hello(&self) {}
pub fn on_hello(&self, f: impl Fn() + 'static) {}
pub fn invoke_do_something(&self, d: i32) -> bool {
unimplemented!()
}
}
impl ComponentHandle for SampleComponent {
#[doc(hidden)]
type Inner = SampleComponent;
fn as_weak(&self) -> Weak<Self> {
unimplemented!()
}
fn clone_strong(&self) -> Self {
unimplemented!();
}
#[doc(hidden)]
fn from_inner(
_: vtable::VRc<crate::private_unstable_api::re_exports::ItemTreeVTable, Self::Inner>,
) -> Self {
unimplemented!();
}
fn show(&self) -> Result<(), crate::PlatformError> {
unimplemented!();
}
fn hide(&self) -> Result<(), crate::PlatformError> {
unimplemented!();
}
fn window(&self) -> &Window {
unimplemented!()
}
fn run(&self) -> Result<(), crate::PlatformError> {
unimplemented!();
}
fn global<'a, T: Global<'a, Self>>(&'a self) -> T {
unimplemented!()
}
}
}
pub mod mcu {
#![doc = include_str!("mcu.md")]
#[cfg(feature = "renderer-software")]
use crate::platform::software_renderer::*;
use crate::platform::*;
mod slint {
pub use crate::*;
}
}
#[i_slint_core_macros::slint_doc]
pub mod cargo_features {
#![cfg_attr(feature = "document-features", doc = document_features::document_features!())]
use crate::*;
}
pub mod type_mappings {
#![doc = include_str!("type-mappings.md")]
use crate::*;
}