mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 22:54:36 +00:00
MCI: small changes required to run an (empty) windows for the compiled printerdemo
This commit is contained in:
parent
3534f3bd4c
commit
a40885b39e
2 changed files with 8 additions and 5 deletions
|
@ -55,7 +55,8 @@ impl sixtyfps_corelib::backend::Backend for Backend {
|
|||
&'static self,
|
||||
_data: &'static [u8],
|
||||
) -> Result<(), Box<dyn std::error::Error>> {
|
||||
unimplemented!()
|
||||
//TODO
|
||||
Err("Not implemented".into())
|
||||
}
|
||||
|
||||
fn register_font_from_path(
|
||||
|
@ -82,11 +83,11 @@ impl sixtyfps_corelib::backend::Backend for Backend {
|
|||
let inner: &ImageInner = image.into();
|
||||
match inner {
|
||||
ImageInner::None => Default::default(),
|
||||
ImageInner::AbsoluteFilePath(_) => todo!(),
|
||||
ImageInner::EmbeddedData { .. } => todo!(),
|
||||
ImageInner::AbsoluteFilePath(_) | ImageInner::EmbeddedData { .. } => unimplemented!(),
|
||||
ImageInner::EmbeddedImage(buffer) => {
|
||||
[buffer.width() as f32, buffer.height() as f32].into()
|
||||
}
|
||||
ImageInner::StaticTextures { size, .. } => size.cast(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue